/* ==========================================================================
   David Fathi ??portfolio redesign
   Design tokens, layout, components. No framework, no build step.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --bg:        #faf9f7;
    --surface:   #ffffff;
    --ink:       #191917;
    --muted:     #6d6c66;
    --line:      #e6e4de;
    --accent:    #d96500;
    --accent-soft: #ffe6d1;

    --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
    --font-display: 'Manrope', var(--font-body);

    --measure: 66ch;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --max-width: 1280px;
    --header-h: 4rem;
    --radius: 2px;

    --shadow: 0 10px 40px -12px rgb(0 0 0 / 0.18);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:      #111113;
        --surface: #1a1a1d;
        --ink:     #ececea;
        --muted:   #97968f;
        --line:    #2b2b2f;
        --accent:  #ff8f40;
        --accent-soft: #3a2413;
        --shadow: 0 10px 40px -12px rgb(0 0 0 / 0.6);
    }
}
:root[data-theme="light"] {
    --bg: #faf9f7; --surface: #ffffff; --ink: #191917; --muted: #6d6c66;
    --line: #e6e4de; --accent: #d96500; --accent-soft: #ffe6d1;
    --shadow: 0 10px 40px -12px rgb(0 0 0 / 0.18);
}
:root[data-theme="dark"] {
    --bg: #111113; --surface: #1a1a1d; --ink: #ececea; --muted: #97968f;
    --line: #2b2b2f; --accent: #ff8f40; --accent-soft: #3a2413;
    --shadow: 0 10px 40px -12px rgb(0 0 0 / 0.6);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, iframe { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    text-wrap: balance;
}

a { color: inherit; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius);
}

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
    position: fixed; top: -100%; left: 1rem; z-index: 100;
    background: var(--ink); color: var(--bg);
    padding: 0.6rem 1rem; border-radius: var(--radius);
    transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Links & buttons ---------- */
.text-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.text-link:hover { color: var(--accent); }

.button {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.button:hover { background: var(--ink); color: var(--bg); }

.button--light { border-color: #fff; color: #fff; }
.button--light:hover { background: #fff; color: #111; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-h);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    max-width: var(--max-width);
    height: 100%;
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-header__brand {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.25rem);
    list-style: none;
    padding: 0;
}

.site-nav a {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    padding-block: 0.4rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
    color: var(--ink);
    border-bottom-color: var(--accent);
}

.theme-toggle {
    display: grid;
    place-items: center;
    width: 2rem; height: 2rem;
    color: var(--muted);
    border-radius: 50%;
    transition: color 0.2s;
}
.theme-toggle:hover { color: var(--ink); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .icon-moon { display: block; }
    :root:not([data-theme]) .icon-sun { display: none; }
}

/* Mobile nav */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 2.5rem; height: 2.5rem;
    z-index: 60;
}
.nav-toggle span {
    display: block; height: 2px; width: 22px;
    margin-inline: auto;
    background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.2s;
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 1rem var(--gutter) 2rem;
        transform: translateY(-110%);
        transition: transform 0.35s var(--ease);
        visibility: hidden;
    }
    .site-nav ul { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
    .site-nav a { font-size: 1rem; }

    body.nav-open .site-nav { transform: translateY(0); visibility: visible; }
    body.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
    body.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ---------- Layout primitives ---------- */
main {
    max-width: var(--max-width);
    margin-inline: auto;
    padding: calc(var(--header-h) + clamp(2rem, 6vw, 4rem)) var(--gutter) clamp(3rem, 8vw, 6rem);
}
body.is-home main { padding-top: 0; max-width: none; padding-inline: 0; }

.section-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}

.page-intro { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-intro h1 {
    font-size: clamp(2.2rem, 6vw, 3.75rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.page-intro p { color: var(--muted); max-width: var(--measure); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in {
    opacity: 1; transform: none;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Home header: the fact | fiction diptych ---------- */
.hero-split {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;                       /* the accent seam shows through */
    background: var(--accent);
    min-height: clamp(320px, 48vh, 520px);
    isolation: isolate;
}

.hero-split__pane {
    position: relative;
    overflow: hidden;
    background: #17171a;
}
.hero-split__pane img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: grayscale(1) contrast(1.06) brightness(0.82);
    transform: scale(1.02);
    transition: opacity 1.4s ease, transform 7s linear;
}
.hero-split__pane img.is-active {
    opacity: 1;
    transform: scale(1.08);        /* slow drift while visible */
}
.hero-split__pane::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgb(0 0 0 / 0.35), rgb(0 0 0 / 0.15) 40%, rgb(0 0 0 / 0.5));
}

.hero-split__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-content: center;
    text-align: center;
    color: #fff;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
    pointer-events: none;
}
.hero-split__kicker {
    font-family: var(--font-display);
    font-size: clamp(0.68rem, 1.4vw, 0.8rem);
    font-style: italic;
    letter-spacing: 0.22em;
    text-transform: lowercase;
    color: rgb(255 255 255 / 0.75);
    margin-bottom: 1rem;
}
.hero-split__title {
    font-size: clamp(3rem, 11vw, 7rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: 0 4px 40px rgb(0 0 0 / 0.55);
}
.hero-split__subtitle {
    margin-top: 1.1rem;
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    letter-spacing: 0.06em;
    color: rgb(255 255 255 / 0.85);
}

@media (max-width: 560px) {
    .hero-split { min-height: 52vh; }
}

/* ---------- News strip ---------- */
.news-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 1rem;
    max-width: var(--max-width);
    margin: clamp(1.25rem, 3vw, 2rem) auto 0;
    padding: 0.9rem var(--gutter);
    border-block: 1px solid var(--line);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.news-strip:hover { background: var(--surface); }
.news-strip__label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}
.news-strip__title { font-weight: 700; }
.news-strip__text { color: var(--muted); }
.news-strip__arrow { margin-left: auto; color: var(--accent); }
.news-strip:hover .news-strip__arrow { transform: translateX(3px); }
.news-strip__arrow { transition: transform 0.2s var(--ease); }

/* ---------- Home work listing ---------- */
.home-work {
    max-width: var(--max-width);
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) clamp(3rem, 8vw, 5rem);
}

/* ---------- Cards (work / books index) ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}

.card {
    display: block;
    text-decoration: none;
}
.card__media {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    background: var(--surface);
    border: 1px solid var(--line);
}
.card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease), opacity 0.4s;
}
.card:hover .card__media img { transform: scale(1.04); }

.card__year {
    display: block;
    margin-top: 0.8rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--muted);
}
.card__title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 0.15rem;
}
.card:hover .card__title { color: var(--accent); }

.card--book .card__media { aspect-ratio: 3 / 4; }

.work-section { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

/* ---------- Project pages ---------- */
.project-hero { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.project-hero__breadcrumb {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}
.project-hero__breadcrumb a { text-decoration: none; }
.project-hero__breadcrumb a:hover { color: var(--accent); }

.project-hero__title {
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    letter-spacing: -0.02em;
    max-width: 24ch;
}
.project-hero__meta {
    margin-top: 0.75rem;
    color: var(--muted);
    max-width: var(--measure);
}
.project-hero__year {
    font-family: var(--font-display);
    color: var(--accent);
    letter-spacing: 0.08em;
}

.project-essay {
    max-width: var(--measure);
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
    font-size: 1.02rem;
}
.project-essay p + p { margin-top: 1em; }
.project-essay__credits {
    margin-top: 1.5em !important;
    padding-top: 1.25em;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
}

/* ---------- Gallery ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(0.9rem, 2.5vw, 1.5rem);
    align-items: start;
}

.gallery__item { grid-column: span 2; min-width: 0; }
.gallery__item.span-2 { grid-column: span 4; }
.gallery__item.span-3 { grid-column: span 6; }

.gallery__item img {
    width: 100%;
    border-radius: var(--radius);
}
.gallery__item img[data-lightbox] { cursor: zoom-in; }

.gallery figcaption {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--muted);
}

.video-frame {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* Text interludes inside galleries */
.gallery__text, .gallery__story, .gallery__quote {
    align-self: center;
    font-size: 0.95rem;
}
.gallery__text { max-width: var(--measure); }
.gallery__text p + p, .gallery__story p + p { margin-top: 0.9em; }
.gallery__text h3 {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 1.4em 0 0.4em;
}
.gallery__text h3:first-child { margin-top: 0; }

.gallery__story {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    font-size: 0.88rem;
    align-self: start;
}
.gallery__story h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.gallery__story-date {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}
.gallery__story-coords {
    margin-top: 1rem;
    font-size: 0.75rem;
    font-style: italic;
    color: var(--muted);
}

.gallery__quote {
    max-width: 48ch;
    justify-self: center;
    text-align: center;
    padding: clamp(1.5rem, 4vw, 3rem) 1rem;
}
.gallery__quote p {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.4vw, 1.45rem);
    line-height: 1.5;
    text-wrap: balance;
}
.gallery__quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-style: normal;
    color: var(--muted);
}

.gallery__chapter {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: clamp(2rem, 6vw, 4rem) 0 0.5rem;
    border-bottom: 1px solid var(--line);
}
.gallery__chapter span { color: var(--accent); margin-right: 0.5rem; }

.gallery__date {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 600;
    text-align: center;
    color: var(--muted);
    padding: clamp(1.5rem, 5vw, 3rem) 0 0;
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .gallery__item { grid-column: span 1; }
    .gallery__item.span-2, .gallery__item.span-3,
    .gallery__text, .gallery__quote { grid-column: span 2; }
    .gallery__story { grid-column: span 2; }
}
@media (max-width: 560px) {
    .gallery { grid-template-columns: 1fr; }
    .gallery__item, .gallery__item.span-2, .gallery__item.span-3 { grid-column: span 1; }
}

/* ---------- Project pager ---------- */
.project-pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-top: clamp(3rem, 7vw, 5rem);
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.project-pager a { text-decoration: none; min-width: 0; }
.project-pager a:hover strong { color: var(--accent); }
.project-pager span {
    display: block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.3rem;
}
.project-pager strong {
    font-family: var(--font-display);
    font-weight: 500;
    transition: color 0.2s;
}
.project-pager a[rel="next"] { text-align: right; }
.project-pager__all {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.project-pager__all:hover { color: var(--accent); }

@media (max-width: 560px) {
    .project-pager { grid-template-columns: 1fr 1fr; }
    .project-pager__all { display: none; }
}

/* ---------- Book pages ---------- */
.book-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}
.book-specs {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    font-size: 0.9rem;
}
.book-specs ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.book-specs li { padding-block: 0.35rem; border-bottom: 1px dashed var(--line); }
.book-specs li:last-child { border-bottom: none; }
.book-specs a { color: inherit; text-decoration-color: var(--accent); }
.book-specs__soldout {
    font-family: var(--font-display);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}
.book-specs__project { margin-top: 1rem; }
.book-specs__note { margin-top: 1rem; font-size: 0.78rem; color: var(--muted); }

.gallery--book { grid-template-columns: repeat(2, 1fr); }
.gallery--book .gallery__item { grid-column: span 1; }

@media (max-width: 800px) {
    .book-layout { grid-template-columns: 1fr; }
    .book-specs { position: static; }
}

/* ---------- Info page ---------- */
.info-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: clamp(3rem, 7vw, 5rem);
}
.info-bio p + p { margin-top: 1em; }
.info-bio blockquote {
    margin-top: 1.75em;
    padding: 1.5rem;
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    font-size: 0.95rem;
}
.info-bio cite { display: block; margin-top: 0.9em; font-style: normal; font-size: 0.85rem; color: var(--muted); }

.info-contact__list { list-style: none; padding: 0; margin-bottom: 2.5rem; }
.info-contact__list li { padding-block: 0.4rem; }

.newsletter { display: flex; gap: 0.6rem; flex-wrap: wrap; position: relative; }
.newsletter input[type="email"] {
    flex: 1 1 180px;
    padding: 0.7rem 0.9rem;
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.newsletter input[type="email"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.cv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(2rem, 5vw, 3rem);
    align-items: start;
}
.cv__year { margin-bottom: 1.25rem; }
.cv__year h3 {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.4rem;
}
.cv__year ul { list-style: none; padding: 0; }
.cv__year li {
    font-size: 0.88rem;
    padding: 0.3rem 0 0.3rem 1rem;
    border-left: 1px solid var(--line);
}

@media (max-width: 800px) {
    .info-layout { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
}
.site-footer__inner {
    max-width: var(--max-width);
    margin-inline: auto;
    padding: 2.5rem var(--gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.site-footer__name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.site-footer__social {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}
.site-footer__social a {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
}
.site-footer__social a:hover { color: var(--accent); }
.site-footer__copy { font-size: 0.78rem; color: var(--muted); }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    background: rgb(10 10 12 / 0.94);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }

.lightbox__stage {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.75rem;
    height: 100%;
    padding: 3.5rem 0.5rem 2rem;
    min-width: 0;
}
.lightbox__stage img {
    max-width: 100%;
    max-height: calc(100vh - 8rem);
    width: auto;
    object-fit: contain;
    box-shadow: 0 20px 80px rgb(0 0 0 / 0.6);
}
.lightbox__stage figcaption {
    color: rgb(255 255 255 / 0.7);
    font-size: 0.8rem;
    text-align: center;
    max-width: 70ch;
    min-height: 1.2em;
}

.lightbox button {
    color: rgb(255 255 255 / 0.75);
    font-size: 1.6rem;
    padding: 1rem;
    transition: color 0.2s;
    z-index: 2;
}
.lightbox button:hover { color: #fff; }
.lightbox__close {
    position: absolute;
    top: 0.5rem; right: 0.75rem;
    font-size: 2.2rem;
    line-height: 1;
}
