/*
 * chorkreis.net – public site
 * One long page with anchor navigation: sticky two-row header (name on light, menu on dark),
 * full-bleed hero photo fading into the sand background with the faint music notes,
 * translucent white content cards in a 1120px column. Single theme on purpose.
 */
:root {
  --sand: #b19d82;
  --sand-light: #e6d9c3;
  --sand-deep: #8d7859;
  --paper: rgba(255, 255, 255, .84);
  --paper-solid: #fcfaf6;
  --ink: #3a3129;
  --ink-soft: #6f6252;
  --coral: #d95361;
  --coral-deep: #aa555e;
  --shadow: 0 10px 30px rgba(58, 49, 41, .12);
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 4px;
  --col: 1120px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-deep); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* lighter middle band + notes, fixed like on the old site */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    url('/images/noten.png') center / cover no-repeat,
    linear-gradient(90deg, var(--sand) 0%, var(--sand) 18%, var(--sand-light) 50%, var(--sand) 82%, var(--sand) 100%);
}
.backdrop::after { content: ""; position: absolute; inset: 0; background: var(--sand); opacity: .35; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--sans); font-stretch: 75%; font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(28px, 3.2vw, 38px); color: var(--coral); }
h2 { font-size: clamp(20px, 2.2vw, 26px); color: var(--coral-deep); }
h3 { font-size: 18px; color: var(--coral-deep); }
p { margin: 0; }
.eyebrow { font-stretch: 75%; font-weight: 300; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--ink-soft); }
.prose { max-width: 66ch; }
.prose > * + * { margin-top: 1em; }
.wordmark { font-family: var(--display); font-weight: 600; color: var(--coral); letter-spacing: .005em; line-height: 1; }
.muted { color: var(--ink-soft); }

/* text written in the admin editor */
.richtext { max-width: 66ch; }
.richtext > * + * { margin-top: .9em; }
.richtext h2 { font-size: 22px; margin-top: 1.4em; }
.richtext h3 { margin-top: 1.2em; }
.richtext ul, .richtext ol { padding-left: 1.3em; margin-bottom: 0; }
.richtext li + li { margin-top: .25em; }
.richtext blockquote { margin-left: 0; padding-left: 16px; border-left: 3px solid var(--sand-light); color: var(--ink-soft); font-style: italic; }
.richtext a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-stretch: 75%; font-weight: 700; font-size: 16px;
  letter-spacing: .06em; text-transform: uppercase; border: 2px solid var(--coral); color: var(--coral);
  border-radius: var(--radius); padding: 8px 18px; transition: background .25s, color .25s, border-color .25s;
  background: transparent; cursor: pointer; line-height: 1.4;
}
.btn:hover { background: var(--coral); color: #fff; }
.btn.solid { background: var(--coral); color: #fff; }
.btn.solid:hover { background: var(--coral-deep); border-color: var(--coral-deep); }
.btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper-solid); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper-solid); box-shadow: 0 6px 18px rgba(58, 49, 41, .18); }
.brandrow {
  max-width: var(--col); margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 8px 32px; flex-wrap: wrap; padding-block: 12px; padding-left: var(--gutter); padding-right: var(--gutter-r);
}
.brandrow .wordmark { font-size: clamp(28px, 3vw, 38px); padding-bottom: .08em; }
.brandrow .wordmark:hover { color: var(--coral-deep); }
.tagline { margin: 0; color: var(--ink-soft); font-stretch: 75%; letter-spacing: .08em; font-size: clamp(14px, 1.4vw, 18px); display: grid; gap: 2px; text-align: right; line-height: 1.3; }
.tagline > span { display: flex; gap: 0 14px; justify-content: flex-end; }
.tagline em { font-style: normal; }
.tagline em + em::before { content: "|"; opacity: .4; margin-right: 14px; }
.tagline .place { color: var(--coral-deep); letter-spacing: .12em; }
@media (max-width: 900px) {
  .brandrow { justify-content: center; text-align: center; }
  .tagline { text-align: center; }
  .tagline > span { justify-content: center; }
}
.menubar { background: var(--sand-deep); }
.menubar-inner {
  max-width: var(--col); margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 16px;
  padding-block: 6px; padding-left: var(--gutter); padding-right: var(--gutter-r);
}
.menubar-inner .wordmark { display: none; font-size: 22px; white-space: nowrap; }
.site-nav { min-width: 0; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px clamp(18px, 3vw, 44px); }
.site-nav a {
  font-stretch: 75%; font-size: 20px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  color: #fff; transition: color .3s, border-color .3s; padding: 6px 0; border-bottom: 2px solid transparent; display: block;
}
.site-nav a:hover, .site-nav a.active { color: #fff; border-bottom-color: var(--coral); }
.site-nav a.active { color: #ffd9dd; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--coral); border-radius: var(--radius); color: var(--coral);
  font-family: var(--sans); font-stretch: 75%; font-size: 16px; letter-spacing: .08em; padding: 6px 12px; cursor: pointer;
}
.menu-close { display: none; }

/* phones: one compact bar with name + menu button, full-screen overlay menu */
@media (max-width: 640px) {
  .brandrow { display: none; }
  .menubar { background: var(--paper-solid); }
  .menubar-inner { justify-content: space-between; }
  .menubar-inner .wordmark { display: block; font-size: clamp(19px, 5.6vw, 24px); }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
  .menu-close { display: none; }
  .site-nav {
    position: fixed; inset: 0; background: var(--sand-deep); display: none; z-index: 30;
    padding-top: calc(env(safe-area-inset-top, 0px) + 72px); padding-left: var(--gutter); padding-right: var(--gutter-r);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 6px; align-items: center; }
  .site-nav a { font-size: 30px; padding: 8px 0; letter-spacing: .14em; }
  .site-nav.open ~ .menu-close {
    display: inline-flex; position: fixed; z-index: 31; color: #fff; border-color: rgba(255, 255, 255, .7);
    top: calc(env(safe-area-inset-top, 0px) + 14px); right: var(--gutter-r);
  }
}

/* ---------- hero ---------- */
.hero { position: relative; height: clamp(240px, 44vw, 500px); overflow: hidden; }
.hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0, 0, 0, .6) 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0, 0, 0, .6) 85%, transparent 100%);
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(58, 49, 41, .22) 0%, rgba(58, 49, 41, 0) 32%); }
.plate {
  position: relative; z-index: 1; max-width: var(--col); margin: clamp(-70px, -6vw, -40px) auto 0;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
}
.plate-inner { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); border-left: 5px solid var(--coral); padding: 0 clamp(18px, 3vw, 32px); }
.next { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 0; color: inherit; }
.next .eyebrow { color: var(--coral-deep); }
.next strong { flex: 1 1 auto; font-stretch: 75%; font-weight: 700; font-size: 20px; color: var(--ink); }
.next .btn { margin-left: auto; }

/* ---------- layout ---------- */
.site-main {
  max-width: var(--col); margin: 0 auto; display: grid; gap: 28px;
  padding-block: 20px 48px; padding-left: var(--gutter); padding-right: var(--gutter-r);
}
.site-main.subpage { padding-top: 36px; }
.site-main > section { scroll-margin-top: 130px; }
@media (max-width: 640px) { .site-main > section { scroll-margin-top: 70px; } }
.card { background: var(--paper); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.two > * { min-width: 0; }
.two.wide-left { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 760px) { .two, .two.wide-left { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 16px; }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 6px 18px rgba(58, 49, 41, .15); background: var(--sand-light); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.empty { color: var(--ink-soft); font-style: italic; }

/* welcome + social icons */
.welcome { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.welcome > * { min-width: 0; }
@media (max-width: 640px) { .welcome { grid-template-columns: 1fr; } }
.socials-label { font-stretch: 75%; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 46px; height: 46px; border-radius: var(--radius); background: var(--sand-deep); color: #fff; display: grid; place-items: center; transition: background .25s, transform .25s; }
.socials a:hover { background: var(--coral); color: #fff; transform: translateY(-2px); }
.socials svg { width: 22px; height: 22px; fill: currentColor; }

/* facts strip (Chorkreis) */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.fact { background: var(--paper-solid); border-top: 3px solid var(--coral); padding: 12px 14px; border-radius: 0 0 var(--radius) var(--radius); }
.fact b { display: block; font-stretch: 75%; font-weight: 700; font-size: 26px; color: var(--coral); line-height: 1; font-variant-numeric: tabular-nums; }
.fact span { font-size: 13px; color: var(--ink-soft); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } .facts .fact:last-child { grid-column: 1 / -1; } }

/* ---------- Termine ---------- */
.featured {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px; background: var(--paper-solid); border-radius: var(--radius);
  padding: 20px; align-items: start; color: inherit;
}
.featured > * { min-width: 0; }
.featured .photo { aspect-ratio: 182 / 200; }
.featured.no-image { grid-template-columns: 1fr; }
@media (max-width: 640px) {
  .featured { grid-template-columns: 1fr; }
  .featured .photo { aspect-ratio: 16 / 8; }
  .featured .photo img { object-position: center 40%; }
}
.when { font-stretch: 75%; font-weight: 300; font-size: 20px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.featured h2 { font-size: clamp(24px, 3vw, 32px); color: var(--coral); margin: 4px 0 10px; }
.featured .actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.dates { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.dates a {
  display: grid; grid-template-columns: 72px 56px 1fr auto; gap: 16px; align-items: center; background: var(--paper-solid);
  border-radius: var(--radius); padding: 10px 14px 10px 10px; color: inherit; transition: background .2s;
}
.dates a:hover { background: #fff; color: inherit; }
.dates a > * { min-width: 0; }
.date { background: var(--sand-light); border-radius: var(--radius); text-align: center; height: 72px; display: grid; align-content: center; gap: 4px; line-height: 1; font-variant-numeric: tabular-nums; }
.date b { display: block; font-stretch: 75%; font-weight: 700; font-size: 26px; color: var(--coral); }
.date span { font-stretch: 75%; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.thumb { width: 56px; height: 72px; border-radius: var(--radius); overflow: hidden; background: var(--sand-light); display: grid; place-items: center; color: #fff; font-size: 26px; font-family: var(--display); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.dates h3 { color: var(--ink); font-size: 18px; }
.dates .where { font-size: 14px; color: var(--ink-soft); }
.dates .more { font-stretch: 75%; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
@media (max-width: 480px) {
  .dates a { grid-template-columns: 64px 48px 1fr; }
  .thumb { width: 48px; height: 62px; }
  .date { height: 62px; }
  .date b { font-size: 22px; }
  .dates .more { display: none; }
}

/* ---------- Rückblick ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.post { background: var(--paper-solid); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 6px; align-content: start; color: inherit; transition: background .2s; }
.post:hover { background: #fff; color: inherit; }
.post time { font-stretch: 75%; font-size: 14px; letter-spacing: .06em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.post h3 { color: var(--ink); }
.post p { font-size: 14px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post .author { font-size: 13px; font-style: italic; color: var(--coral-deep); }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; gap: 14px; } }
.album { display: grid; gap: 10px; align-content: start; color: inherit; }
.album:hover { color: inherit; }
.album .photo { aspect-ratio: 4 / 3; position: relative; width: 100%; }
.album .photo img { position: absolute; inset: 0; transition: transform .4s; }
.album:hover .photo img { transform: scale(1.04); }
.album .caption { font-size: 16px; line-height: 1.35; }
.album small { display: block; font-stretch: 75%; font-size: 12px; letter-spacing: .06em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* paging of reviews and galleries (JS hides all but the current page) */
[data-pager]:not(.is-paged) .pager { display: none; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.pager button { background: none; border: 0; padding: 4px 0; font-family: var(--sans); font-stretch: 75%; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); cursor: pointer; }
.pager button:hover { color: var(--coral-deep); }
.pager button[hidden] { display: inline-block !important; visibility: hidden; }
.pager .count { font-stretch: 75%; font-size: 13px; color: var(--ink-soft); letter-spacing: .06em; }

/* ---------- Kinder / Jugend / Verein ---------- */
.times { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.times li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; background: var(--paper-solid); padding: 10px 14px; border-radius: var(--radius); }
.times b { font-stretch: 75%; font-weight: 700; font-size: 17px; color: var(--coral); white-space: nowrap; font-variant-numeric: tabular-nums; }
.times span { font-size: 14px; color: var(--ink-soft); }
.times strong { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.quote { font-family: var(--display); font-size: 22px; line-height: 1.3; font-style: italic; color: var(--coral-deep); display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin: 16px 0; }
.quote img { width: 84px; height: 84px; object-fit: cover; object-position: top; border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow); }
.quote cite { display: block; font-family: var(--sans); font-stretch: 75%; font-style: normal; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.board { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.board li { display: grid; gap: 1px; }
.board b { font-stretch: 75%; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 15px; }
.board span { font-size: 13px; color: var(--ink-soft); }
@media (max-width: 400px) { .board { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.mail { font-stretch: 75%; font-size: 24px; font-weight: 700; overflow-wrap: anywhere; }
.newsletter { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; max-width: 520px; }
.newsletter label { grid-column: 1 / -1; }
.newsletter input[type=email] { font: inherit; padding: 10px 12px; border: 1px solid #c8bba6; border-radius: var(--radius); background: #fff; min-width: 0; width: 100%; }
.newsletter input[type=email]:focus { border-color: var(--coral); outline: none; }
.newsletter .trap { position: absolute; left: -5000px; }
@media (max-width: 480px) { .newsletter { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--sand-deep); color: #f3ebdd; }
.footer-inner {
  max-width: var(--col); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; font-size: 14px; line-height: 1.55;
  padding-block: 36px 40px; padding-left: var(--gutter); padding-right: var(--gutter-r);
}
.footer-inner > * { min-width: 0; }
.footer-inner h3 { color: #fff; margin-bottom: 8px; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; font-weight: 300; }
.footer-inner a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.footer-inner a:hover { color: #fff; border-bottom-color: #fff; }
.footer-inner .wordmark { color: #fff; font-size: 28px; margin-bottom: 6px; }
.footer-inner ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
.legal { border-top: 1px solid rgba(255, 255, 255, .2); text-align: center; font-size: 12px; color: #e6dac6; padding-block: 12px; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* ---------- detail (dialog and standalone page) ---------- */
.detail { display: grid; gap: 16px; }
.detail-head h1, .detail-head h2 { color: var(--coral); font-size: clamp(24px, 3vw, 30px); margin-top: 2px; }
.detail-body { display: grid; grid-template-columns: 1fr; gap: 22px; }
.detail-body.has-image { grid-template-columns: 180px 1fr; }
.detail-body > * { min-width: 0; }
.detail-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); align-self: start; }
.detail-image img { width: 100%; height: auto; }
@media (max-width: 560px) { .detail-body.has-image { grid-template-columns: 1fr; } .detail-image { max-width: 220px; } }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.attachments { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.attachments a::before { content: "↓ "; }
.detail-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.detail-photos a { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--sand-light); }
.detail-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.detail-photos a:hover img { transform: scale(1.04); }
.back { font-stretch: 75%; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }

dialog.detail-dialog {
  border: 0; border-radius: var(--radius); padding: 0; width: 100%; max-width: min(720px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); background: var(--paper-solid); color: var(--ink);
}
dialog.detail-dialog::backdrop { background: rgba(58, 49, 41, .55); backdrop-filter: blur(3px); }
.dialog-inner { padding: clamp(20px, 3vw, 32px); position: relative; }
.dialog-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink-soft); padding: 4px 8px; }
.dialog-close:hover { color: var(--coral); }
.dialog-inner .detail-head { padding-right: 36px; }
.dialog-loading { color: var(--ink-soft); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(28, 23, 19, .94); display: grid; grid-template-rows: auto 1fr auto; color: #f3ebdd; }
.lightbox[hidden] { display: none; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--gutter-r) 10px var(--gutter); }
.lightbox-title { font-stretch: 75%; letter-spacing: .06em; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-count { font-stretch: 75%; font-size: 14px; opacity: .75; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 56px; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox-caption { text-align: center; font-size: 14px; padding: 10px var(--gutter-r) calc(env(safe-area-inset-bottom, 0px) + 14px) var(--gutter); min-height: 44px; }
.lightbox button { background: none; border: 0; color: #fff; cursor: pointer; font-family: var(--sans); }
.lightbox-close { font-size: 30px; line-height: 1; padding: 4px 8px; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 44px; line-height: 1; padding: 12px; opacity: .8; }
.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover { opacity: 1; color: #ffd9dd; }
.lightbox-prev { left: 4px; }
.lightbox-next { right: 4px; }
@media (max-width: 640px) { .lightbox-stage { padding: 0 8px; } .lightbox-prev, .lightbox-next { font-size: 34px; background: rgba(0, 0, 0, .25); border-radius: var(--radius); } }
