.posts {
    position: relative;
    z-index: 1;
}

.posts__bg {
    width: 35%;
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
    pointer-events: none;
}

.posts__header {
    align-items: flex-start;
}

.posts__ajax-list {
    scroll-margin-top: 30rem;
}

.posts__subtitle {
    margin-bottom: 4rem;
}

.posts-list__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
}

@media screen and (max-width: 767.9px) {
    .posts-list__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 575.9px) {
    .posts-list__list {
        grid-template-columns: repeat(1, 1fr);
    }
}


/* featured-post START */
.featured-post {
    display: flex;
    gap: 3rem;
    margin-bottom: 8rem;
}

.featured-post__image,
.featured-post__content {
    flex: 1;
}

.featured-post__image {
    aspect-ratio: 550/420;
}

.featured-post__content {
    gap: 2rem;
    padding-block: 2rem;
}

.featured-post__credits {
    width: 100%;
    justify-content: space-between;
}

.featured-post__text {
    -webkit-line-clamp: 5;
}

.featured-post__btn {
    margin-top: auto;
}



@media screen and (max-width: 767.9px) {
    .featured-post {
        flex-direction: column;
    }

    .featured-post__content {
        padding: 0;
    }
}

@media screen and (max-width: 575.9px) {
    .featured-post__image {
        aspect-ratio: 343/296;
    }

    .featured-post__content {
        gap: 1.6rem;
    }

    .featured-post__btn {
        margin-top: 3rem;
    }
}
/* featured-post END */