/* Collection card overrides, loaded after the theme's bundled styles. */
.post-card {
    min-width: 0;
    height: auto;
}

.post-card-link {
    min-width: 0;
}

.post-card-link img {
    position: static;
    height: calc(35vw - 10px);
}

.post-card-content {
    position: static;
    display: block;
    padding: 12px 0 20px;
    background: none;
    transition: none;
}

.post-card:not(.no-image) .post-card-content {
    opacity: 1;
}

.post-card-title {
    display: block;
    max-width: none;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--color-base);
    text-align: left;
}

.post-card-link:hover .post-card-title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-card-date {
    display: block;
    margin-top: 4px;
    color: var(--color-secondary-text);
    font: 400 1.2rem/1.5 var(--font-sans);
    text-align: left;
}

.post-card-link:focus-visible {
    outline: 2px solid var(--color-base);
    outline-offset: -2px;
}

/* Keep posts without a photograph readable and substantial in the grid. */
.post-card.no-image::before {
    display: none;
}

.post-card.no-image .post-card-content {
    min-height: calc(35vw - 10px);
    padding: 24px;
    background: var(--color-lighter-gray);
}

.post-card.no-image .post-card-title {
    line-height: 1.45;
}

@media (max-width: 700px) {
    .post-card-link img {
        height: calc(70vw - 10px);
    }

    .post-card.no-image .post-card-content {
        min-height: calc(70vw - 10px);
    }
}
