.featured-posts .container {
    display: flex;
    flex-wrap: wrap;
}
.featured-posts .container.slider {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-top: 3rem;
}
.featured-posts .container.reverse {
    flex-direction: row-reverse;
}
.featured-posts .container.reverse .right-side {
    padding-left: 0;
    padding-right: 2rem;
}
.featured-posts .left-side {
    width: 66%;
    padding-right: 0rem;
}

.featured-posts h3,
.search-results .itemtext h3 {
    font-weight: 400;
}

.featured-posts .top-line h2 {
    font-size: 2.6rem;
    line-height: 3.2rem;
    margin: 0 0 3.2rem;
}

.featured-posts .right-side {
    width: 34%;
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
    padding-left: 2rem;
}

.featured-posts .post .media,
.search-results .media-container {
    margin-bottom: 1.5rem;
}

.featured-posts .post {
    cursor: pointer;
}

.featured-posts .post h3,
.search-results .itemtext h3 {
    margin: 2rem 0;
}

.featured-posts .post h3 {
    text-align: center;
    font-size: calc(var(--fontsize_l) * var(--text-scaler));
    line-height: calc(var(--lineh_l) * var(--text-scaler));
    letter-spacing: 0.1rem;
}

.featured-posts .post h3 a {
    text-decoration: none;
}

.featured-posts .post h3 span,
.search-results .itemtext h3 span:not(.highlighted) {
    font-weight: 700;
}

.categories-line .category {
    background: transparent;
    padding: 0 !important;
    color: var(--textclr4);
    text-align: left;
    margin-bottom: -0.5rem;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.featured-posts .left-side .post h3 {
    font-size: 3.5rem;
    line-height: normal;
}

.featured-posts .container.top .right-side {
    width: 100%;
    padding-left: 0;
    order: 1;
    padding-right: 0;
    display: grid;
    column-gap: 2rem;
    grid-template-columns: 1fr 1fr;
}

.featured-posts .container.top .left-side {
    order: 2;
    width: 100%;
}

.featured-posts .container .right-side + .posts-slider {
    margin-top: 4rem;
}
.featured-posts .container .posts-slider {
    width: 100%;
    /* overflow: hidden; */
}
body.archive .featured-posts .container .posts-slider {
    overflow: unset;
}

.featured-posts .container .posts-slider .swiper-slide .media {
    /* height: 29rem; */
    height: auto;
    width: 100%;
    position: relative;
    margin: 0;
}

.featured-posts .container .posts-slider .swiper-slide .media figure {
    height: 100%;
    width: 100%;
    position: relative;
}

/* .featured-posts .container .posts-slider .swiper-slide .media figure img,
.featured-posts .container .posts-slider .swiper-slide .media figure video{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    object-position: center;
} */

.featured-posts .container.top {
    flex-direction: column;
    row-gap: 4rem;
}

.featured-posts .container.top .left-side .media {
    height: 44rem;
    width: 100%;
    position: relative;
}

.featured-posts .container.top .left-side .media figure {
    position: relative;
    width: 100%;
    height: 100%;
}

.featured-posts .container.top .left-side .media figure img,
.featured-posts .container.top .left-side .media figure video {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    object-position: center;
}

.featured-posts .container.top.reverse {
    flex-direction: column-reverse;
}

.swiper-pagination {
    position: relative !important;
    bottom: unset !important;
    width: auto !important;
}

.posts-slider .top-line {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.posts-slider .top-line h3 {
    margin: 0;
}

.posts-slider .top-line h2 {
    font-size: calc(var(--fontsize_h2_l) * var(--text-scaler));
    line-height: calc(var(--lineh_h2_l) * var(--text-scaler));
}

.swiper-pagination-bullet-active {
    background: var(--clr1) !important;
}

h2.module-title {
    margin-top: 0;
    font-weight: bold;
}

.posts-list .container.grid .swiper-wrapper {
    display: grid;
    column-gap: 2rem;
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 4rem;
}

.posts-list .container.grid {
    flex-direction: column;
}

.categories-line {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1.5rem;
}

.load-more-container.post {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
}

.posts-slider .swiper-wrapper .swiper-slide .item {
    display: flex;
    flex-direction: column-reverse;
}

.featured-posts .btn-wrapper {
    width: 100%;
    margin-top: 3.2rem;
    text-align: center;
}
.featured-posts .swiper-wrapper {
    padding: 0;
    margin-top: 0;
}

.featured-posts .swiper-slide .itemtext {
    display: none;
}
@media screen and (max-width: 1000px) {
    .posts-slider .top-line h2 {
        padding: 0 2rem;
    }
}

@media screen and (max-width: 776px) {
    .featured-posts .right-side {
        width: 100%;
        display: grid;
        flex-direction: column;
        row-gap: 2rem;
        padding-left: 0;
        margin-top: 3rem;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .featured-posts .left-side {
        width: 100%;
        padding-right: 0rem;
    }
    .featured-posts .right-side .media {
        height: 22.1rem;
        width: 100%;
        position: relative;
    }

    .featured-posts .right-side .media figure {
        width: 100%;
        height: 100%;
        position: relative;
    }
    .featured-posts .right-side .media figure img,
    .featured-posts .right-side .media figure video {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 1;
        object-fit: cover;
        object-position: center;
    }
    .posts-list .container.grid .swiper-wrapper {
        display: grid;
        column-gap: 2rem;
        grid-template-columns: 1fr 1fr;
        row-gap: 3rem;
    }
}

@media screen and (max-width: 600px) {
    .featured-posts .right-side {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }
    .featured-posts .right-side .media figure img,
    .featured-posts .right-side .media figure video,
    .featured-posts .container .posts-slider .swiper-slide .media figure img,
    .featured-posts .container .posts-slider .swiper-slide .media figure video,
    .featured-posts .container.top .left-side .media figure img,
    .featured-posts .container.top .left-side .media figure video {
        position: relative;
        width: 100%;
        height: auto;
        z-index: 1;
        object-fit: unset;
        object-position: unset;
    }
    .featured-posts .right-side .media,
    .featured-posts .container .posts-slider .swiper-slide .media,
    .featured-posts .container.top .left-side .media {
        height: auto;
    }
    .featured-posts .left-side .post h3 {
        font-size: 1.8rem;
        line-height: 2.4rem;
    }
    .posts-list .container.grid .swiper-wrapper {
        grid-template-columns: 1fr;
    }
    .posts-slider .top-line {
        gap: 2rem;
        align-items: flex-start;
        flex-direction: column;
    }
}
