/**
 * 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!
 */

/* Essential utilities */
.clearfix:after {
    content:"";
    display:table;
    clear:both;
}

/* Basic post structure - minimal styles */
.post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-list-wrapper .post-list {
    padding-left: 0;
}

.post-list .hidden {
    display: none;
}

/* Post content styling */
.post-content .post-description img {
    margin: 15px 0;
    max-width: 100%;
    height: auto;
}

.post-content .post-description ul,
.post-content .post-description ol {
    list-style-position: inside;
}

/* Widget utilities */
.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;
}

/* Tag cloud 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 search widget */
.widget.blog-search {
    width: 100%;
    margin-bottom: 40px;
    position: relative;
}

.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;
}

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

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

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

.widget.blog-search .action.search:before {
    content: '';
    margin: 0;
    vertical-align: top;
    display: inline-block;
    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;
}

/* Posts list widget */
.widget.block-list-posts .block-content .item {
    padding: 8px 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;
}

/* View-specific styles */
.blog-category-view .category-content,
.blog-tag-view .tag-content {
    padding-left: 0;
}

/* Comments responsive */
@media (max-width: 420px) {
    #mfblog_gcomments {
        max-width: 345px;
        overflow-y: scroll;
    }
}
