/* News/Gallery index pages only. Keep desktop cards and individual posts unchanged. */
.foundation-listing-hero .foundation-listing-subtitle {
    width:calc(100% - 3rem);
    max-width:76ch!important;
    margin:1rem auto 0!important;
    color:inherit;
    font-size:clamp(.9rem,1.2vw,1rem);
    font-weight:400;
    line-height:1.7;
    text-wrap:pretty;
}

/* Tablet: a calmer two-column editorial grid rather than three narrow text columns. */
@media(min-width:600px) and (max-width:1023px) {
    .foundation-news-index #main-content {
        padding-inline:clamp(1.25rem,4vw,2.5rem);
        box-sizing:border-box;
    }
    .foundation-news-index .wp-block-post-template {
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:1.5rem;
        align-items:stretch;
    }
    .foundation-news-index .wp-block-post-template > li { display:flex; min-width:0; }
    .foundation-news-index .foundation-news-card {
        display:flex;
        flex-direction:column;
        width:100%;
        padding:1.25rem!important;
        box-sizing:border-box;
    }
    .foundation-news-index .foundation-news-card > * { min-width:0; max-width:100%; }
    .foundation-news-index .foundation-news-card .wp-block-post-featured-image {
        width:100%;
        max-width:100%!important;
        flex-shrink:0;
        margin:0;
    }
    .foundation-news-index .foundation-news-card .wp-block-post-title {
        margin:1rem 0 .75rem;
        font-size:1.45rem!important;
        font-weight:500;
        line-height:1.2;
        letter-spacing:-.015em!important;
        text-transform:none!important;
    }
    .foundation-news-index .foundation-news-card .wp-block-post-excerpt {
        display:flex;
        flex-direction:column;
        flex:1;
        margin-top:0;
        font-size:.9rem;
        line-height:1.7;
    }
    .foundation-news-index .wp-block-post-excerpt__excerpt {
        display:-webkit-box;
        -webkit-box-orient:vertical;
        -webkit-line-clamp:4;
        overflow:hidden;
        margin:0;
    }
    .foundation-news-index .wp-block-post-excerpt__more-text { margin:auto 0 0; padding-top:1.1rem; }
    .foundation-news-index .foundation-news-card .wp-block-post-date { margin-top:.75rem; }
}

/* Mobile: retain the current single-column design, with proper outer/inner gutters. */
@media(max-width:599px) {
    .foundation-news-index #main-content { padding-inline:18px; box-sizing:border-box; }
    .foundation-news-index .wp-block-post-template { grid-template-columns:minmax(0,1fr)!important; gap:1.5rem; }
    .foundation-news-index .foundation-news-card { padding:1rem!important; box-sizing:border-box; }
}
