.video-main-banner {
    margin: 0 auto;
    max-width: var(--width);
}

.video-promo-banner {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #171513;
    color: #fff;
    text-align: center;
    text-decoration: none;
}

:is(.video-main-banner, .coming-soon-banner) .video-promo-banner {
    position: relative;
    height: clamp(66px, 7.2vw, 116px);
    background: linear-gradient(108deg, #171513 10%, #342d25 65%, #191613);
    border-bottom: 2px solid var(--gold);
}

.video-promo-banner img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.video-promo-text {
    display: grid;
    gap: 4px;
    padding: 10px 14px;
}

.video-promo-text strong {
    font: 700 clamp(20.79px, 2.835vw, 39.69px)/1.1 var(--serif);
}

.video-promo-kicker {
    color: #e1c491;
    font: 700 10.395px/1.1 var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.video-promo-image-kicker {
    position: absolute;
    right: clamp(8px, 1.5vw, 24px);
    bottom: 8px;
    background: #171513;
    border: 1px solid var(--gold);
    padding: 5px 8px;
}

.article-tag-list,
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    row-gap: 6px;
}

.article-tag-list {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 24px;
    font: 700 13.23px/1.45 var(--sans);
}

.article-tags {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-tags a {
    display: block;
    background: #f4f2ec;
    border: 1px solid #ddd6c7;
    padding: 4px 8px;
}

.story-meta > .story-comment {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 7px;
    padding-left: 7px;
    border-left: 1px solid #aaa;
}

.latest-published {
    display: none;
}

.lead-hero > .story-hero {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0;
    overflow: visible;
    color: inherit;
}

.lead-hero > .story-hero::after {
    content: none;
}

.lead-hero > .story-hero > .story-image {
    position: relative;
    inset: auto;
    z-index: auto;
    aspect-ratio: 16 / 9;
}

.lead-hero .story-hero .story-image img {
    transform: none;
    object-position: center;
}

.lead-hero .story-hero .story-copy {
    padding-top: clamp(8px, 1vw, 14px);
}

.lead-hero .story-hero h2 {
    font-size: clamp(21.546px, 5.16201vw, 32.319px);
    line-height: 1.08;
    overflow-wrap: anywhere;
    text-shadow: none;
}

.lead-hero .story-hero h2 a:hover {
    color: #66512e;
}

.lead-hero .story-hero .story-meta {
    color: var(--muted);
}

.lead-hero .story-hero .story-meta .icon {
    color: #737373;
}

.category-page > .archive-heading > h1 {
    font-size: 40px;
}

.category-page .story-card > .story-image:has(> img) {
    background: transparent;
}

.category-page .story-card > .story-image > img {
    object-fit: contain;
    transform: none;
}

@media (max-width: 640px) {
    .category-page > .archive-heading > h1 {
        font-size: 28px;
    }

    .category-chronological .archive-grid {
        gap: 8px;
    }

    .category-page .story-tile {
        display: grid;
        grid-template-columns: min(34%, 154px) minmax(0, 1fr);
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px solid var(--line);
    }

    .category-page .story-tile > .story-image {
        align-self: start;
        height: auto;
    }

    /* Give the lazy image a box without relying on its intrinsic dimensions. */
    .category-page .story-tile > .story-image::before {
        display: block;
        padding-top: 75%;
        content: "";
    }

    .category-page .story-tile > .story-image > img,
    .category-page .story-tile > .story-image > .image-placeholder {
        position: absolute;
        top: 0;
        left: 0;
    }

    .category-page .story-tile h2 {
        margin-top: 0;
    }

    .category-page .archive-grid .story-tile h2 {
        font-size: 19px;
    }

    .category-lead .story-tile h2 {
        font-size: clamp(16.1595px, 4.398975vw, 23.3415px);
    }

    .category-page .story-tile .image-category {
        top: 5px;
        right: 5px;
        bottom: auto;
        left: auto;
        max-width: calc(100% - 10px);
        padding: 3px 5px;
        overflow-wrap: anywhere;
    }
}

@media (min-width: 641px) {
    :is(.video-main-banner, .coming-soon-banner) .video-promo-banner {
        height: clamp(82px, 9vw, 145px);
    }

    .tile-row > .story-card + .story-card {
        padding-left: 0;
        border-left: 0;
    }

    .category-page .archive-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 26px clamp(10px, 1.6vw, 24px);
    }

    .category-page .archive-grid .story-tile h2 {
        font-size: clamp(16.1595px, calc(7.4px + 1.068vw), 22px);
    }

    .home-front-lead .lead-section {
        height: auto;
        min-height: 0;
        align-items: start;
    }

    .home-front-lead .lead-hero {
        min-height: 0;
    }

    .lead-hero .story-hero h2 {
        font-size: clamp(20.64825px, 2.69325vw, 41.2965px);
    }

    .home-front-lead .lead-section .desktop-support {
        display: grid;
        grid-template-rows: none;
        align-content: start;
        gap: 8px;
    }

    .home-front-lead .lead-section .desktop-support .story-support {
        grid-template-columns: min(36%, 115px) minmax(0, 1fr);
        min-height: 0;
        margin-top: 0;
    }

    :is(.home-front-lead, .category-lead) .desktop-support .story-support h2 {
        font-size: clamp(15.26175px, 1.391565vw, 19.7505px);
    }

    .story-tile > .story-image {
        align-self: start;
        height: auto;
        aspect-ratio: 1;
    }

    .home-front-lead .tile-row .story-image,
    .home-front-lead .lead-section .desktop-support .story-image {
        align-self: start;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .archive-grid .story-tile > .story-image,
    .related-stories .story-tile > .story-image {
        height: auto;
    }

    .masthead .header-context {
        left: auto;
        right: clamp(12px, 1.9vw, 30px);
        top: 10px;
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
        max-width: none;
    }

    .header-context-row,
    .header-exchange {
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
    }

    .masthead .header-context time {
        max-width: none;
        border: 0;
        padding: 0;
    }

    .header-context-row .weather {
        border-left: 1px solid #d1ccc1;
        padding-left: 8px;
    }

    .header-context-row .weather .icon {
        width: 17px;
        height: 17px;
        margin: 0;
    }

    .header-exchange {
        font: 10.395px/1.3 var(--sans);
        font-variant-numeric: tabular-nums;
    }

    .header-exchange a {
        font-weight: 700;
    }

    .header-exchange time {
        color: #5c554a;
    }

    .masthead .header-socials {
        left: clamp(12px, 1.9vw, 30px);
        right: auto;
    }

    .latest-archive-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .latest-archive-grid .story-latest {
        display: grid;
        grid-template-columns: 40px clamp(60px, 6vw, 76px) minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px solid var(--line);
    }

    .latest-published {
        display: block;
        font: 12.285px/1.3 var(--sans);
        font-variant-numeric: tabular-nums;
    }

    .latest-archive-grid .story-image {
        align-self: center;
    }

    .latest-archive-grid .story-copy {
        padding: 0;
    }

    .latest-archive-grid .story-latest h2 {
        font-size: clamp(14.364px, 1.481235vw, 18.85275px);
        line-height: 1.2;
        letter-spacing: -.2px;
    }

    .latest-archive-grid .story-category,
    .latest-archive-grid .image-category,
    .latest-archive-grid .story-meta {
        display: none;
    }
}

@media (min-width: 641px) and (max-width: 1420px) {
    .site-header .masthead {
        min-height: 122px;
    }

    .site-header .masthead > .brand {
        align-self: center;
        width: clamp(175px, calc(96.2% - 433px), 640px);
    }

    .masthead .header-context-row {
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
    }

    .header-context-row .weather {
        border: 0;
        padding-left: 0;
    }

    .header-exchange {
        display: grid;
        grid-template-columns: auto auto;
        gap: 1px 5px;
        justify-items: end;
        font-size: 9.45px;
    }

    .header-exchange time {
        grid-column: 1 / -1;
    }
}


/* Keep full images in the Latest archive without padding from a fixed image box. */
.latest-archive-grid .story-latest > .story-image:has(> img) {
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    align-self: center;
    background: transparent;
}

.latest-archive-grid .story-latest > .story-image > img {
    width: 100%;
    height: auto;
}
