/**
 * Copyright © Magefan (support@magefan.com). All rights reserved.
 * Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
 *
 * Glory to Ukraine! Glory to the heroes!
 */

.post-list .clearfix:after {
    content:"";
    display:table;
    clear:both;
}

.post-list .post-holder {
    padding-bottom: 20px;
    position: relative;
}

.post-list .post-header {
  position: absolute;
  width: 260px;
  min-height: 130px;
  padding-bottom: 50px;
  background: white;
  box-shadow: 3px 3px 6px rgba(0,0,0,0.2);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-line-pack: center;
  align-content: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  z-index: 1;
  box-sizing: border-box;
}
.post-list .post-title {
  max-width:80%;
  margin: 0;
  padding: 10px 0;
  float:left;
}
.post-list .post-title a {
    text-decoration: none;
    font-size: 32px;
    color: black;
    font-weight: 400;
}
.post-list .post-read-more {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: url("../images/freccia.svg") no-repeat;
  width: 41px;
  height: 34px;
  overflow: hidden;
  color: transparent;
}
.post-list .post-image,
.post-list .post-placeholder {
    width: 100%;
    height: 90vw;
    overflow: hidden;
}
.post-ftimg-hld.imagecontainer {
    height: 90vw;
}
.post-list .post-text-hld {
  padding: 15px 30px;
}
.post-holder .post-info {padding: 0 0 10px 0;}
.post-holder .post-info .item {display: inline-block}
.post-holder .post-info .dash {display: none; /* fix for old templates */}
.post-holder .post-info .label {display: none}
.post-holder .post-info .post-views {display: none}
.post-holder .post-info .post-author {display: none}
.post-holder .post-info .value {font-weight: 600;}
.post-holder .post-info .item:last-child::after{display: none}

.post-list {
    margin-top: 0px;
    margin-bottom: 20px;
    list-style: none;
}
.post-list-wrapper .post-list {padding-left: 0}

.subcategory-links-wrapper ul,
.post-links-wrapper ul {list-style: none}

.post-content .post-description img {
  -webkit-transform: translate(-50%, 0);
  -ms-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  max-width: inherit;
  height: 100%;
  width: auto;
  left: 50%;
  position: relative;
}
.post-content .post-description ul,
.post-content .post-description ol {list-style-position: inside;}

.post-list .post-holder .post-header .addthis_toolbox {float: right; padding-top: 20px;}
.post-list .hidden {display:none;}

.post-view .post-holder .post-header .addthis_toolbox {float: right;}
.post-view .post-bottom {margin-top:30px;}

.post-view .post-nextprev-hld  {margin-bottom: 30px;}
.post-view .post-nextprev-hld .nextprev-link {font-weight: 700;}
.post-view .post-nextprev-hld .prev-link {float:left}
.post-view .post-nextprev-hld .next-link {float:right}

.post-view .post-gallery {margin:15px 0 15px 0}
.post-view .post-gallery .gallery-image-hld {margin: 0 14px 14px 0; border:1px solid #ccc; display: block; float:left}
.post-view .post-gallery .gallery-image{padding: 0; margin:0; display:block}

.post-view .block {margin-bottom: 30px;}

.widget.block-recent-posts .block-content .item {
    padding: 8px 0 0 0;
}

.widget.block-categories ul {
    list-style: initial;
    padding-left:0;
}

.widget.block-categories ul ul {
    margin-left:20px;
}

.widget.block-categories ul,
.widget.block-categories li {
    margin: 5px 0 5px 9px;
    padding: 0;
}

.widget.block-rss .rss-icon {float: left; width: 23px; padding-right: 10px;}

.widget.blog-search {
    width:100%;
    margin-bottom: 40px;
    position: relative;
    float: right;
    /*padding-left: 15px;
    z-index: 4;*/
}

.widget.blog-search .block-content {
    margin-bottom: 0;
}

.widget.blog-search .block-content .form {
    position: relative;
}

.widget.blog-search  label {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    text-decoration: none;
    display: inline-block;
    float: right;
}

.widget.blog-search .control {
    border-top: 0;
    margin: 0;
    padding: 0;
    clear: both;
}

.widget.blog-search input {
    position: static;
    padding-right: 35px;
    margin: 0;
    left: -300%;
}

.widget.blog-search .action.search {
    position: absolute;
    right: 10px;
    top: 0;
    top: calc(50% - 16px);
    z-index: 1;
    display: inline-block;
    background-image: none;
    background: none;
    -moz-box-sizing: content-box;
    border: 0;
    box-shadow: none;
    line-height: inherit;
    margin: 0;
    padding: 0;
    text-decoration: none;
    text-shadow: none;
    font-weight: 400;
}

.widget.blog-search .action.search:before {
    -webkit-font-smoothing: antialiased;
    content: '';
    margin: 0;
    vertical-align: top;
    display: inline-block;
    overflow: hidden;
    speak: none;
    width: 16px;
    height: 32px;
    background: url(../images/search-icon.svg) no-repeat -10px -7px;
    background-size: 35px;
    opacity: 0.5;
}

.widget.blog-search .action.search > span {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* Tag claud widget */
.widget.block-tagclaud .smallest{font-size: 0.75em}
.widget.block-tagclaud .small{font-size:1em}
.widget.block-tagclaud .medium{font-size:1.25em}
.widget.block-tagclaud .large{font-size:1.5em}
.widget.block-tagclaud .largest{font-size:2em}

.blog-widget-recent > h3.title {
  display: none;
}
.post-list-wrapper.blog-widget-recent,
.blog-widget-recent .post-list {
    padding: 0;
    margin: 0;
}
.blog-widget-recent .post-holder {
    width: calc(100% / 4);
    float: left;
    padding: 20px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    overflow: hidden;
}
.blog-widget-recent .post-holder:hover {
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}
.blog-widget-recent .post-holder .post-image,
.blog-widget-recent .post-list .post-placeholder {
  height: 170px;
  width: 100%;
}
.blog-widget-recent .post-holder .post-image img {
  width: 100%;
  height: auto;
  max-height: inherit;
}
.blog-widget-recent .post-ftimg-hld.imagecontainer {
  width: 100%;
  height: 170px;
}
.blog-widget-recent .post-list .post-header {
  width: 100%;
  height: auto;
  padding: 0;
  position: static;
  transform: translate(0,0);
  box-shadow: none;
  min-height: inherit;
  display: block;
  box-sizing: border-box;
  padding-right: 50px;
  background: url("../images/freccia.svg") no-repeat;
  background-position: right 10px;
  background-size: 40px;
}
.blog-widget-recent .post-list .post-title a {
  font-size: 28px;
  line-height: 1.2em;
}
.blog-widget-recent .post-list .post-content,
.blog-widget-recent .post-list .post-text-hld {
  padding: 0;
}
.blog-widget-recent .post-list .post-holder:nth-child(even) .post-image,
.blog-widget-recent .post-holder:nth-child(even) .post-placeholder {
  float: none;
}
.blog-widget-recent .post-list .post-holder .post-text-hld {
  position: static;
  padding: 0;
  width: 100%;
  text-align: left;
}
.blog-widget-recent .post-list .post-holder:nth-child(even) .mgz-element {
  text-align: left;
}
.blog-widget-recent .post-footer {
  display: none;
}
.blog-category-view .category-content,
.blog-tag-view .tag-content {padding-left: 0}

.blog-widget-recent-masonry .post-description .post-text-hld {
    max-height: none;
    min-height: 0;
}
.blog-widget-recent-masonry .post-description .post-ftimg-hld {
    width: 100%;
    margin: 0;
}

.mfblog-autoloader {text-align: center;}
.mfblog-autoloader .mfblog-show-onload {display: none;}


@media (max-width: 1024px) {
    .blog-widget-recent .post-holder {
        width: 48%;
    }
}
@media (max-width: 767px) {
  .post-list .post-header {
    left: -10px;
  }
  .post-list .post-content {
    padding-top: 50px;
  }
  .blog-widget-recent .post-holder {
      width: 98%;
  }
  .post-list-wrapper.blog-widget-recent:not(.blog-widget-recent-masonry) .post-holder {width: 98%;}
}
@media (max-width: 420px) {
    #mfblog_gcomments {max-width:345px; overflow-y: scroll;}
}
@media (min-width:768px) {
  .post-list .post-image,
  .post-list .post-placeholder {
      width: 50vw;
      height: 50vw;
      overflow: hidden;
  }
  .post-ftimg-hld.imagecontainer {
      width: 50vw;
      height: 50vw;
      overflow: hidden;
  }
  .post-list .post-image img {
    height: 100%;
    width: auto;
  }
  .post-list .post-header {
    left: 50vw;
    transform: translate(-50%,20%);
    min-height: 260px;
  }
  .post-list .post-text-hld {
    position: absolute;
    left: 50vw;
    top: 30vw;
    width: 20vw;
  }
  .post-list .post-holder:nth-child(even) .post-image, .post-holder:nth-child(even) .post-placeholder {
    float: right;}
  }
  .post-list .post-holder:nth-child(even) .post-header {
    left: 30vw;
  }
  .post-list .post-holder:nth-child(even) .post-text-hld {
    left: 5vw;
    text-align: right;
  }
  .post-list .post-holder:nth-child(even) .mgz-element {
    text-align: right;
  }
}
