/* ==========================================================================
   1. Global Styles
   ========================================================================== */

/* EB Garamond (SIL OFL 1.1, /fonts/OFL.txt), served from our own domain */
@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/eb-garamond-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/eb-garamond-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'EB Garamond';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/eb-garamond-latin-400-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/eb-garamond-latin-ext-400-normal.woff2') format('woff2');
    unicode-range: U+0100-017F, U+0218-021B;
}

@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/eb-garamond-latin-ext-500-normal.woff2') format('woff2');
    unicode-range: U+0100-017F, U+0218-021B;
}

@font-face {
    font-family: 'EB Garamond';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/eb-garamond-latin-ext-400-italic.woff2') format('woff2');
    unicode-range: U+0100-017F, U+0218-021B;
}

:root {
    /* Colours: "Muzejski katalog" identity (D-11) */
    --paper: #f5f1ea;        /* page background */
    --surface: #ffffff;      /* alternating sections (Services, Contact), polaroid */
    --card: #fffdf8;         /* postcard */
    --ink: #1e2830;          /* text, dark estimate band */
    --ink-body: #3e4952;     /* body text in About cards */
    --ink-2: #4d5861;        /* secondary text (6.5:1 on --paper) */
    --ink-3: #6b6158;        /* places, labels, meta (5.4:1) */
    --line: #ddd5c9;         /* section head rules */
    --line-soft: #e3dcd1;    /* rules inside cards and on --surface */
    --line-card: #d8cfc1;    /* postcard divider between image and text */
    --line-strong: #cfc5b8;  /* contact blocks, outlined language buttons */
    --rule: #e2d9cb;         /* decorative ruled lines on postcards */
    --card-border: #ece4d6;  /* postcard border */
    --placeholder: #f3ede3;  /* "your object here" area */
    --placeholder-border: #cbbfae;
    --bronze: #82654a;       /* accent: eyebrow, links, CTA (4.8:1 on --paper, white on bronze 5.4:1) */
    --bronze-hover: #6e5440;
    --bronze-light: #d7c3ae; /* eyebrow on dark backgrounds (8.8:1 on --ink) */
    --bronze-pale: #efe4d8; /* eyebrow over the hero photo (T5.4: ≥ 4.5:1 against its lightest parts) */
    --footer: #161c21;
    --lightbox: #14181c;
    --shadow-card: 0 1px 2px rgba(30, 40, 48, .08), 0 14px 30px rgba(30, 40, 48, .10);
    --shadow-card-sm: 0 1px 2px rgba(30, 40, 48, .08), 0 8px 18px rgba(30, 40, 48, .08);
    --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
    /* Layout */
    --container: 1240px;
    --gutter: 32px;
    --section-y: 104px;
    --header-h: 65px;
}

@media (max-width: 768px) {
    :root {
        --gutter: 20px;
        --section-y: 64px;
        --header-h: 64px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* Inline SVG icons (replace Font Awesome) */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: none;
    vertical-align: -0.125em;
}

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 500;
}

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    line-height: 1.65;
    overflow-x: hidden;
}

/* ==========================================================================
   1b. Components ("Muzejski katalog", R2)
   ========================================================================== */

/* Layout */
.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section-y);
}

.section--surface {
    background: var(--surface);
}

/* Meta text: places, labels */
.place {
    margin: 0 0 6px;
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.65;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* Eyebrow ("01 — Usluge") */
.eyebrow {
    margin: 0 0 12px;
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.65;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--bronze);
}

.eyebrow--sm {
    margin-bottom: 8px;
    font-size: 12px;
}

.eyebrow--on-dark {
    color: var(--bronze-light);
}

/* Section head: eyebrow + h2 left, short text right, rule below */
.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 48px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.section--surface .section-head {
    border-bottom-color: var(--line-soft);
}

.section-head h2 {
    margin: 0;
    font-size: 48px;
    line-height: 1.1;
}

.section-head__text {
    max-width: 420px;
    margin: 0;
    color: var(--ink-2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 14px 28px;
    border: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.65;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn .icon {
    font-size: 18px;
}

.btn--light {
    background: var(--surface);
    color: var(--ink);
}

.btn--light:hover {
    background: var(--paper);
    color: var(--ink);
}

.btn--ghost {
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
}

.btn--ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.btn--outline {
    border-color: var(--ink);
    color: var(--ink);
    font-size: 13px;
    letter-spacing: .14em;
}

.btn--outline:hover {
    background: var(--ink);
    color: #fff;
}

.btn--bronze {
    background: var(--bronze);
    color: #fff;
    letter-spacing: .08em;
}

.btn--bronze:hover {
    background: var(--bronze-hover);
    color: #fff;
}

.btn--block {
    display: flex;
    width: 100%;
}

/* Visible focus: a default for every focusable element (T5.2); components below refine it */
:focus-visible {
    outline: 2px solid var(--bronze);
    outline-offset: 3px;
}

/* Skip link (T5.1): first focusable element, visible only when focused */
.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 14px;
    text-decoration: none;
    transform: translateY(-200%);
}

.skip-link:focus-visible {
    transform: none;
    outline-color: var(--bronze-light);
}

/* Visible focus for all interactive components */
.btn:focus-visible,
a.polaroid:focus-visible,
a.postcard:focus-visible {
    outline: 2px solid var(--bronze);
    outline-offset: 3px;
}

.on-dark .btn:focus-visible {
    outline-color: var(--bronze-light);
}

/* Polaroid: white mount, photo, caption */
.polaroid {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 14px 14px 0;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    color: var(--ink);
    text-decoration: none;
}

.polaroid__img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.polaroid__caption {
    padding: 16px 6px 22px;
}

.polaroid__title {
    margin: 0;
    font-size: 23px;
    line-height: 1.25;
}

/* Service polaroid: 4:5 photo, centred title */
.polaroid--service {
    padding: 12px 12px 20px;
}

.polaroid--service .polaroid__img {
    aspect-ratio: 4 / 5;
    height: auto;
}

.polaroid--service .polaroid__caption {
    padding: 0;
    text-align: center;
}

.polaroid--service .polaroid__title {
    margin: 16px 4px 0;
    font-size: 24px;
    line-height: 1.65;
}

.polaroid__link {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--bronze);
    text-decoration: none;
}

.polaroid__link:hover,
.polaroid__link:focus-visible {
    color: var(--bronze-hover);
    text-decoration: underline;
}

/* Service card with a link (laser cleaning): the link covers the whole card, so a click on the photo
   does the same as a click on "Besplatna procjena"; still a single link for keyboard and screen readers */
.polaroid--linked {
    position: relative;
}

.polaroid--linked .polaroid__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.polaroid--linked:hover .polaroid__link {
    color: var(--bronze-hover);
    text-decoration: underline;
}

.polaroid--linked:has(.polaroid__link:focus-visible) {
    outline: 2px solid var(--bronze);
    outline-offset: 3px;
}

/* Postcard: photo | divider | place, title, summary, ruled lines, link */
.postcard {
    display: flex;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--card-border);
    background: var(--card);
    box-shadow: var(--shadow-card);
    color: var(--ink);
    text-decoration: none;
}

.postcard__media {
    flex: 2 1 0;
    min-width: 0;
    display: block;
}

.postcard__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.postcard__body {
    flex: 2 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-left: 24px;
    padding: 6px 6px 6px 24px;
    border-left: 1px solid var(--line-card);
}

.postcard__body .place {
    margin: 6px 0 0;
}

.postcard__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.12;
}

.postcard__summary {
    margin: 0;
    font-size: 15px;
    color: var(--ink-2);
}

.postcard__lines {
    display: block;
    margin-top: auto;
}

.postcard__lines span {
    display: block;
    height: 26px;
    border-bottom: 1px solid var(--rule);
}

.postcard__link {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--bronze);
}

.postcard--featured {
    padding: 20px;
}

.postcard--featured .postcard__media {
    flex-grow: 3;
}

.postcard--featured .postcard__title {
    font-size: 40px;
}

/* Call card: dashed "your object here" area instead of a photo */
.postcard__placeholder {
    flex: 2 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1.5px dashed var(--placeholder-border);
    background: var(--placeholder);
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 26px;
    line-height: 1.25;
    color: var(--ink-3);
}

/* Project card shown as a polaroid on desktop: same inner markup as a postcard */
.polaroid--project .postcard__media {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}

.polaroid--project .postcard__media img {
    position: absolute;
    inset: 0;
}

.polaroid--project .postcard__body {
    display: block;
    flex: none;
    margin: 0;
    padding: 16px 6px 22px;
    border: 0;
}

.polaroid--project .postcard__body .place {
    margin: 0 0 6px;
}

.polaroid--project .postcard__title {
    font-size: 23px;
    line-height: 1.25;
}

.polaroid--project .postcard__summary {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.polaroid--project .postcard__lines,
.polaroid--project .postcard__link {
    display: none;
}

/* Hover: slight lift, no zoom (links only, desktop pointers) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    a.polaroid,
    a.postcard {
        transition: translate .25s ease, box-shadow .25s ease;
    }

    a.polaroid:hover,
    a.postcard:hover {
        translate: 0 -4px;
        box-shadow: 0 2px 4px rgba(30, 40, 48, .08), 0 22px 40px rgba(30, 40, 48, .14);
    }
}

/* Dark band (estimate, "similar object?") */
.dark-band {
    background: var(--ink);
    color: #fff;
}

.dark-band h2,
.dark-band h3 {
    color: #fff;
}

@media (max-width: 768px) {
    .place {
        font-size: 10px;
    }

    .eyebrow {
        margin-bottom: 10px;
        font-size: 11px;
    }

    .eyebrow--sm {
        margin-bottom: 6px;
    }

    .section-head {
        display: block;
        margin-bottom: 28px;
        padding-bottom: 20px;
    }

    .section-head h2 {
        font-size: 36px;
    }

    .section-head__text {
        margin-top: 12px;
        font-size: 15px;
    }

    .btn {
        padding: 14px 16px;
        font-size: 13px;
        letter-spacing: .12em;
    }

    .polaroid {
        box-shadow: var(--shadow-card-sm);
    }

    .polaroid--service {
        padding: 8px 8px 12px;
    }

    .polaroid--service .polaroid__title {
        margin: 10px 2px 0;
        font-size: 18px;
        line-height: 1.2;
    }

    .polaroid__link {
        font-size: 11px;
        letter-spacing: .1em;
        padding: 10px 0 2px;
    }

    /* Mobile: every project card (postcard or polaroid) is the same upright detailed card */
    .postcard,
    .polaroid--project {
        display: block;
        padding: 10px;
        border: 1px solid var(--card-border);
        background: var(--card);
        box-shadow: 0 2px 3px rgba(30, 40, 48, .10), 0 14px 28px rgba(30, 40, 48, .12);
    }

    .postcard__media img,
    .polaroid--project .postcard__media img {
        position: static;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .postcard__placeholder {
        aspect-ratio: 4 / 3;
        font-size: 22px;
    }

    .postcard__body,
    .polaroid--project .postcard__body {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin: 14px 0 0;
        padding: 12px 6px 2px;
        border: 0;
        border-top: 1px solid var(--line-card);
    }

    .postcard__body .place,
    .polaroid--project .postcard__body .place {
        margin: 0;
    }

    .postcard__title,
    .postcard--featured .postcard__title,
    .polaroid--project .postcard__title {
        font-size: 23px;
        line-height: 1.15;
    }

    .polaroid--project .postcard__summary,
    .polaroid--project .postcard__link {
        display: block;
    }

    .postcard__summary {
        font-size: 14px;
        line-height: 1.5;
    }

    .postcard__lines,
    .polaroid--project .postcard__lines {
        display: none;
    }

    .postcard__link {
        padding: 8px 0 4px;
        font-size: 12px;
    }
}

/* ==========================================================================
   2. Header and mobile menu (R3)
   ========================================================================== */

[id] {
    scroll-margin-top: calc(var(--header-h) + 8px);
}

/* In-page links (#usluge, #procjena …) scroll smoothly; off for visitors who prefer less motion.
   The class is added by main.js only after the page has loaded: smooth scrolling on <html> during
   load breaks the browser's scroll restoration on "Back" (measured: 166 px off in Chromium). */
@media (prefers-reduced-motion: no-preference) {
    html.smooth-scroll {
        scroll-behavior: smooth;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 12px rgba(30, 40, 48, .08);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 18px;
}

.site-header__logo {
    display: block;
    flex: none;
}

.site-header__logo img {
    display: block;
    width: auto;
    height: 28px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-nav__list {
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a,
.lang-switch {
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.site-nav__list a {
    color: var(--ink);
    text-decoration: none;
}

.site-nav__list a:hover,
.site-nav__list a.is-active {
    color: var(--bronze);
}

/* Current page (project pages: "Projekti") */
.site-nav__list a[aria-current="page"] {
    padding-bottom: 2px;
    border-bottom: 1px solid var(--bronze);
}

.lang-switch {
    margin: 0;
    color: #7a7066;
}

.lang-switch a {
    color: var(--ink-3);
    text-decoration: none;
}

.lang-switch a:hover {
    color: var(--bronze);
}

.lang-switch a[aria-current] {
    color: var(--ink);
    font-weight: 600;
}

.site-nav a:focus-visible,
.menu-toggle:focus-visible,
.mobile-menu a:focus-visible,
.mobile-menu button:focus-visible {
    outline: 2px solid var(--bronze);
    outline-offset: 3px;
}

.menu-toggle,
.mobile-menu__close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
}

.menu-toggle .icon,
.mobile-menu__close .icon {
    font-size: 24px;
}

/* Mobile menu: native <dialog> (focus trap, Esc) over the whole screen */
.mobile-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--paper);
    color: var(--ink);
}

.mobile-menu[open] {
    display: flex;
    flex-direction: column;
}

.mobile-menu::backdrop {
    background: var(--paper);
}

html:has(.mobile-menu[open]) {
    overflow: hidden;
}

.mobile-menu__head {
    flex: none;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 0 20px;
    border-bottom: 1px solid var(--line);
}

.mobile-menu__head img {
    display: block;
    width: auto;
    height: 22px;
}

.mobile-menu__close {
    display: flex;
    margin-right: 0;
}

.mobile-menu__nav {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 24px 20px 0;
    overflow-y: auto;
}

.mobile-menu__link {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

.mobile-menu__label {
    font-family: var(--font-serif);
    font-size: 34px;
    line-height: 1.1;
}

.mobile-menu__num {
    font-size: 12px;
    letter-spacing: .18em;
    color: var(--bronze);
}

.mobile-menu__lang {
    display: flex;
    gap: 8px;
    margin-top: 28px;
}

.mobile-menu__lang a {
    min-width: 56px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-decoration: none;
}

.mobile-menu__lang a[aria-current] {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.mobile-menu__cta {
    flex: none;
    padding: 20px 20px 28px;
    border-top: 1px solid var(--line);
    background: #efe9df;
}

.mobile-menu__cta p {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--ink-2);
}

.mobile-menu__cta .btn {
    padding: 16px;
    letter-spacing: .1em;
}

@media (max-width: 900px) {
    .site-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .site-header__inner {
        height: 63px;
        padding: 0 12px 0 20px;
    }

    .site-header__logo img {
        height: 22px;
    }
}

/* ==========================================================================
   3. Hero, quote and About (R3)
   ========================================================================== */

.hero {
    position: relative;
    height: 720px;
    overflow: hidden;
    background: #2a2622;
    color: #fff;
}

.hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 24, 28, .82) 0%, rgba(20, 24, 28, .6) 50%, rgba(20, 24, 28, .1) 85%);
}

/* Narrower screens: the 84 px title covers more of the photo, so the shade reaches further (T5.4) */
@media (max-width: 1199px) {
    .hero__shade {
        background: linear-gradient(90deg, rgba(20, 24, 28, .84) 0%, rgba(20, 24, 28, .7) 50%, rgba(20, 24, 28, .14) 85%);
    }
}

@media (max-width: 1023px) {
    .hero__shade {
        background: linear-gradient(90deg, rgba(20, 24, 28, .84) 0%, rgba(20, 24, 28, .74) 60%, rgba(20, 24, 28, .4) 100%);
    }
}

.hero__content {
    position: relative;
    height: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter) 88px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero .eyebrow {
    margin-bottom: 18px;
    color: var(--bronze-pale);
}

.hero__title {
    max-width: 760px;
    margin: 0 0 20px;
    font-size: 84px;
    line-height: 1;
    color: #fff;
}

.hero__motto {
    margin: 0 0 36px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 26px;
    color: #ece6dd;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero .btn:focus-visible {
    outline-color: #fff;
}

.about-section {
    padding: 120px 0 104px;
}

.quote {
    max-width: 920px;
    margin: 0 auto 80px;
    text-align: center;
}

.quote p {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 40px;
    line-height: 1.3;
    color: var(--ink);
}

.about {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about__pair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.about-card {
    padding: 14px;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(30, 40, 48, .08), 0 12px 28px rgba(30, 40, 48, .08);
}

.about-card__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.about-card__body {
    padding: 24px 14px 4px;
}

.about-card h2 {
    margin: 0 0 14px;
    font-size: 32px;
    line-height: 1.15;
}

.about-card__body > p:not(.eyebrow) {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-body);
}

.about-card strong {
    font-weight: 600;
    color: var(--ink);
}

.about-card--wide {
    display: flex;
    flex-wrap: wrap;
}

.about-card--wide .about-card__img {
    flex: 5 1 420px;
    min-width: 0;
    min-height: 440px;
    height: auto;
    aspect-ratio: auto;
}

.about-card--wide .about-card__body {
    flex: 7 1 480px;
    min-width: 0;
    padding: 30px 40px 18px;
}

.about-card--wide h2 {
    margin-bottom: 18px;
    font-size: 40px;
    line-height: 1.1;
}

.about-card--wide .about-card__body > p:not(.eyebrow) {
    font-size: 17px;
}

@media (max-width: 768px) {
    .hero {
        height: 620px;
    }

    .hero__img {
        object-position: 50% 35%;
    }

    .hero__shade {
        background: linear-gradient(180deg, rgba(20, 24, 28, .08) 8%, rgba(20, 24, 28, .7) 32%, rgba(20, 24, 28, .9) 100%);
    }

    .hero__content {
        padding-bottom: 36px;
    }

    .hero .eyebrow {
        margin-bottom: 12px;
    }

    .hero__title {
        margin-bottom: 12px;
        font-size: 46px;
        line-height: 1.02;
    }

    .hero__motto {
        margin-bottom: 24px;
        font-size: 21px;
        line-height: 1.3;
    }

    .hero__actions {
        flex-direction: column;
        gap: 10px;
    }

    .hero__actions .btn {
        display: flex;
        width: 100%;
        padding: 15px;
    }

    .about-section {
        padding: 72px 0 64px;
    }

    .quote {
        margin-bottom: 56px;
    }

    .quote p {
        font-size: 29px;
    }

    .about,
    .about__pair {
        gap: 24px;
    }

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

    .about-card {
        padding: 12px;
        box-shadow: 0 1px 2px rgba(30, 40, 48, .08), 0 10px 24px rgba(30, 40, 48, .08);
    }

    .about-card--wide {
        display: block;
    }

    .about-card--wide .about-card__img {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .about-card__body,
    .about-card--wide .about-card__body {
        padding: 18px 6px 2px;
    }

    .about-card h2,
    .about-card--wide h2 {
        margin-bottom: 12px;
        font-size: 28px;
    }

    .about-card__body > p:not(.eyebrow),
    .about-card--wide .about-card__body > p:not(.eyebrow) {
        font-size: 15px;
    }
}

/* ==========================================================================
   4. Services and project collection (R4)
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

/* Captions in the same row line up (photo and caption rows shared via subgrid) */
@supports (grid-template-rows: subgrid) {
    .services-grid .polaroid--service {
        display: grid;
        grid-row: span 2;
        grid-template-rows: subgrid;
        row-gap: 0;
    }
}

.collection {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 36px 32px;
}

.collection__item--featured { grid-column: span 6; height: 540px; }
.collection__item--polaroid { grid-column: span 2; height: 500px; }
.collection__item--pair     { grid-column: span 3; height: 400px; }
.collection__item--wide     { grid-column: span 6; height: 400px; }
.collection__item--call-pair { grid-column: span 3; height: 400px; }
.collection__item--call-4   { grid-column: span 4; height: 500px; }
.collection__item--call-2   { grid-column: span 2; height: 500px; }

/* Call card in a polaroid-width cell: placeholder above the text */
.collection__item--call-2 {
    flex-direction: column;
}

.collection__item--call-2 .postcard__placeholder {
    flex: 1 1 auto;
}

.collection__item--call-2 .postcard__body {
    flex: none;
    margin: 16px 0 0;
    padding: 16px 6px 6px;
    border-left: 0;
    border-top: 1px solid var(--line-card);
}

.collection__item--call-2 .postcard__lines {
    display: none;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    /* Album of equal detailed cards, alternating left/right, slightly turned (static, not animated) */
    .collection {
        display: flex;
        flex-direction: column;
        gap: 34px;
    }

    .collection > .collection__item {
        width: 90%;
        height: auto;
    }

    .collection > .album-left {
        align-self: flex-start;
        rotate: -1deg;
    }

    .collection > .album-right {
        align-self: flex-end;
        rotate: .9deg;
    }

    .collection > .postcard--call {
        order: 1;
    }

    .collection__item--call-2 .postcard__body {
        margin: 14px 0 0;
        padding: 12px 6px 2px;
    }
}

/* Cross-document view transition: the card photo "moves" into the project page (progressive enhancement) */
@view-transition {
    navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
    @view-transition {
        navigation: none;
    }
}

/* Returning to /#projekt-<slug>: briefly mark the card the visitor came from */
@media (prefers-reduced-motion: no-preference) {
    .collection > :target {
        animation: card-highlight 1.6s ease-out;
    }
}

@keyframes card-highlight {
    0%, 35% {
        box-shadow: 0 0 0 3px var(--bronze), var(--shadow-card);
    }
    100% {
        box-shadow: var(--shadow-card);
    }
}

/* ==========================================================================
   5. Contact and footer (R5)
   ========================================================================== */

.contact {
    border-top: 1px solid var(--line-soft);
}

.contact__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "head estimate"
        "companies estimate";
    grid-template-rows: auto 1fr;
    column-gap: 56px;
}

.contact__head { grid-area: head; }
.contact__companies { grid-area: companies; }
.estimate { grid-area: estimate; align-self: start; }

.contact__head h2 {
    margin: 0 0 20px;
    font-size: 48px;
    line-height: 1.1;
}

.contact__text {
    margin: 0 0 36px;
    color: var(--ink-2);
}

.contact__companies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    align-content: start;
    gap: 28px;
}

.contact-company {
    padding-top: 18px;
    border-top: 1px solid var(--line-strong);
}

.contact-company__name {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 24px;
}

.contact-company__person {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--ink-3);
}

.contact-company__email {
    color: var(--ink);
    overflow-wrap: anywhere;
}

.contact-company__email:hover {
    color: var(--bronze);
}

.estimate {
    padding: 40px;
}

.estimate__title {
    margin: 0 0 14px;
    font-size: 34px;
}

.estimate__steps {
    margin: 0 0 28px;
    padding-left: 20px;
    color: #dfe5ea;
}

.estimate .btn {
    padding: 15px 26px;
}

.site-footer {
    padding: 48px 0 28px;
    background: var(--footer);
    color: #b9c0c6;
}

.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
}

.site-footer__brand {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 28px;
    color: #fff;
}

.site-footer__tagline {
    margin: 0;
    font-size: 14px;
}

.site-footer a,
.site-footer .cookie-settings-link {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer .cookie-settings-link:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer a:focus-visible,
.site-footer .cookie-settings-link:focus-visible {
    outline: 2px solid var(--bronze-light);
    outline-offset: 3px;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    letter-spacing: .08em;
}

.site-footer__links li + li::before {
    content: "·";
    margin: 0 .55em;
}

.cookie-settings-link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
    cursor: pointer;
}

.site-footer__copy {
    margin: 32px 0 0;
    padding-top: 18px;
    border-top: 1px solid #2e3740;
    font-size: 13px;
    color: #8d969e;
}

@media (max-width: 768px) {
    .contact__grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "head"
            "estimate"
            "companies";
        grid-template-rows: none;
    }

    .contact__head h2 {
        margin-bottom: 12px;
        font-size: 36px;
    }

    .contact__text {
        margin-bottom: 28px;
        font-size: 15px;
    }

    .estimate {
        margin-bottom: 32px;
        padding: 28px 22px;
    }

    .estimate__title {
        margin-bottom: 12px;
        font-size: 28px;
        line-height: 1.15;
    }

    .estimate__steps {
        margin-bottom: 22px;
        font-size: 15px;
    }

    .estimate .btn {
        display: flex;
        width: 100%;
        padding: 16px;
        letter-spacing: .1em;
    }

    .contact__companies {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .contact-company {
        padding-top: 16px;
    }

    .contact-company__name {
        font-size: 23px;
    }

    .contact-company__email {
        display: inline-block;
        padding: 8px 0;
    }

    .site-footer {
        padding: 40px 0 28px;
    }

    .site-footer__top {
        display: block;
    }

    .site-footer__brand {
        font-size: 26px;
    }

    .site-footer__tagline {
        margin-bottom: 24px;
    }

    .site-footer__ig {
        display: none;
    }

    .site-footer__links {
        flex-direction: column;
        font-size: 14px;
        letter-spacing: 0;
    }

    .site-footer__links li {
        border-top: 1px solid #2e3740;
    }

    .site-footer__links li:last-child {
        border-bottom: 1px solid #2e3740;
    }

    .site-footer__links li + li::before {
        content: none;
    }

    .site-footer__links a,
    .site-footer__links .cookie-settings-link {
        display: block;
        width: 100%;
        min-height: 44px;
        padding: 10px 0;
        color: #d7dce0;
        text-align: left;
    }

    .site-footer__copy {
        margin-top: 24px;
        padding-top: 0;
        border-top: 0;
        font-size: 12px;
    }
}

/* ==========================================================================
   7. Legal pages, 404 and cookie banner (R6)
   ========================================================================== */

.legal {
    padding-bottom: 96px;
}

.legal__bar {
    max-width: calc(760px + 2 * var(--gutter));
    margin: 0 auto;
    padding: 28px var(--gutter) 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
}

.back-link:hover {
    color: var(--bronze);
}

.back-link:focus-visible,
.legal__content a:focus-visible,
.cookie-link:focus-visible {
    outline: 2px solid var(--bronze);
    outline-offset: 3px;
}

.legal__content {
    max-width: calc(760px + 2 * var(--gutter));
    margin: 0 auto;
    padding: 40px var(--gutter) 0;
}

.legal__content h1 {
    margin: 0 0 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
    font-size: 48px;
    line-height: 1.1;
}

.legal__content h2 {
    margin: 48px 0 16px;
    font-size: 28px;
    line-height: 1.2;
}

.legal__content p,
.legal__content li {
    margin: 0 0 14px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-body);
}

.legal__content ul {
    margin: 0 0 24px;
    padding-left: 22px;
}

.legal__content strong {
    font-weight: 600;
    color: var(--ink);
}

.legal__content a {
    color: var(--bronze);
}

.legal__content a:hover {
    color: var(--bronze-hover);
}

.policy-footer {
    margin-top: 48px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    font-size: 14px;
    color: var(--ink-3);
}

/* Cookie table */
.table-container {
    margin: 20px 0 24px;
    overflow-x: auto;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table-container th,
.table-container td {
    padding: 10px 14px 10px 0;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: top;
}

.table-container th {
    border-bottom-color: var(--line);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--bronze);
}

.table-container td {
    color: var(--ink-body);
}

/* Impressum: catalogue-style label / value list */
.impressum-list {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 28px;
    margin: 0 0 8px;
    font-size: 16px;
}

.impressum-list dt,
.impressum-list dd {
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
}

.impressum-list dt {
    padding-top: 13px;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--bronze);
}

.impressum-list dd {
    margin: 0;
    color: var(--ink);
    overflow-wrap: anywhere;
}

/* 404: Croatian and English side by side in one column */
.not-found__en {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line-soft);
}

.not-found__en h2 {
    margin-top: 0;
}

/* Cookie banner: both choices equally prominent (D-7) */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(30, 40, 48, .08);
}

.cookie-banner__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    padding-block: 20px;
}

.cookie-banner__text {
    flex: 1 1 420px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-2);
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.cookie-link {
    font-size: 14px;
    color: var(--bronze);
}

.cookie-banner .btn {
    min-width: 150px;
    padding: 11px 20px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .legal {
        padding-bottom: 64px;
    }

    .legal__bar {
        padding-top: 16px;
    }

    .legal__content {
        padding-top: 24px;
    }

    .legal__content h1 {
        margin-bottom: 24px;
        padding-bottom: 20px;
        font-size: 36px;
    }

    .legal__content h2 {
        margin-top: 36px;
        font-size: 24px;
    }

    .legal__content p,
    .legal__content li {
        font-size: 15px;
    }

    .impressum-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .impressum-list dt {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .impressum-list dd {
        padding-top: 4px;
    }

    .cookie-banner__inner {
        padding-block: 16px;
    }

    .cookie-banner__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .cookie-link {
        grid-column: 1 / -1;
    }

    .cookie-banner .btn {
        min-width: 0;
        width: 100%;
    }
}

/* ==========================================================================
   8. Project page and lightbox (Phase 3, D-12)
   ========================================================================== */

.show-mobile,
.hint-tap {
    display: none;
}

@media (pointer: coarse) {
    .hint-click { display: none; }
    .hint-tap { display: inline; }
}

.project-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 28px;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.project-bar a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.project-bar a:hover {
    color: var(--bronze);
}

.project-bar a:focus-visible {
    outline: 2px solid var(--bronze);
    outline-offset: 3px;
}

.project-bar__pn {
    display: flex;
    align-items: center;
    gap: 24px;
}

.project-bar__off {
    color: #8a8076;
}

/* Title postcard */
.project-hero {
    padding-top: 32px;
    padding-bottom: 88px;
}

.postcard--hero {
    flex-wrap: wrap;
    padding: 22px;
    box-shadow: 0 1px 2px rgba(30, 40, 48, .08), 0 18px 40px rgba(30, 40, 48, .10);
}

.postcard--hero .postcard__media {
    flex: 3 1 560px;
}

.postcard--hero .postcard__media img {
    height: 560px;
}

.postcard--hero .postcard__body {
    flex: 2 1 380px;
    gap: 18px;
    margin-left: 32px;
    padding: 10px 10px 10px 32px;
}

.postcard--hero .postcard__body .place {
    margin: 0;
    letter-spacing: .2em;
}

.project-hero__title {
    margin: 0;
    font-size: 50px;
    line-height: 1.06;
}

.project-hero__summary {
    margin: 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 21px;
    line-height: 1.4;
    color: var(--ink-2);
}

/* Catalogue card: label / value */
.catalog {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 20px;
    margin: auto 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--rule);
    font-size: 14px;
}

.catalog dt {
    padding-top: 3px;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--bronze);
}

.catalog dd {
    margin: 0;
}

.catalog a {
    color: var(--ink);
}

/* About the project */
.project-about {
    display: flex;
    flex-wrap: wrap;
    gap: 64px;
    padding-bottom: 96px;
}

.project-about__aside {
    flex: 0 1 260px;
    min-width: 0;
}

.project-about__lead {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 26px;
    line-height: 1.25;
}

.project-about__text {
    flex: 1 1 560px;
    min-width: 0;
    max-width: 700px;
    font-size: 18px;
    line-height: 1.75;
    color: #2f3a43;
}

.project-about__text p:not(.eyebrow) {
    margin: 0 0 20px;
}

.project-about__text p:last-child {
    margin-bottom: 0;
}

/* Smaller section heads on the project page */
.section-head--sm {
    margin-bottom: 40px;
    padding-bottom: 24px;
}

.section-head--sm h2 {
    font-size: 40px;
}

.project-pairs,
.project-gallery {
    padding-block: 88px;
}

.project-gallery {
    padding-top: 96px;
}

.pairs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.pair-figure {
    margin: 0;
    padding: 14px 14px 18px;
}

.pair-figure .polaroid__img {
    aspect-ratio: 3 / 4;
    height: auto;
}

.pair-figure figcaption {
    margin-top: 14px;
    font-family: var(--font-serif);
    font-size: 22px;
    text-align: center;
}

/* Photo grid: polaroids with "Sl. N · caption" */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px 28px;
}

.photo {
    padding: 12px 12px 0;
    box-shadow: 0 1px 2px rgba(30, 40, 48, .08), 0 10px 24px rgba(30, 40, 48, .08);
}

.photo .polaroid__img {
    aspect-ratio: 4 / 5;
    height: auto;
}

.photo__caption {
    margin: 0;
    padding: 12px 4px 16px;
    font-size: 13px;
    color: var(--ink-2);
}

.figure-no {
    font-family: var(--font-serif);
    font-size: 17px;
    color: var(--ink);
}

/* Next project and "similar object?" */
.project-next {
    padding-bottom: 96px;
}

.project-next .eyebrow {
    margin-bottom: 20px;
}

.postcard--next {
    height: 340px;
}

.postcard--next .postcard__media {
    flex: 2 1 0;
}

.postcard--next .postcard__body {
    flex: 3 1 0;
    gap: 12px;
    margin-left: 28px;
    padding: 8px 8px 8px 28px;
}

.postcard--next .postcard__body .place {
    margin: 0;
}

.postcard--next .postcard__title {
    font-size: 34px;
}

.postcard--next .postcard__summary {
    font-size: 16px;
}

.postcard--next .postcard__lines {
    display: none;
}

.postcard--next .postcard__link {
    margin-top: auto;
}

.project-next__all {
    margin: 36px 0 0;
    text-align: center;
}

.project-similar {
    padding-bottom: 96px;
}

.similar-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 36px 44px;
}

.similar-band > div {
    flex: 1 1 420px;
    min-width: 0;
}

.similar-band__text {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 30px;
    line-height: 1.2;
}

.similar-band .btn {
    padding: 15px 26px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--lightbox);
    color: #e9ecef;
}

.lightbox[open] {
    display: flex;
    flex-direction: column;
}

.lightbox::backdrop {
    background: var(--lightbox);
}

html:has(.lightbox[open]) {
    overflow: hidden;
}

.lightbox button {
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
}

.lightbox button:focus-visible {
    outline: 2px solid var(--bronze-light);
    outline-offset: 2px;
}

.lightbox__top {
    flex: none;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 28px 0 40px;
    border-bottom: 1px solid #262d33;
}

.lightbox__title {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #a9b1b8;
}

.lightbox__count {
    color: #fff;
}

.lightbox__close {
    flex: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__close .icon {
    font-size: 24px;
}

.lightbox__stage {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
}

.lightbox__arrow {
    flex: none;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #3a434b !important;
    border-radius: 50%;
}

.lightbox__arrow .icon {
    font-size: 22px;
}

.lightbox__arrow:hover {
    background: rgba(255, 255, 255, .08);
}

.lightbox__figure {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.lightbox__img {
    display: block;
    max-width: 100%;
    max-height: calc(100% - 50px);
    min-height: 0;
    object-fit: contain;
    padding: 10px;
    background: #fff;
}

.lightbox__caption {
    font-family: var(--font-serif);
    font-size: 22px;
    color: #fff;
}

.lightbox__caption .figure-no {
    font-size: inherit;
    color: inherit;
}

.lightbox__caption em {
    color: #cfd5da;
}

.lightbox__hint {
    display: none;
}

.lightbox__thumbs {
    flex: none;
    display: flex;
    gap: 10px;
    padding: 16px 40px 24px;
    overflow-x: auto;
    border-top: 1px solid #262d33;
    scrollbar-width: thin;
}

.lightbox__thumbs::before,
.lightbox__thumbs::after {
    content: '';
    margin: auto;
}

.lightbox__thumb {
    flex: none;
    width: 72px;
    height: 72px;
    padding: 3px !important;
    background: #2a3138 !important;
    opacity: .7;
}

.lightbox__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox__thumb.is-active {
    background: #fff !important;
    opacity: 1;
}

.lightbox__mnav {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .show-mobile { display: inline; }

    .project-bar {
        padding-top: 8px;
        font-size: 12px;
    }

    .project-bar__pn .project-bar__off,
    .project-bar__pn a[rel="prev"] {
        display: none;
    }

    .project-hero {
        padding-top: 8px;
        padding-bottom: 48px;
    }

    .postcard--hero {
        display: block;
        padding: 12px;
        box-shadow: 0 1px 2px rgba(30, 40, 48, .08), 0 12px 26px rgba(30, 40, 48, .10);
    }

    .postcard--hero .postcard__media img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .postcard--hero .postcard__body {
        display: block;
        margin: 16px 0 0;
        padding: 16px 6px 6px;
    }

    .postcard--hero .postcard__body .place {
        margin-bottom: 8px;
        font-size: 11px;
        letter-spacing: .18em;
    }

    .project-hero__title {
        margin-bottom: 12px;
        font-size: 34px;
        line-height: 1.08;
    }

    .project-hero__summary {
        margin-bottom: 18px;
        font-size: 19px;
    }

    .catalog {
        display: block;
        padding-top: 14px;
    }

    .catalog dt {
        padding-top: 0;
        font-size: 10px;
    }

    .catalog dd {
        margin-bottom: 10px;
    }

    .catalog dd:last-child {
        margin-bottom: 0;
    }

    .project-about {
        display: block;
        padding-bottom: 56px;
    }

    .project-about__aside .eyebrow {
        margin-bottom: 10px;
    }

    /* Mobile mockup: eyebrow and text only (the lead sentence is part of the text anyway) */
    .project-about__lead {
        display: none;
    }

    .project-about__text {
        font-size: 17px;
    }

    .project-about__text p:not(.eyebrow) {
        margin-bottom: 18px;
    }

    .section-head--sm {
        margin-bottom: 22px;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .section-head--sm h2 {
        margin-bottom: 8px;
        font-size: 30px;
    }

    .section-head--sm .section-head__text {
        margin-top: 0;
        font-size: 14px;
    }

    .project-pairs,
    .project-gallery {
        padding-block: 56px;
    }

    .pairs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .pair-figure {
        padding: 8px 8px 10px;
    }

    .pair-figure figcaption {
        margin-top: 8px;
        font-size: 18px;
    }

    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }

    .photo {
        padding: 8px 8px 0;
        box-shadow: var(--shadow-card-sm);
    }

    .photo__caption {
        padding: 8px 2px 12px;
        font-size: 12px;
        line-height: 1.35;
    }

    .photo__caption .figure-no {
        font-size: 15px;
    }

    .project-next {
        padding-bottom: 56px;
    }

    .project-next .eyebrow {
        margin-bottom: 14px;
    }

    .postcard--next {
        height: auto;
    }

    .postcard--next .postcard__body {
        margin: 14px 0 0;
        padding: 12px 6px 2px;
    }

    .postcard--next .postcard__title {
        font-size: 23px;
    }

    .postcard--next .postcard__summary {
        display: none;
    }

    .project-next__all {
        margin-top: 24px;
    }

    .project-next__all .btn {
        display: flex;
        width: 100%;
    }

    .project-similar {
        padding-bottom: 56px;
    }

    .similar-band {
        display: block;
        padding: 26px 22px;
    }

    .similar-band__text {
        margin: 0 0 18px;
        font-size: 25px;
    }

    .similar-band .btn {
        display: flex;
        width: 100%;
        padding: 16px;
    }

    .lightbox__top {
        height: 64px;
        padding: 0 8px 0 20px;
        border-bottom: 0;
    }

    .lightbox__name,
    .lightbox__sep {
        display: none;
    }

    .lightbox__title {
        letter-spacing: .18em;
        color: #fff;
    }

    .lightbox__hint .lightbox__name {
        display: inline;
    }

    .lightbox__stage {
        padding: 0 12px;
    }

    .lightbox__arrow,
    .lightbox__thumbs {
        display: none !important;
    }

    .lightbox__figure {
        justify-content: flex-start;
        gap: 0;
    }

    .lightbox__img {
        max-height: calc(100% - 60px);
        margin-block: auto;
        padding: 6px;
    }

    .lightbox__caption {
        align-self: stretch;
        padding: 18px 8px 0;
        font-size: 20px;
    }

    .lightbox__hint {
        display: block;
        margin: 4px 0 0;
        padding: 0 20px;
        font-size: 12px;
        color: #8f989f;
    }

    .lightbox__mnav {
        flex: none;
        display: flex;
        gap: 12px;
        padding: 12px 20px 28px;
    }

    .lightbox__mnav button {
        flex: 1 1 0;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid #3a434b !important;
        font-size: 12px;
        letter-spacing: .14em;
        text-transform: uppercase;
    }

    .lightbox__mnav .icon {
        font-size: 18px;
    }
}
