/**
 * 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!
 */

.clearfix:after {
    content:"";
    display:table;
    clear:both;
}

.post-holder {
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.blog-page .block.widget .block-title{
    font-size: 18px;
    margin-bottom: 8px;
}
.blog-page .block.widget .block-title strong{
    font-size: inherit;
}
.widget.block-recent-posts .post-item-date{
    color: #F288B7;
    padding-left: 5px;
    display: inline-block;
}

.post-holder .post-header {position:relative;}

.post-holder .post-header .post-info {padding: 0;}
.post-holder .post-header .post-info .item {display: inline-block}
.post-holder .post-header .post-info .dash {display: none; /* fix for old templates */}
.post-holder .post-header .post-info .label {font-weight: 700; display: none}

.post-holder .post-header .post-info .value {
    font-size: 16px;
    color: #F288B7;
    /*text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);*/
    font-weight: 500
}

.post-holder .post-header .post-info .item::after {display: inline-block; content: ' | ';color:#b9b9b9}
.post-holder .post-header .post-info .item:last-child::after{display: none}

.post-list {
    margin-top: 0;
    margin-bottom: 20px;
    list-style: none;
}

.post-list-wrapper .post-list {
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 991px) {
    .post-list-wrapper .post-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}
@media (max-width: 768px) {
    .post-list-wrapper .post-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
.blog-page-list .toolbar-blog-posts.toolbar-products{
    position: static;
    display: block;
    margin-top: 30px;
}
.blog-page-list .toolbar-blog-posts.toolbar-products .pages{
    display: block;
    margin-left: auto;
}

.post-list .post-content .post-read-more {padding-top:10px; float:right;}

.subcategory-links-wrapper ul,
.post-links-wrapper ul {list-style: none}

.post-content .post-description img {max-width: 100%;height: auto}
.post-content .post-description ul,
.post-content .post-description ol {list-style-position: inside;}

.post-content .post-description .post-ftimg-hld {margin: 0 0 10px 0;}
@media (min-width: 769px) {
    .post-list  .post-content .post-description .post-ftimg-hld {
        max-width: 500px;
        float: left;
        padding-right: 20px;
        margin: 0;
    }
    .post-list  .post-content .post-description .post-ftimg-hld{
        max-width: 300px;
    }
}
.post-content .post-description .post-ftimg-hld img {max-width: 100%;width: 100%}
.post-content .post-description .post-text-hld a{
    color:#822B77;
    text-decoration: underline;
}
.post-content .post-description .post-text-hld a:hover{
    color:#C299BC;
}
/*.post-list .post-header .post-title {max-width:80%;}*/
.post-list .post-header .post-title a {
    text-decoration: none;
    font-size: 22px;
    color: #636363;
    font-weight: 400;
}



.post-list .post-header .post-title {
    margin: 0;
    padding: 10px 0;
    float:left;
}

.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-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;
}

.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 h2.title{
    margin-top: 0;
    font-weight: 900;
    text-transform: uppercase;
}
.blog-widget-recent .post-list {
    display: grid;
    gap: 20px;
    /*grid-template-columns: 1fr 1fr;*/
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
}
.blog-widget-recent .post-holder{
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(0,0,0,0.05);
}
.blog-widget-recent .post-holder  .post-header{
    position: relative;
    z-index: 1;
}
.blog-widget-recent .post-image-hld{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    transition: all 0.3s ease-out;
}

.blog-widget-recent .post-image-hld img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-widget-recent .post-list .post-holder:hover .post-image-hld{
    transform: scale(1.1);
}
/*.blog-widget-recent .post-list .post-holder:first-of-type{*/
/*    grid-row-start: span 2;*/
/*}*/
/*.blog-widget-recent .post-list .post-holder:not(:first-of-type){*/
/*    padding-top: 45%;*/
/*}*/
.blog-widget-recent .post-list .post-holder{
    padding-top: 100%;
    padding-bottom: 0;
}
.blog-widget-recent .post-list .post-header{
    position: absolute;
    bottom: 25px;
    left: 30px;
    right: 30px;
}
.blog-widget-recent .post-list .post-title{
    padding: 0;
    max-width:none;
}
.blog-widget-recent .post-list .post-title a{
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
/*.blog-widget-recent .post-list .post-holder:first-of-type .post-title a{*/
/*    font-size: 28px;*/
/*}*/

@media (max-width: 991px) {
    .blog-widget-recent .post-list {
        gap: 15px;
    }
    .blog-widget-recent .post-list .post-holder .post-title a
        /*.blog-widget-recent .post-list .post-holder:first-of-type .post-title a*/
    {
        font-size: 18px;
    }

}
@media (max-width: 768px) {
    .blog-widget-recent h2.title {
        /*font-size: 24px;*/
        text-align: center;
    }

    /*.blog-widget-recent .post-list {*/
    /*    grid-template-columns: 1fr;*/
    /*}*/
    .blog-widget-recent .post-list {
        grid-template-columns: repeat(2, 1fr);
    }
    /*.blog-widget-recent .post-list .post-holder:first-of-type{*/
    /*    grid-row-start: auto;*/
    /*}*/
    /*.blog-widget-recent .post-list .post-holder:first-of-type {*/
    /*    padding-top: 45%;*/
    /*}*/

    .post-holder .post-header .post-info .value{
        font-size: 14px;
    }

    .blog-widget-recent .post-list .post-header {
        bottom: 10px;
        left: 15px;
        right: 15px;
    }
}
@media (max-width: 480px) {
    .blog-widget-recent .post-list {
        grid-template-columns: 1fr;
    }
}

.blog-widget-recent-masonry .post-description .post-text-hld {
    max-height: none;
    min-height: 0;
}
.blog-widget-recent .post-list .post-holder:after{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(180deg , rgba(255,255,255,0) 40%, rgba(0,0,0,1) 100%);
    pointer-events: none;
}
.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: 420px) {
    #mfblog_gcomments {max-width:345px; overflow-y: scroll;}
}

.blog-category-view .category-content,
.blog-tag-view .tag-content {padding-left: 0}

/* Posts List */
.widget.block-list-posts .block-content .item + .item {
    padding: 5px 0 0 0;
}
.widget.block-list-posts .block-content .item .post-image {
    width: 60px;
    float: left;
    border-radius: 0;
    padding: 2px;
    background-color: #fff;
    border: 1px solid #e9e9e9;
    margin-right: 12px;
}
.widget.block-list-posts .block-content .item .post-image .post-item-link {
    display: inline-block;
}
.widget.block-list-posts .block-content .item .post-image .post-item-link img {
    width: 100%;
    height: auto;
    vertical-align: middle;
}
/* END Posts List */

/* Fix Related Products */
.blog-post-view .products-grid .product-item {
    display: inline-block;
    margin-left: 2%;
    width: calc((100% - 2%)/2);
}
.blog-post-view .product-item:nth-child(2n+1) {
    margin-left: 0;
}
.blog-post-view .products-grid .product-item .product-item-info {
    width: auto;
}
@media (min-width: 640px){
    .blog-post-view .products-grid .product-item {
        display: inline-block;
        margin-left: 2%;
        width: calc((100% - 4%)/3);
    }
    .blog-post-view .products-grid .product-item:nth-child(2n+1) {
        margin-left: 2%;
    }
    .blog-post-view .products-grid .product-item:nth-child(3n+1) {
        margin-left: 0;
    }
}
@media (min-width: 1024px){
    .blog-post-view .products-grid .product-item {
        width: calc((100% - 8%)/5);
        margin-left: 2%;
    }
    .blog-post-view .products-grid .product-item:nth-child(3n+1) {
        margin-left: 2%;
    }
    .blog-post-view .products-grid .product-item:nth-child(5n+1) {
        margin-left: 0;
    }
}

/* Icons */
.mf-blog-icon {width: 15px;height: 15px;display: inline-block;position: relative;top: 2px;background-size: cover;}
.mf-blog-icon.mfbi-calendar {background-image: url('../images/calendar-icon.svg')}
.mf-blog-icon.mfbi-folder {background-image: url('../images/folder-icon.svg')}
.mf-blog-icon.mfbi-comments {background-image: url('../images/comments-icon.svg')}
.mf-blog-icon.mfbi-tags {background-image: url('../images/tags-icon.svg')}
.mf-blog-icon.mfbi-user {background-image: url('../images/user-icon.svg')}
.mf-blog-icon.mfbi-views {background-image: url('../images/views-icon.svg')}
/* END Fix Related Products */
