.featured-posts .container{
    display: flex;
    flex-wrap: wrap;
}
.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 .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.6rem;
}

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

.featured-posts .top-content h2 + p{
    margin-top: 1.6rem;
}


.featured-posts .post .media-container img,
.featured-posts .post .media-container video{
    transition: var(--animtime1);
}

.featured-posts .post:hover .media-container img,
.featured-posts .post:hover .media-container video{
    transform: scale(1.1);
}

.featured-posts .post h3,
.search-results .itemtext h3{
    font-size: calc(var(--fontsize_p) * var(--text-scaler));
    line-height: calc(var(--lineh_p) * var(--text-scaler));
    margin-top: 0;
}

.featured-posts .post .category-name + h3,
.search-results .itemtext .category-name + h3{
    margin-top: 1.5rem;
}

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

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

/*.featured-posts .post:hover h3{*/
/*    text-decoration: underline;*/
/*}*/

.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,
.related-articles.featured-posts .container .posts-slider .swiper-slide .media{
    height: 27rem;
    width: 100%;
    position: relative;
}

.related-articles.featured-posts .container .posts-slider .swiper-slide .media{
    height: 24.3rem;
}

.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 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

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

.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: 2.3rem;
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 2.3rem;
}

.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: 8rem 0 0;
}

.slider-navigation .slider-button{
    position: relative;
    top: unset;
    right: unset;
    left: unset;
    bottom: unset;
    margin: 0;
}

.slider-navigation .slider-button svg{
    height: 2.63rem;
    width: auto;
}

.slider-navigation .slider-button::after{
    content: none;
}

.slider-navigation{
    display: flex;
    flex-wrap: wrap;
    gap: 2.4rem;
}

.featured-posts h2{
    margin: 0;
}

p.category-name{
    color: var(--clr2);
    margin: 0;
}

.related-articles .posts-slider .top-line{
    margin-bottom: 3.2rem;
}

.featured-posts .posts-slider + a.button {
    margin-top: 4rem;
    min-width: 23.2rem;
    text-align: center;
    margin-right: auto;
}

.featured-posts > .container.slider .top-line{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.2rem;
}

.featured-posts > .container:not(.slider) .top-line{
    margin-bottom: 4rem;
}

/* Post custom grid */

.posts-list-top {
    display: grid;
    grid-template-columns: calc(100% - 35.4rem) 33rem;
    justify-content: space-between;
}

.posts-list-top .post-content:nth-child(1) .item{
    display: flex;
    flex-wrap: wrap;
    flex-direction: unset;
}

.posts-list-top .post-content:nth-child(1) .item .media{
    width: 68.4rem;
    height: 41rem;
    order: 2;
}
.posts-list-top .post-content:nth-child(1) .item .itemtext {
    width: calc(100% - 68.4rem);
    order: 1;
    padding-right: 2.4rem;
}

.posts-list-top .post-content:nth-child(2) .item .media,
.posts-list-bottom .right-side .media{
    height: 19.9rem;
}

.posts-list-top .post-content:nth-child(2) .item .itemtext h3 + p,
.posts-list-bottom .right-side .post-content .item .itemtext h3 + p,
.posts-list-top .post-content:nth-child(1) .item .itemtext h3 + p{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.posts-list-top .post-content:nth-child(2) .item .media{
    margin-bottom: 1.6rem;
}

.posts-list-top .post-content:nth-child(1) .item .itemtext h3 + p{
    -webkit-line-clamp: 9;
}

.posts-list-bottom .right-side .post-content .item .itemtext h3 + p{
    -webkit-line-clamp: 2;
}

.featured-posts .grid_custom1 h3,
.featured-posts .grid_custom2 h3{
    margin-top: 0rem;
}

.featured-posts .grid_custom1 .category-name + h3,
.featured-posts .grid_custom2 .category-name + h3{
    margin-top: 1.2rem;
}

.posts-list-top .post-content .item .itemtext h3 + p,
.posts-list-bottom .post-content .item .itemtext h3 + p{
    margin-top: 1.6rem;
}

.posts-list-top .post-content{
    padding: 1.6rem 0;
    border-top: var(--border1);
    position: relative;
}

.posts-list-top .post-content .media{
    margin-bottom: 0;
}

.posts-list-top .post-content:nth-child(1)::before,
.posts-list-bottom .left-side::before,
.posts-list-bottom .right-side .post-content:nth-child(1)::before{
    width: 1px;
    background: #F2B0FF;
    content: '';
    position: absolute;
    right: -1.2rem;
    top: 0;
    height: calc(100% - 1.6rem);
}
.posts-list-bottom .right-side .post-content:nth-child(1)::before{
    height: 100%;
}

.posts-list-bottom .left-side::before{
    height: 100%;
}

.posts-list-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.posts-list-bottom .left-side{
    display: flex;
    flex-direction: column;
    width: calc(50% - 1.2rem);
    position: relative;
}

.posts-list-bottom .right-side{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.4rem;
    width: calc(50% - 1.2rem);
}

.posts-list-bottom .left-side .post-content{
    padding: 1.6rem 0;
    border-top: var(--border1);
}

.posts-list-bottom .left-side .post-content .item{
    display: flex;
    flex-wrap: wrap;
    flex-direction: unset;
}

.posts-list-bottom .left-side .post-content .item .media{
    width: 16.5rem;
    height: 10rem;
    margin: 0;
}

.posts-list-bottom .left-side .post-content .item .media figure{
    height: 100%;
}

.posts-list-bottom .left-side .post-content .item .itemtext{
    width: calc(100% - 16.5rem);
    padding: 0 2.7rem 0 2.4rem;
}

.posts-list-bottom .right-side .post-content{
    padding: 1.6rem 0 1rem;
    border-top: var(--border1);
    position: relative;
}

.grid_custom2 .posts-list-bottom{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2.4rem;
}

.grid_custom2 .posts-list-bottom .post-content .media{
    height: 19.9rem;
}

.grid_custom2 .posts-list-bottom .post-content .media figure{
    height: 100%;
}

.grid_custom2 .posts-list-bottom .post-content{
    padding: 1.6rem 0 2rem;
    border-top: var(--border1);
    position: relative;
}

.grid_custom2 .posts-list-bottom .post-content::before{
    width: 1px;
    background: #F2B0FF;
    content: '';
    position: absolute;
    right: -1.2rem;
    top: 0;
    height: 100%;
}

.grid_custom2 .posts-list-bottom .post-content:last-of-type::before{
    content: none;
}

p.short-top-description{
    max-width: 61.9rem;
}

/* end Post custom grid */



@media screen and (max-width: 1000px) {
    .posts-list-top .post-content:nth-child(1) .item .media{
        order: 1;
        width: 100%;
        height: 29vw;
        margin-bottom: 1.6rem;
    }
    .posts-list-top .post-content:nth-child(1) .item .itemtext h3 + p {
        -webkit-line-clamp: 2;
    }
    .posts-list-top .post-content:nth-child(1) .item .itemtext{
        order: 2;
        width: 100%;
    }
    .posts-list-top {
        grid-template-columns: 1fr 1fr;
        gap: 2.4rem;
    }
    .posts-list-top .post-content:nth-child(2) .item .media, .posts-list-bottom .right-side .media {
        height: 29vw;
    }
    .posts-list-bottom .left-side,
    .posts-list-bottom .right-side{
        width: 100%;
    }
    .posts-list-bottom .left-side::before{
        content: none;
    }
    .posts-list-bottom .left-side .post-content .item .itemtext {
        width: calc(100% - 16.5rem);
        padding: 0 0 0 1.2rem;
    }
    .featured-posts .top-content h2 + p {
        margin-top: 1rem;
    }
    .featured-posts > .container:not(.slider) .top-line {
        margin-bottom: 2rem;
    }
    .grid_custom2 .posts-list-bottom {
        grid-template-columns: 1fr 1fr;
        row-gap: 0;
    }
    .grid_custom2 .posts-list-bottom .post-content .media {
        height: 29vw;
    }
    .posts-list .container.grid .swiper-wrapper {
        column-gap: 2.4rem;
        grid-template-columns: 1fr 1fr;
    }
    .featured-posts .container .posts-slider .swiper-slide .media, .related-articles.featured-posts .container .posts-slider .swiper-slide .media{
        height: 29vw;
    }
    .featured-posts .posts-slider + a.button {
        margin-top: 2rem;
    }
    .slider-navigation .slider-button svg {
        height: 2rem;
        width: auto;
    }
    .featured-posts > .container.slider .top-line {
        margin-bottom: 2rem;
    }
    .slider-navigation {
        gap: 1.4rem;
    }
}
@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: 650px) {
    .featured-posts .right-side {
        grid-template-columns: 1fr!important;
        gap: 0;
    }
    .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,
    .posts-list-top .post-content:nth-child(1) .item .media figure video,
    .posts-list-top .post-content:nth-child(1) .item .media figure img,
    .posts-list-top .post-content:nth-child(2) .item .media figure img,
    .posts-list-top .post-content:nth-child(2) .item .media figure video,
    .posts-list-bottom .right-side .media figure img,
    .posts-list-bottom .right-side .media figure video,
    .posts-list-bottom .left-side .post-content .item .media figure video,
    .posts-list-bottom .left-side .post-content .item .media figure img,
    .grid_custom2 .posts-list-bottom .post-content .media figure img,
    .grid_custom2 .posts-list-bottom .post-content .media figure video,
    .wishlist.blog-post-list .container.container_custom_size .media img,
    .wishlist.blog-post-list .container.container_custom_size .media video,
    section.blog-post-list .container.container_custom_size .media img,
    section.blog-post-list .container.container_custom_size .media 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,
    .featured-posts .right-side .media figure, .featured-posts .container .posts-slider .swiper-slide .media figure, .featured-posts .container.top .left-side .media figure,
    .posts-list-top .post-content:nth-child(2) .item .media, .posts-list-bottom .right-side .media,
    .posts-list-top .post-content:nth-child(2) .item .media figure, .posts-list-bottom .right-side .media figure,
    .posts-list-top .post-content:nth-child(1) .item .media,
    .posts-list-top .post-content:nth-child(1) .item .media figure,
    .posts-list-bottom .left-side .post-content .item .media figure,
    .grid_custom2 .posts-list-bottom .post-content .media,
    .grid_custom2 .posts-list-bottom .post-content .media figure,
    .featured-posts .container .posts-slider .swiper-slide .media, .related-articles.featured-posts .container .posts-slider .swiper-slide .media,
    .wishlist.blog-post-list .container.container_custom_size .media,
    .wishlist.blog-post-list .container.container_custom_size .media figure,
    section.blog-post-list .container.container_custom_size .media,
    section.blog-post-list .container.container_custom_size .media figure{
        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-list-top {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .posts-list-bottom .left-side .post-content .item .itemtext {
        width: 100%;
        padding: 0;
        margin: 1.2rem 0 0 0;
    }

    .posts-list-bottom .left-side .post-content .item .media {
        width: 100%;
        height: auto;
        margin: 0;
    }
    .posts-list-top .post-content:nth-child(1)::before,
    .posts-list-bottom .right-side .post-content:nth-child(1)::before{
        content: none;
    }
    .grid_custom2 .posts-list-bottom {
        grid-template-columns: 1fr;
        row-gap: 0;
    }
    .grid_custom2 .posts-list-bottom .post-content::before{
        content: none;
    }
    .posts-list .container.grid .swiper-wrapper{
        row-gap: 1rem;
    }
    .posts-list .container.grid .swiper-wrapper .swiper-slide{
        padding-bottom: 2rem;
    }
    .featured-posts > .container.slider .top-line {
        align-items: flex-start;
        flex-direction: column;
    }
}