/* ============================================================
   THE COLLECTION
   Museum-style scale model gallery
   ============================================================ */


/* ------------------------------------------------------------
   Design Tokens
   ------------------------------------------------------------ */

:root {
    --color-bg: #0b0d0f;
    --color-bg-elevated: #111417;
    --color-bg-soft: #161a1e;

    --color-text: #f0eee9;
    --color-text-soft: #aaa9a5;
    --color-text-muted: #737579;

    --color-line: rgba(255, 255, 255, 0.10);
    --color-line-strong: rgba(255, 255, 255, 0.18);

    --color-accent: #b8a477;
    --color-accent-soft: rgba(184, 164, 119, 0.14);

    --font-display:
        "Iowan Old Style",
        "Baskerville",
        "Times New Roman",
        serif;

    --font-ui:
        Inter,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;

    --page-width: 1560px;
    --page-padding: clamp(1.25rem, 4vw, 4.5rem);

    --section-space: clamp(5rem, 9vw, 9rem);

    --transition-fast: 160ms ease;
    --transition-medium: 300ms ease;
    --transition-slow: 600ms cubic-bezier(0.22, 1, 0.36, 1);
}


/* ------------------------------------------------------------
   Reset / Foundation
   ------------------------------------------------------------ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(255, 255, 255, 0.035),
            transparent 34rem
        ),
        var(--color-bg);

    color: var(--color-text);

    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.detail-open {
    overflow: hidden;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background: var(--color-accent);
    color: var(--color-bg);
}


/* ------------------------------------------------------------
   Accessibility
   ------------------------------------------------------------ */

.visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;

    border: 0 !important;
}


/* ------------------------------------------------------------
   Site Header
   ------------------------------------------------------------ */

.site-header {
    position: relative;
    z-index: 20;

    border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
    width: min(100%, var(--page-width));
    min-height: 104px;

    margin: 0 auto;
    padding: 0 var(--page-padding);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 3rem;
}

.site-brand {
    display: flex;
    flex-direction: column;

    color: inherit;
    text-decoration: none;
}

.site-brand__title {
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.23em;
}

.site-brand__subtitle {
    margin-top: 0.2rem;

    color: var(--color-text-muted);

    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;

    gap: clamp(1.2rem, 2.5vw, 2.75rem);
}

.site-nav__item {
    position: relative;

    padding: 0.75rem 0;

    border: 0;
    background: transparent;

    color: var(--color-text-muted);

    font-size: 0.72rem;
    font-weight: 600;

    letter-spacing: 0.13em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        color var(--transition-fast),
        opacity var(--transition-fast);
}

.site-nav__item::after {
    content: "";

    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0.4rem;

    height: 1px;

    background: var(--color-accent);

    transition: right var(--transition-medium);
}

.site-nav__item:hover,
.site-nav__item:focus-visible {
    color: var(--color-text);
}

.site-nav__item.is-active {
    color: var(--color-text);
}

.site-nav__item.is-active::after {
    right: 0;
}


/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero {
    position: relative;

    min-height: min(720px, 76vh);

    display: flex;
    align-items: center;

    overflow: hidden;

    border-bottom: 1px solid var(--color-line);
}

.hero::after {
    content: "";

    position: absolute;

    width: min(55vw, 850px);
    aspect-ratio: 1;

    right: -15%;
    top: 50%;

    transform: translateY(-50%);

    border: 1px solid rgba(255, 255, 255, 0.025);
    border-radius: 50%;

    box-shadow:
        0 0 0 90px rgba(255, 255, 255, 0.009),
        0 0 0 180px rgba(255, 255, 255, 0.006);

    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;

    width: min(100%, var(--page-width));

    margin: 0 auto;
    padding:
        clamp(5rem, 10vh, 8rem)
        var(--page-padding);
}

.hero__eyebrow,
.section-label {
    margin: 0 0 1.5rem;

    color: var(--color-accent);

    font-size: 0.68rem;
    font-weight: 650;

    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero__title {
    max-width: 1000px;

    margin: 0;

    font-family: var(--font-display);
    font-size: clamp(4rem, 8.5vw, 8.6rem);
    font-weight: 400;

    line-height: 0.88;
    letter-spacing: -0.045em;
}

.hero__intro {
    max-width: 580px;

    margin: clamp(2.5rem, 5vw, 4.5rem) 0 0;

    color: var(--color-text-soft);

    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);

    line-height: 1.5;
}

.hero__stats {
    margin-top: clamp(3.5rem, 6vw, 6rem);

    display: flex;
    align-items: flex-start;

    gap: clamp(2.5rem, 6vw, 6rem);
}

.hero-stat {
    min-width: 90px;

    display: flex;
    flex-direction: column;
}

.hero-stat__value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 400;

    line-height: 1;
}

.hero-stat__label {
    margin-top: 0.6rem;

    color: var(--color-text-muted);

    font-size: 0.63rem;
    font-weight: 600;

    letter-spacing: 0.17em;
    text-transform: uppercase;
}


/* ------------------------------------------------------------
   Collection
   ------------------------------------------------------------ */

.collection {
    padding: var(--section-space) 0;
}

.collection__inner {
    width: min(100%, var(--page-width));

    margin: 0 auto;
    padding: 0 var(--page-padding);
}

.collection-header {
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 2rem;
}

.collection-header .section-label {
    margin-bottom: 0.8rem;
}

.collection-header__title {
    margin: 0;

    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 400;

    line-height: 1;
    letter-spacing: -0.035em;
}

.collection-header__meta {
    padding-bottom: 0.45rem;

    color: var(--color-text-muted);

    font-size: 0.7rem;
    font-weight: 600;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}


/* ------------------------------------------------------------
   Toolbar / Filters
   ------------------------------------------------------------ */

.collection-toolbar {
    margin-bottom: clamp(2.5rem, 4vw, 4rem);
    padding: 1.15rem 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 2rem;

    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.filter-groups {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 0.55rem;
}

.filter-button {
    padding: 0.55rem 0.8rem;

    border: 1px solid transparent;
    border-radius: 999px;

    background: transparent;

    color: var(--color-text-muted);

    font-size: 0.66rem;
    font-weight: 600;

    letter-spacing: 0.1em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        color var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast);
}

.filter-button:hover,
.filter-button:focus-visible {
    color: var(--color-text);

    border-color: var(--color-line-strong);
}

.filter-button.is-active {
    color: var(--color-text);

    border-color: rgba(184, 164, 119, 0.45);
    background: var(--color-accent-soft);
}

.collection-search {
    width: min(100%, 320px);

    flex: 0 0 auto;
}

.collection-search__input {
    width: 100%;

    padding: 0.7rem 0;

    border: 0;
    border-bottom: 1px solid var(--color-line-strong);
    outline: none;

    border-radius: 0;

    background: transparent;

    color: var(--color-text);

    font-size: 0.78rem;

    transition: border-color var(--transition-fast);
}

.collection-search__input::placeholder {
    color: var(--color-text-muted);
}

.collection-search__input:focus {
    border-color: var(--color-accent);
}


/* ------------------------------------------------------------
   Collection Grid
   ------------------------------------------------------------ */

.collection-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    column-gap: clamp(1.25rem, 2vw, 2.25rem);
    row-gap: clamp(3rem, 5vw, 5.5rem);
}


/* ------------------------------------------------------------
   Model Card
   ------------------------------------------------------------ */

.model-card {
    min-width: 0;

    cursor: pointer;
}

.model-card__image-wrap {
    position: relative;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: var(--color-bg-elevated);
}

.model-card__image-wrap::after {
    content: "";

    position: absolute;
    inset: 0;

    border: 1px solid rgba(255, 255, 255, 0.05);

    pointer-events: none;
}

.model-card__image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1.001);

    transition:
        transform var(--transition-slow),
        filter var(--transition-slow);
}

.model-card:hover .model-card__image {
    transform: scale(1.035);
}

.model-card__body {
    padding-top: 1.25rem;
}

.model-card__meta {
    margin-bottom: 0.5rem;

    color: var(--color-accent);

    font-size: 0.61rem;
    font-weight: 650;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.model-card__title {
    margin: 0;

    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 400;

    line-height: 1.08;
    letter-spacing: -0.02em;

    transition: color var(--transition-fast);
}

.model-card:hover .model-card__title {
    color: #ffffff;
}

.model-card__manufacturer {
    margin: 0.55rem 0 0;

    color: var(--color-text-muted);

    font-size: 0.72rem;

    letter-spacing: 0.05em;
}


/* ------------------------------------------------------------
   Empty Collection
   ------------------------------------------------------------ */

.collection-empty {
    padding: 6rem 0;

    color: var(--color-text-muted);

    font-family: var(--font-display);
    font-size: 1.4rem;

    text-align: center;
}


/* ------------------------------------------------------------
   Detail Overlay
   ------------------------------------------------------------ */

.detail {
    position: fixed;
    inset: 0;

    z-index: 100;

    overflow-y: auto;

    overscroll-behavior: contain;
}

.detail[hidden] {
    display: none;
}

.detail__backdrop {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.82);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.detail__panel {
    position: relative;
    z-index: 1;

    width: min(1320px, calc(100% - 3rem));

    min-height: calc(100vh - 3rem);

    margin: 1.5rem auto;

    background: var(--color-bg-elevated);

    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.5);
}

.detail__close {
    position: absolute;
    z-index: 5;

    top: 1.5rem;
    right: 1.5rem;

    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;

    background: rgba(11, 13, 15, 0.65);

    color: var(--color-text);

    font-size: 1.75rem;
    font-weight: 200;

    line-height: 1;

    cursor: pointer;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast);
}

.detail__close:hover {
    border-color: rgba(255, 255, 255, 0.3);

    background: rgba(30, 33, 36, 0.9);

    transform: rotate(4deg);
}


/* ------------------------------------------------------------
   Detail Content
   These classes will be generated by site.js
   ------------------------------------------------------------ */

.detail-hero {
    position: relative;

    min-height: 620px;

    display: flex;
    align-items: flex-end;

    overflow: hidden;

    background: #08090a;
}

.detail-hero__image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.detail-hero::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(5, 6, 7, 0.96) 0%,
            rgba(5, 6, 7, 0.50) 38%,
            rgba(5, 6, 7, 0.05) 72%
        );
}

.detail-hero__content {
    position: relative;
    z-index: 2;

    width: 100%;

    padding:
        clamp(3rem, 6vw, 6rem);
}

.detail-hero__meta {
    margin-bottom: 1rem;

    color: var(--color-accent);

    font-size: 0.68rem;
    font-weight: 650;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.detail-hero__title {
    max-width: 1000px;

    margin: 0;

    font-family: var(--font-display);
    font-size: clamp(3.6rem, 8vw, 8rem);
    font-weight: 400;

    line-height: 0.9;
    letter-spacing: -0.045em;
}

.detail-body {
    padding:
        clamp(4rem, 7vw, 7rem)
        clamp(2rem, 7vw, 7rem)
        clamp(5rem, 9vw, 9rem);
}

.detail-intro {
    display: grid;

    grid-template-columns:
        minmax(0, 0.75fr)
        minmax(0, 1.25fr);

    gap: clamp(3rem, 7vw, 8rem);

    padding-bottom: clamp(4rem, 7vw, 7rem);

    border-bottom: 1px solid var(--color-line);
}

.detail-intro__label,
.detail-section__label {
    margin: 0;

    color: var(--color-accent);

    font-size: 0.65rem;
    font-weight: 650;

    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.detail-intro__description {
    margin: 0;

    color: var(--color-text);

    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.4vw, 2.3rem);

    line-height: 1.42;
}

.detail-section {
    padding-top: clamp(4rem, 7vw, 7rem);

    display: grid;

    grid-template-columns:
        minmax(0, 0.75fr)
        minmax(0, 1.25fr);

    gap: clamp(3rem, 7vw, 8rem);
}

.detail-section__content {
    max-width: 760px;
}

.detail-section__content p {
    margin: 0 0 1.4rem;

    color: var(--color-text-soft);

    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);

    line-height: 1.75;
}

.detail-section--collection .detail-section__content p {
    color: var(--color-text);

    font-size: clamp(1.25rem, 1.9vw, 1.6rem);
}


/* ------------------------------------------------------------
   Specifications
   ------------------------------------------------------------ */

.detail-specs {
    margin: 0;

    color: var(--color-text-soft);

    font-family: var(--font-ui);
    font-size: 0.82rem;

    line-height: 1.9;

    white-space: pre-line;
}


/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.site-footer {
    border-top: 1px solid var(--color-line);
}

.site-footer__inner {
    width: min(100%, var(--page-width));

    margin: 0 auto;
    padding:
        3.5rem
        var(--page-padding)
        4rem;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 2rem;
}

.site-footer__title,
.site-footer__copy {
    margin: 0;
}

.site-footer__title {
    color: var(--color-text-soft);

    font-size: 0.68rem;
    font-weight: 650;

    letter-spacing: 0.18em;
}

.site-footer__copy {
    color: var(--color-text-muted);

    font-family: var(--font-display);
    font-size: 0.95rem;
}


/* ------------------------------------------------------------
   Keyboard Focus
   ------------------------------------------------------------ */

:focus-visible {
    outline: 1px solid var(--color-accent);
    outline-offset: 4px;
}


/* ------------------------------------------------------------
   Responsive — Medium
   ------------------------------------------------------------ */

@media (max-width: 1100px) {

    .collection-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .collection-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .collection-search {
        width: 100%;
        max-width: 420px;
    }

}


/* ------------------------------------------------------------
   Responsive — Tablet
   ------------------------------------------------------------ */

@media (max-width: 760px) {

    .site-header__inner {
        min-height: auto;

        padding-top: 1.4rem;
        padding-bottom: 1.2rem;

        align-items: flex-start;
        flex-direction: column;

        gap: 1rem;
    }

    .site-nav {
        width: 100%;

        gap: 1.4rem;

        overflow-x: auto;

        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .site-nav__item {
        flex: 0 0 auto;
    }


    .hero {
        min-height: auto;
    }

    .hero__inner {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .hero__title {
        font-size: clamp(3.6rem, 15vw, 6rem);
    }

    .hero__stats {
        gap: 2.5rem;
    }


    .collection-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 1rem;
    }


    .detail__panel {
        width: 100%;
        min-height: 100vh;

        margin: 0;
    }

    .detail-hero {
        min-height: 72vh;
    }

    .detail-intro,
    .detail-section {
        grid-template-columns: 1fr;

        gap: 1.5rem;
    }

}


/* ------------------------------------------------------------
   Responsive — Small
   ------------------------------------------------------------ */

@media (max-width: 560px) {

    :root {
        --page-padding: 1.15rem;
    }

    .hero__eyebrow {
        margin-bottom: 1rem;
    }

    .hero__title {
        font-size: clamp(3.25rem, 16vw, 5rem);
        line-height: 0.92;
    }

    .hero__intro {
        margin-top: 2rem;
    }

    .hero__stats {
        margin-top: 3.5rem;

        justify-content: space-between;

        gap: 1rem;
    }

    .hero-stat {
        min-width: 0;
    }


    .collection-grid {
        grid-template-columns: 1fr;

        row-gap: 3.5rem;
    }

    .model-card__image-wrap {
        aspect-ratio: 4 / 3;
    }

    .model-card__title {
        font-size: 1.75rem;
    }


    .detail-hero {
        min-height: 64vh;
    }

    .detail-hero__content {
        padding:
            5rem
            1.4rem
            2.25rem;
    }

    .detail-hero__title {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .detail-body {
        padding:
            3.5rem
            1.4rem
            5rem;
    }

    .detail__close {
        top: 1rem;
        right: 1rem;
    }


    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;

        gap: 0.5rem;
    }

}


/* ------------------------------------------------------------
   Reduced Motion
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}

/* ============================================================
   DETAIL NAVIGATION
   ============================================================ */

.detail-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;

    border-top: 1px solid var(--color-line);
}

.detail-navigation__button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--color-text);

    min-height: 120px;
    padding: 2rem var(--page-padding);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.4rem;

    font-family: var(--font-ui);
    text-align: left;

    cursor: pointer;

    transition:
        background-color 180ms ease,
        color 180ms ease;
}

.detail-navigation__button:first-child {
    border-right: 1px solid var(--color-line);
}

.detail-navigation__button--next {
    align-items: flex-end;
    text-align: right;
}

.detail-navigation__button:hover {
    background: var(--color-accent-soft);
}

.detail-navigation__direction {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.detail-navigation__hint {
    color: var(--color-text-muted);

    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 560px) {

    .detail-navigation__button {
        min-height: 92px;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .detail-navigation__hint {
        display: none;
    }
}

/* ============================================================
   PERSONAL COLLECTION NOTES
   ============================================================ */

.detail-section--collection {
    position: relative;

    margin-top: clamp(3rem, 6vw, 5rem);
    padding:
        clamp(1.75rem, 3vw, 2.75rem)
        clamp(1.75rem, 4vw, 3.5rem);

    background:
        linear-gradient(
            90deg,
            var(--color-accent-soft),
            transparent 65%
        );

    border-left: 2px solid var(--color-accent);
}

.detail-section--collection .detail-section__label {
    color: var(--color-accent);
}

.detail-section--collection .detail-section__content {
    max-width: 900px;

    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1.7vw, 1.55rem);
    line-height: 1.65;

    color: var(--color-text);
}

.detail-section--collection .detail-section__content p {
    margin: 0;
}

.detail-section--collection .detail-section__content p + p {
    margin-top: 1.25em;
}

/* ============================================================
   COLLECTION MOTION
   ============================================================ */

@keyframes collection-card-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.collection-grid .model-card {
    animation:
        collection-card-enter
        260ms
        ease-out
        both;
}

/*
    A tiny stagger gives the gallery some physicality without
    making the visitor wait for the damned thing.
*/

.collection-grid .model-card:nth-child(2n) {
    animation-delay: 20ms;
}

.collection-grid .model-card:nth-child(3n) {
    animation-delay: 40ms;
}


@keyframes detail-content-enter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail #detail-content {
    animation:
        detail-content-enter
        220ms
        ease-out
        both;
}


/* Respect the user's OS accessibility preference. */

@media (prefers-reduced-motion: reduce) {

    .collection-grid .model-card,
    .detail #detail-content {
        animation: none;
    }
}

#collection-heading {
    scroll-margin-top: 7rem;
}

/* ============================================================
   COLLECTION FILTER GROUPS
   ============================================================ */

.filter-groups {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.filter-group__label {
    flex: 0 0 4.5rem;

    color: var(--color-text-muted);

    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 600;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.filter-group__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}


@media (max-width: 700px) {

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }

    .filter-group__label {
        flex-basis: auto;
    }
}

/* ============================================================
   FEATURED HERO MODEL
   ============================================================ */

.hero {
    position: relative;
    overflow: hidden;
}

.hero__inner {
    position: relative;
    isolation: isolate;
}

.hero__inner > *:not(.hero__featured) {
    position: relative;
    z-index: 2;
}

.hero__featured {
    position: absolute;

    z-index: 0;

    top: 50%;
    right: clamp(-12rem, -7vw, -4rem);

    width: min(68vw, 1100px);

    transform: translateY(-50%);

    pointer-events: none;
}

.hero__featured-image {
    display: block;

    width: 100%;
    height: auto;
    opacity: 0.72;

    /*
        Fade the photograph into the gallery rather than
        presenting it as a rectangular image.
    */

    -webkit-mask-image:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(0, 0, 0, 0.18) 14%,
            black 38%,
            black 78%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(0, 0, 0, 0.18) 14%,
            black 38%,
            black 78%,
            transparent 100%
        );
}


/*
    Darken the left side independently of the image mask.
    This protects the headline regardless of the photograph.
*/

.hero__featured::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            var(--color-bg) 0%,
            rgba(11, 13, 15, 0.96) 12%,
            rgba(11, 13, 15, 0.65) 31%,
            transparent 58%
        );
}


/* The photograph becomes less assertive as space disappears. */

@media (max-width: 1100px) {

    .hero__featured {
        right: -14rem;
        width: 900px;
        opacity: 0.65;
    }
}


@media (max-width: 760px) {

    .hero__featured {
        right: -20rem;
        width: 760px;
        opacity: 0.32;
    }

}

/* ============================================================
   MISSING IMAGES
   ============================================================ */

.image-unavailable {
    position: relative;

    min-width: 0;
    width: 100%;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            var(--color-bg-elevated),
            var(--color-bg-soft)
        );
}

.image-unavailable::before {
    content: "";

    position: absolute;
    inset: 12%;

    border: 1px solid var(--color-line);

    pointer-events: none;
}

.image-unavailable__message {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    padding: 1rem;

    color: var(--color-text-muted);

    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 600;

    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;

    white-space: normal;
    overflow-wrap: anywhere;
}