.postList.--related.--cards {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 256px), 1fr));
}

.--cards .postListPost {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: var(--marginSmall);
    padding-bottom: var(--marginSmallMedium);
    border-radius: var(--borderRadiusSmall);
    box-shadow: var(--boxShadowLarge);
    background-color: var(--baseLight100);
    overflow: clip;
    transition: all  var(--timingFlash);
}

.--cards .postListPost:not(:has(.postListPost__image)):hover {
    box-shadow: var(--boxShadowLargeHover);
}

.postListPost > *:not(.postListPost__imageWrapper) {
    padding-inline: var(--marginSmallMedium) !important;
}

.--cards .postListPost__title {
    margin-top: var(--marginSmallMedium);
}

.--cards .postListPost:has(.postListPost__image) .postListPost__title {
    margin-top: 0;
}

.--cards .postListPost__imageWrapper {
    order: -1;
    overflow: clip;
}

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

.--cards .postListPost:has(.postListPost__image) .tagsList__list {
    position: absolute;
    top: var(--marginSmall);
    left: var(--marginSmall);
    padding-inline: 0 !important;
    z-index: +1;/** tags must stay visible if image gets z-index on hover */
}
