/* Shared image and title layout; individual pages keep their own artwork. */
.jumbo.site-jumbo {
    /* How tall a banner may grow to show its image; the jumbo heights from
       styles9.css, per its breakpoints below. */
    --site-hero-max-height: 55vh;
    display: block;
    width: 100%;
    height: auto;
    min-height: min(clamp(220px, 28vw, 340px), var(--site-hero-max-height));
    max-height: none;
}

@media (min-width: 768px) and (max-width: 1081px) {
    .jumbo.site-jumbo {
        --site-hero-max-height: 35vh;
    }
}

@media (max-width: 767px) {
    .jumbo.site-jumbo {
        --site-hero-max-height: 20vh;
    }
}

.site-jumbo .site-hero {
    position: relative;
    width: 100%;
    min-height: inherit;
    isolation: isolate;
}

.site-jumbo .site-hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.site-hero-media > img {
    display: block;
    width: 100%;
    height: 100%;
    /* Grow with the image up to the limit; min-height wins over max-height,
       so the image still fills the banner when the copy needs more room. */
    max-height: var(--site-hero-max-height);
    min-height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

/* Static artwork sets the banner height from its own proportions, up to the
   limit: media and copy share one grid cell and the taller of the two
   decides the height. */
.site-jumbo .site-hero:has(> .site-hero-media > img) {
    display: grid;
}

.site-jumbo .site-hero:has(> .site-hero-media > img) > .site-hero-media,
.site-jumbo .site-hero:has(> .site-hero-media > img) > .site-hero-content {
    grid-area: 1 / 1;
}

.site-jumbo .site-hero-media:has(> img) {
    position: relative;
}

/* Generated artwork shares the banner's blend but is shown whole, never
   cropped: the image is contained over its blurred copy (.jumbo-background).
   Keep its existing container so image updates, fallbacks and loading
   overlays still work. */
.jumbo.site-jumbo:has(.site-hero-media .jumbo-container) {
    /* Tall enough to show a 21:9 render edge to edge, up to the limit. */
    min-height: min(var(--site-hero-max-height), 100vw * 9 / 21);
}

.site-hero-media .jumbo-container {
    width: 100%;
    height: 100%;
    justify-content: center;
}

.site-hero-media .jumbo-container > img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    /* Feather the sides so the image melts into its blurred backdrop. */
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.site-hero-media .jumbo-container::before,
.site-hero-media .jumbo-container::after {
    content: none;
}

/* The side tint keeps overlaid titles readable. Banners that show artwork
   only opt out with .site-jumbo--art-only and keep just the fade into the page. */
.site-jumbo {
    --site-hero-tint: linear-gradient(90deg, rgb(15 25 31 / 90%), rgb(15 25 31 / 55%) 45%, rgb(15 25 31 / 15%));
}

.site-jumbo.site-jumbo--art-only {
    --site-hero-tint: none;
}

.site-jumbo .site-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--site-hero-tint), linear-gradient(0deg, #222f36, transparent 45%);
    z-index: -1;
    pointer-events: none;
}

.site-jumbo .site-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: inherit;
    padding-top: 2rem;
    padding-bottom: 2rem;
    color: #f6e6c9;
    text-align: center;
}

.site-hero-content .site-hero-title {
    max-width: 32ch;
    margin: 0 0 0.75rem;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 600;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.site-hero-content .site-hero-subtitle {
    max-width: 30rem;
    margin-bottom: 0;
    color: #ded0b7;
    font-size: 1.05rem;
}

.site-hero-content .site-hero-eyebrow {
    margin-bottom: 0.75rem;
    color: #e7bf8f;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
