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

:root {
    --grid-gap: 20px;
    --white: #ffffff;
    --primary: #1E242F;
    --primary-lighter: #425069;
    --primary-darker: #14171f;
    --tw-ring-color: #425069;
    --secondary: #2D3341;
}

.post-list-wrapper {
    margin-bottom: 1.5rem;
}

.post-list {
    display: flex;
    flex-wrap: wrap;
    grid-gap: var(--grid-gap);
}

.post-list .post-holder {
    padding: 0;
}

.post-content {
    position: relative;
}

.post-list .post-content .post-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    image-rendering: smooth;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    will-change: transform;
}

.post-list .post-content .post-image img {
    transform: scale(1) translate3d(0, 0, 0) perspective(1px);
    transition: transform 500ms ease-in-out;
    image-rendering: smooth;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    will-change: transform;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-list .post-content:hover .post-image img {
    transform: scale(1.1) translate3d(0, 0, 0) perspective(1px);
    transition: transform 500ms ease-in-out;
    image-rendering: smooth;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    will-change: transform;
}

.post-list .post-content .post-image:before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    background-image: linear-gradient(to top, var(--primary), transparent 70%);
    pointer-events: none;
}

.post-list .post-info {
    padding: 0;
}

.post-list .post-content .post-description {
    position: absolute;
    bottom: 0;
    color: white;
    max-width: 100%;
}

.post-list .post-title {
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
}

.post-list .post-content .post-read-more {
    float: none;
    padding-top: 0;
    margin-top: 10px;
    display: inline-block;
}

.post-item-link-absolute {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-indent: -9999px;
}

.toolbar-blog-posts {
    margin-bottom: 40px;
}

@media only screen and (max-width: 600px) {
    .post-list .post-holder {
        width: 100%;
    }

    .post-list .post-content .post-description {
        position: relative;
        bottom: unset;
        color: inherit;
        max-width: none;
    }

    .post-list .post-content .post-image:before {
        display: none;
    }
}

@media only screen and (min-width: 601px) {
    .post-list .post-holder {
        width: calc(100% / 2 - (var(--grid-gap) - 10px));
    }

    .post-list .post-content .post-description {
        position: relative;
        bottom: unset;
        color: inherit;
        max-width: none;
    }

    .post-list .post-content .post-image:before {
        display: none;
    }

    .post-list .post-title {
        font-size: 16px;
        line-height: normal;
    }
}

@media only screen and (min-width: 768px) {
    .post-list .post-holder {
        width: 100%;
    }

    .post-list .post-content .post-description {
        position: absolute;
        bottom: 0;
        padding: 15px;
        color: white;
        max-width: 60%;
    }

    .blog-widget-recent .post-list .post-content .post-description {
        color: var(--primary);
        position: static;
        text-align: center;
        max-width: 100%;
    }

    .blog-widget-recent .post-list .post-holder {
        width: calc(100% / 2 - (var(--grid-gap) - 10px));
    }

    .blog-widget-recent .post-list .post-content .post-categories {
        font-weight: 700;
        font-style: italic;
    }

    .post-list .post-content .post-image:before {
        display: block;
    }
}

@media only screen and (min-width: 1024px) {
    .post-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-widget-recent .post-list .post-holder {
        width: 100%;
    }

    .post-list .post-content .post-description {
        max-width: none;
    }
}

@media only screen and (min-width: 1400px) {
    .post-list .post-content .post-description {
        max-width: 100%;
    }
}

.sidebar .widget.block {
    margin-bottom: 30px;
}

.sidebar .widget.block a:hover {
    opacity: .5;
    transition: opacity 0.3ms ease-in-out;
    transition-delay: 200ms;
}

.sidebar .widget.block .block-title {
    font-family: "Mic32 New", sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

.sidebar .widget.block .block-title strong {
    font-weight: 500;
}

.sidebar .widget.block .post-item-date {
    font-size: 12px;
    color: rgb(107, 114, 128);
}

.sidebar .widget.block .post-item-link {
    font-weight: 400;
    font-family: "Mic32 New", sans-serif;
    display: block;
    text-transform: uppercase;
    line-height: normal;
    position: relative;
}

.sidebar .widget.block .post-item-link img {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
    top: 0;
    left: 0;
}

.sidebar .widget.block .post-item-link:hover {
    opacity: .5;
    transition: opacity 4ms ease-in-out;
    transition-delay: 200ms;
}

.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;
    width: 100%;
}

.widget.blog-search input:focus {
    --tw-border-opacity: 1;
    border-color: rgb(66 80 105 / var(--tw-border-opacity));
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-color: rgb(30 36 47 / var(--tw-ring-opacity));
    --tw-ring-opacity: 0.3;
}

.widget.blog-search .action.search {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    z-index: 1;
    display: inline-block;
    -moz-box-sizing: content-box;
    border: 0;
    box-shadow: none;
    line-height: inherit;
    margin: 0;
    padding: 5px;
    text-decoration: none;
    text-shadow: none;
    font-weight: 400;
    border-radius: 0;
}

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

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

.blog-search .actions .action.search {
    background: var(--primary);
    right: 0;
    padding: 0 10px;
    border-radius: 0;
}

.blog-search .actions .action.search:hover {
    background: var(--primary-lighter);
}

.post-view blockquote,
.postview .blockquote {
    background: var(--secondary);
    color: white;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);


    /*
    &:before {
         content: "“";
         @apply text-3xl;
     }

    @apply bg-primary text-white p-4 mb-6 rounded-sm shadow-sm;

    p {
        @apply text-xl;
    }
     */
}

.post-view blockquote:before,
.postview .blockquote:before {
    content: "“";
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.post-view blockquote p,
.postview .blockquote p {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

