/*
* Blog posts, related-posts static block,  related-posts slider
*/
.related-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.related-block-header .related-heading {
    font-size: var(--wp--preset--font-size--medium);
    text-transform: uppercase;
}
.related-block-header .related-heading,
.yarpp-thumbnail-date {
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family-roboto-condensed);
}
.posts-wrapper .order-by .dropdown-button {
    color: var(--black-color);
}
.posts-wrapper .order-by {
    display: flex;
    justify-content: end;
}
.wp-block-post-template {
    display: grid;
}
.yarpp-related:not(.swiper-initialized) .yarpp-thumbnails-horizontal,
.wp-block-post-template {
    grid-auto-rows: 1fr;
}
.swiper-initialized .swiper-slide.yarpp-thumbnail {
    height: auto;
}
.yarpp-related:not(.swiper-initialized) .yarpp-thumbnails-horizontal {
    display: grid;
}
.related-block-header .navigation {
    padding: 0;
}
.yarpp-related:not(.swiper-initialized) .navigation {
    display: none;
}
.wp-block-post,
.yarpp-thumbnails-horizontal .yarpp-thumbnail {
    border: 1px solid var(--black-color);
    margin: 0;
    overflow: hidden;
    text-decoration: none;
}
.wp-block-post,
.yarpp-thumbnails-horizontal .yarpp-thumbnail {
    background-color: var(--white-color);
}
.yarpp-thumbnails-horizontal figure.wp-block-image {
    margin-bottom: 0;
}
.yarpp-thumbnails-horizontal .yarpp-thumbnail {
    display: inline-block;
    width: 100%;
}
.yarpp-thumbnail-content,
.yarpp-thumbnail-info,
.wp-block-post-info {
    display: flex;
    flex-direction: column;
}
.wp-block-post-info,
.yarpp-thumbnail-info {
    gap: 15px;
}
.post-thumbnail figure {
    margin: 0;
}
.yarpp-thumbnail-content img,
.post-thumbnail img {
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3 / 2;
    display: block;
}
.wp-block-post-date {
    font-family: var(--font-family-roboto-condensed);
    font-weight: var(--font-weight-semibold);
    color: var(--black-color);
}
.blog .wp-block-post-title {
    margin: 0;
}
.blog .wp-block-post-title,
.yarpp-thumbnail-title {
    font-weight: var(--font-weight-bold);
    color: var(--black-color);
    font-family: var(--font-family-funnel);
    text-transform: uppercase;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.posts-wrapper .wp-block-buttons {
    justify-content: end;
}
.posts-wrapper .wp-element-button {
    display: inline-block;
}
@media screen and (min-width: 1400px) {
    .blog .wp-block-post-title,
    .yarpp-related .yarpp-thumbnail-title {
        font-size: 30px;
    }
}
@media screen and (max-width: 1400px) {
    .blog .wp-block-post-title,
    .yarpp-related .yarpp-thumbnail-title {
        font-size: var(--wp--preset--font-size--medium);
    }
}
@media screen and (min-width: 768px) {
    .posts-wrapper .wp-block-buttons {
        margin-top: 45px;
    }
    .related-block-header,
    .posts-wrapper .order-by {
        margin-bottom: 45px;
    }
    .wp-block-post-template {
        grid-template-columns: repeat(3, 1fr);
    }
    .yarpp-related-block + .wp-block-buttons,
    .swiper + .wp-block-buttons {
        margin-top: 45px;
    }
    .yarpp-related:not(.swiper-initialized) .yarpp-thumbnails-horizontal,
    .wp-block-post-template {
        gap: 10px;
    }
    .yarpp-related:not(.swiper-initialized) .yarpp-thumbnails-horizontal {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .wp-block-post:hover,
    .yarpp-thumbnails-horizontal .yarpp-thumbnail:hover {
        background-color: var(--yellow-color);
    }
    .wp-block-post-info,
    .yarpp-thumbnail-info {
        padding: 30px 45px;
    }
    .yarpp-thumbnail-date,
    .wp-block-post-date {
        font-size: var(--wp--preset--font-size--medium);
    }
}
@media screen and (max-width: 768px) {
    .posts-wrapper .wp-block-buttons {
        margin-top: 30px;
    }
    .wp-block-post-template {
        grid-template-columns: repeat(1, 1fr);
    }
    .related-block-header,
    .posts-wrapper .order-by {
        margin-bottom: 30px;
    }
    .yarpp-related-block + .wp-block-buttons,
    .swiper + .wp-block-buttons {
        margin-top: 30px;
    }
    .yarpp-related:not(.swiper-initialized) .yarpp-thumbnails-horizontal,
    .wp-block-post-template {
        gap: 15px;
    }
    .wp-block-post-info,
    .yarpp-thumbnail-info {
        padding: 15px;
    }
    .yarpp-thumbnail-date,
    .wp-block-post-date {
        font-size: 15px;
    }
}