/* FFJ – Freunde und Förderer des Jugendhandballs in Jöllenbeck e.V.
   Mobile first. One file, loaded synchronously. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue-950: #061547;
  --blue-900: #0a1f66;
  --blue-700: #0c3294;
  --blue-500: #2f5bd3;
  --blue-100: #dfe7fb;
  --blue-50: #f2f5fd;
  --red-600: #c8102e;
  --red-700: #a50d26;
  --ink: #141b2d;
  --ink-muted: #47506a;
  --line: #d8deec;
  --bg: #ffffff;
  --bg-alt: var(--blue-50);
  --ok: #157f3b;
  --error: #b3261e;

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 1rem;
  --maxw: 72rem;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(6 21 71 / .06), 0 8px 24px rgb(6 21 71 / .08);
  --header-h: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--red-600); }
:focus-visible { outline: 3px solid var(--red-600); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .005em;
  color: var(--blue-900);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 8vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 5.5vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 3.6vw, 1.6rem); }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.narrow { max-width: 44rem; }
.eyebrow {
  display: inline-block;
  font: 700 .82rem/1.2 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: .75rem;
}
.lead { font-size: 1.15rem; color: var(--ink-muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Skip link */
.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--blue-900); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-sm);
}
.skip:focus { top: .5rem; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .75rem 1.35rem;
  border: 2px solid transparent; border-radius: 999px;
  font: 700 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red-600); color: #fff; }
.btn--primary:hover { background: var(--red-700); color: #fff; }
.btn--ghost { border-color: currentColor; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--blue-900); border-color: #fff; }
.btn--outline { border-color: var(--blue-700); color: var(--blue-700); background: #fff; }
.btn--outline:hover { background: var(--blue-700); color: #fff; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--blue-900); }
.brand img { width: 2.6rem; height: auto; }
.brand__name { font: 700 1.5rem/1 var(--font-display); letter-spacing: .02em; }
.brand__sub { display: block; font: 500 .72rem/1.2 var(--font-body); color: var(--ink-muted); letter-spacing: .01em; }

.nav-desktop { display: none; }
.nav-desktop ul, .menu ul { list-style: none; margin: 0; padding: 0; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 2.75rem; min-width: 2.75rem; padding: .5rem .85rem;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--blue-900);
  font: 600 .95rem/1 var(--font-body); cursor: pointer;
}
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }

.menu {
  /* popover: no JS needed */
  inset: 0 0 auto auto; margin: 0; width: min(22rem, 100vw); height: 100dvh; max-height: none;
  border: 0; padding: 1rem var(--gutter) 2rem; background: var(--blue-950); color: #fff;
  box-shadow: -10px 0 40px rgb(0 0 0 / .3);
}
.menu::backdrop { background: rgb(6 21 71 / .55); }
.menu__close {
  display: flex; margin-left: auto; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid rgb(255 255 255 / .35);
  background: transparent; color: #fff; cursor: pointer;
}
.menu__close svg { width: 1.3rem; height: 1.3rem; }
.menu li a {
  display: block; padding: .8rem 0; border-bottom: 1px solid rgb(255 255 255 / .12);
  color: #fff; text-decoration: none; font: 700 1.6rem/1.2 var(--font-display);
}
.menu li a[aria-current="page"] { color: #ffb3bf; }
.menu .btn { margin-top: 1.5rem; width: 100%; }

@media (min-width: 960px) {
  .menu-toggle { display: none; }
  .nav-desktop { display: flex; align-items: center; gap: 1.75rem; }
  .nav-desktop ul { display: flex; gap: 1.5rem; }
  .nav-desktop a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; padding: .5rem 0; border-bottom: 2px solid transparent; }
  .nav-desktop a:not(.btn):hover, .nav-desktop a[aria-current="page"] { color: var(--blue-700); border-bottom-color: var(--red-600); }
  .nav-desktop .btn { min-height: 2.6rem; padding: .55rem 1.1rem; }
}

/* Hero */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--blue-950); overflow: hidden; }
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(6 21 71 / .15) 0%, rgb(6 21 71 / .55) 45%, rgb(6 21 71 / .94) 100%);
}
.hero .wrap { min-height: min(80svh, 44rem); display: flex; flex-direction: column; justify-content: flex-end; padding-block: 5rem 2rem; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .eyebrow { align-self: flex-start; color: #fff; background: var(--red-600); padding: .35rem .65rem; border-radius: 4px; }
.hero p { font-size: 1.12rem; max-width: 36rem; color: rgb(255 255 255 / .92); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
@media (min-width: 768px) {
  .hero::after { background: linear-gradient(90deg, rgb(6 21 71 / .94) 0%, rgb(6 21 71 / .7) 45%, rgb(6 21 71 / .1) 100%); }
  .hero .wrap { justify-content: center; padding-block: 7rem; }
  .hero p { font-size: 1.25rem; }
}

/* Hero facts */
.hero__facts { list-style: none; margin: 2rem 0 0; padding: 1.25rem 0 0; display: flex; gap: 2rem; border-top: 1px solid rgb(255 255 255 / .25); max-width: 36rem; }
.hero__facts li { display: flex; flex-direction: column; gap: .3rem; }
.hero__facts li + li { padding-left: 2rem; border-left: 1px solid rgb(255 255 255 / .25); }
.hero__facts strong { font: 700 2.25rem/1 var(--font-display); color: #fff; }
.hero__facts span { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .8); }
@media (min-width: 768px) { .hero__facts { margin-top: 2.5rem; } .hero__facts strong { font-size: 2.75rem; } }

/* Sections */
.section { padding-block: clamp(3.5rem, 9vw, 6rem); }
.section--alt { background: var(--bg-alt); }
.section--blue { background: var(--blue-900); color: #fff; }
.section--blue h2, .section--blue h3 { color: #fff; }
.section__head { margin-bottom: 2rem; max-width: 44rem; }
.section__head p { color: var(--ink-muted); font-size: 1.1rem; }
.section__foot { margin-top: 2rem; }

.split { display: grid; gap: 2rem; align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; gap: 4rem; } }

/* Support grid */
.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.feature__icon {
  width: 3rem; height: 3rem; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-700); margin-bottom: 1rem;
}
.feature__icon svg { width: 1.6rem; height: 1.6rem; }
.feature h3 { margin-bottom: .35rem; }
@media (max-width: 639px) {
  .feature { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; padding: 1.1rem; }
  .feature__icon { margin: 0; grid-row: span 2; }
}
.feature p { margin: 0; color: var(--ink-muted); font-size: 1rem; }

/* Post cards */
.post-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card__media { aspect-ratio: 16 / 10; background: var(--blue-100); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__ph {
  width: 100%; height: 100%; display: grid; place-items: center; color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgb(200 16 46 / .85) 0 18%, transparent 19%),
    linear-gradient(135deg, var(--blue-700), var(--blue-950));
  font: 700 2rem/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase;
}
.post-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.post-card h3 { font-size: 1.4rem; margin: 0; }
.post-card h3 a { color: var(--blue-900); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { margin: 0; color: var(--ink-muted); font-size: .97rem; }
.meta { font-size: .85rem; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.tag { display: inline-block; font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red-600); }

/* Gallery: swipe on mobile, grid on desktop */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; margin: 0; list-style: none; padding-left: 0; overscroll-behavior-x: contain; }
.gallery li { scroll-snap-align: start; }
.gallery a, .gallery img { display: block; border-radius: var(--radius-sm); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 768px) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; }
}
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); } .gallery li:first-child { grid-column: span 2; grid-row: span 2; } .gallery li:first-child img { aspect-ratio: auto; height: 100%; } }
.hint { font-size: .85rem; color: var(--ink-muted); margin-top: .25rem; }
@media (min-width: 768px) { .hint { display: none; } }

/* Join block */
.join { display: grid; gap: 1.5rem; }
.join__box { background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .18); border-radius: var(--radius); padding: 1.5rem; }
.join__box p { color: rgb(255 255 255 / .88); }
.join__price { font: 700 3rem/1 var(--font-display); color: #fff; margin-bottom: .6rem; }
.join__price small { font: 500 1rem/1 var(--font-body); color: rgb(255 255 255 / .8); }
.join ul.check { padding: 0; list-style: none; margin: 0 0 1.25rem; }
.join ul.check li { padding-left: 1.75rem; position: relative; margin-bottom: .45rem; }
.join ul.check li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1.05rem; height: .55rem; border-left: 3px solid #ff8094; border-bottom: 3px solid #ff8094; transform: rotate(-45deg); }
.join .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.section--blue a:not(.btn) { color: #fff; }
@media (min-width: 900px) { .join { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 3rem; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-weight: 700; font-size: 1.08rem; color: var(--blue-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .5rem; top: 50%; width: .7rem; height: .7rem;
  border-right: 2.5px solid var(--red-600); border-bottom: 2.5px solid var(--red-600);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 1.2rem; color: var(--ink-muted); }
.faq details > div p:last-child { margin: 0; }

/* Page header (subpages) */
.page-head { background: linear-gradient(135deg, var(--blue-900), var(--blue-950)); color: #fff; padding-block: 2.5rem 2.75rem; }
.page-head h1 { color: #fff; max-width: 22ch; }
.page-head p { color: rgb(255 255 255 / .86); max-width: 40rem; margin: 0; font-size: 1.1rem; }
.page-head .meta { color: rgb(255 255 255 / .8); margin-top: .75rem; }
.page-head .tag { color: #ffb3bf; }
.crumbs { font-size: .85rem; margin-bottom: 1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: rgb(255 255 255 / .6); }
.crumbs a { color: rgb(255 255 255 / .85); }

/* Prose */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.25rem; font-size: clamp(1.6rem, 4.4vw, 2.1rem); }
.prose h3 { margin-top: 1.75rem; }
.prose h4 { margin: 1.5rem 0 .4rem; font-size: 1.05rem; color: var(--blue-900); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose figure { margin: 0 0 1.75rem; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { font-size: .88rem; color: var(--ink-muted); margin-top: .5rem; }
.prose a { overflow-wrap: anywhere; }
.prose .gallery { margin-block: 1.5rem; }
.article { padding-block: 2.5rem 4rem; }
.article__foot { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; gap: 1rem; }
.pager { display: grid; gap: .75rem; }
.pager a { display: block; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; }
.pager small { display: block; color: var(--ink-muted); font-size: .8rem; }
@media (min-width: 700px) { .pager { grid-template-columns: 1fr 1fr; } .pager .next { text-align: right; grid-column: 2; } }

.cta-box { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius); padding: 1.4rem; margin-top: 2.5rem; }
.cta-box h2 { font-size: 1.7rem; margin-bottom: .35rem; }
.cta-box p { color: var(--ink-muted); }

/* Form */
.form { display: grid; gap: 1.5rem; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 0; background: #fff; }
.fieldset legend { font: 700 1.45rem/1.1 var(--font-display); color: var(--blue-900); padding: 0 .35rem; }
.fieldset > p { color: var(--ink-muted); font-size: .97rem; }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label, .field .label { font-weight: 600; font-size: .97rem; }
.field .opt { font-weight: 400; color: var(--ink-muted); }
.field input, .field select {
  width: 100%; min-height: 3rem; padding: .7rem .85rem;
  border: 1.5px solid #9aa4bf; border-radius: var(--radius-sm); background: #fff;
  font: 400 1.0625rem/1.3 var(--font-body); color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 3px rgb(47 91 211 / .3); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field .help { font-size: .87rem; color: var(--ink-muted); }
.field .err { font-size: .87rem; color: var(--error); font-weight: 600; }
.field .err:empty { display: none; }
.check-row { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem 0; }
.check-row input { flex: none; width: 1.4rem; height: 1.4rem; margin-top: .15rem; accent-color: var(--blue-700); }
.check-row label { font-size: .97rem; }
.choice { display: grid; gap: .6rem; }
@media (min-width: 640px) { .choice--3 { grid-template-columns: repeat(3, 1fr); } }
.choice label {
  display: flex; gap: .65rem; align-items: center; min-height: 3rem; padding: .6rem .9rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600;
}
.choice input { width: 1.25rem; height: 1.25rem; accent-color: var(--blue-700); flex: none; }
.choice label:has(input:checked) { border-color: var(--blue-700); background: var(--blue-50); }
.legal { font-size: .9rem; color: var(--ink-muted); background: var(--bg-alt); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--radius); padding: 1.25rem; border: 1px solid; }
.notice--ok { border-color: #9fd8b4; background: #effaf3; }
.notice--error { border-color: #f1b4ae; background: #fdf1f0; }
.notice h2 { font-size: 1.6rem; }
[data-depends][hidden] { display: none; }

/* Footer */
.site-footer { background: var(--blue-950); color: rgb(255 255 255 / .82); padding-block: 3rem 2rem; font-size: .97rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
.site-footer h2 { font-size: 1.35rem; color: #fff; margin-bottom: .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer address { font-style: normal; }
.footer-brand { display: flex; gap: .85rem; align-items: center; }
.footer-brand img { width: 3rem; background: #fff; border-radius: 10px; padding: .3rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .15); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .88rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* 404 */
.center { text-align: center; }
.center .btn { margin-top: 1rem; }

/* Gallery lightbox */
.gallery a { cursor: zoom-in; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(6 12 30 / .94); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgb(6 12 30 / .94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__fig { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 3.5rem 1rem 1rem; box-sizing: border-box; }
.lightbox__img { display: block; max-width: min(100%, 1600px); max-height: calc(100dvh - 7rem); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 10px 40px rgb(0 0 0 / .5); }
.lightbox__cap { font-size: .9rem; color: rgb(255 255 255 / .85); text-align: center; max-width: 40rem; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / .14); color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; transition: background .15s; }
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: rgb(255 255 255 / .3); }
.lightbox__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox__close { top: .75rem; right: .75rem; font-size: 2rem; }
.lightbox__prev, .lightbox__next { bottom: 1.25rem; }
.lightbox__prev { left: calc(50% - 3.75rem); }
.lightbox__next { right: calc(50% - 3.75rem); }
.lightbox--single .lightbox__prev, .lightbox--single .lightbox__next { display: none; }
.lightbox__fig { padding-bottom: 5.5rem; }
.lightbox__img { max-height: calc(100dvh - 12rem); }
@media (min-width: 768px) {
  .lightbox__prev, .lightbox__next { bottom: auto; top: 50%; transform: translateY(-50%); }
  .lightbox__prev { left: 1.5rem; } .lightbox__next { right: 1.5rem; }
  .lightbox__fig { padding: 3.5rem 6rem 1rem; } .lightbox__img { max-height: calc(100dvh - 7rem); }
}
html.lightbox-open { overflow: hidden; }
