.article--blogCards {
    container-type: inline-size;
}

.postList.--cards {
    display: grid;
    grid-auto-rows: auto 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.--cards .postListPost {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.--cards .postListPost__title {
    margin: 0;
    text-wrap: balance;
    hyphens: auto;
}

.--cards .postListPost__imageWrapper {
    order: -1;
    width: 100%;
    margin-bottom: .5rem;
    overflow: clip;
    border-radius: .5rem;
}

.--cards .postListPost__image {
    display: block;
    aspect-ratio: 3/2;
    object-fit: cover;
}

.--cards .postListPost__image.--fallback {
    background-color: #cbebfc;
}

@container (min-width: 568px) {
    .postList.--cards {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@container (min-width: 768px) {
    .postList.--cards {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}
