.posts {
    display: grid;
    grid-gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}

.posts:not(:last-child) {
    margin-bottom: 48px;
}


.post {
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    outline: 1px solid var(--color--soft-gray);
    outline-offset: -1px;
    overflow: hidden;
}

.post .media {
    padding-top: 75%;
}

.post .post-inner {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px 20px;
}

.post .category {
    color: var(--color--brand);
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
    margin: 0 0 6px;
}

.post .title {
    margin-bottom: 12px;
}

.post .description {
    margin: 0 0 16px;
}

.post .details {
    color: var(--color--dark-gray);
    column-gap: 24px;
    display: flex;
    font-size: 14px;
    line-height: 22px;
    margin: auto 0 24px;
}

.post .details li {
    align-items: center;
    column-gap: 8px;
    display: flex;
}

.post .details li:not(:last-child)::after {
    background-color: var(--color--soft-gray);
    content: "";
    height: 20px;
    margin-left: 16px;
    width: 1px;
}

.post .button::before {
    content: attr(data-text);
}


.no-content {
    margin: 0;
    text-align: center;
}



@media (max-width: 1299px) {
    .posts {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 1024px) {
    .posts {
        grid-column-gap: 16px;
    }
}


@media (max-width: 691px) {
    .posts {
        display: block;
    }

    .posts li:not(:last-child) {
        margin-bottom: 16px;
    }
}