
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/barlow-condensed-semibold.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:italic;font-weight:600;font-display:swap;src:url(fonts/barlow-condensed-semibold-italic.woff2) format("woff2")}
@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/barlow.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ibm-plex-mono.woff2) format("woff2")}


/* Layout: „Fahrzeugakte“ – linksbündiges Raster; die Seite trägt den Lack des Fahrzeugs (Steingrau),
   die Eckdaten sitzen auf einem Typenschild, das Kontakt-Band trägt den Polsterstoff. */
:root {
  --ground: #E3E0D4;      /* Lack Steingrau, aufgehellt */
  --surface: #EFECE2;     /* Typenschild, Tabellen */
  --line: #C4C0B0;
  --ink: #1C1F21;         /* Anbauteile Anthrazit */
  --ink-2: #4A4E4C;
  --band: #1D2939;        /* Polsterstoff */
  --band-ink: #ECE9DD;
  --band-2: #AEB8C7;
  --signal: #E07B12;      /* Seitenmarkierungsleuchte */
  --focus: #1C1F21;
  --mark: #FFE07A;        /* Entwurfsmarkierung */
  --mark-ink: #3A2E00;
  --lb: #0E1012;          /* Fotoansicht */
  --lb-ink: #EDEAE0;

  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --s--1: 0.875rem;
  --s-0: 1.0625rem;
  --s-1: 1.25rem;
  --s-2: 1.6rem;
  --gutter: clamp(16px, 4vw, 44px);
  --gap: clamp(10px, 1.5vw, 20px);
  --sect: clamp(64px, 9vw, 124px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #191C1E; --surface: #22262A; --line: #3A4044; --ink: #E6E3D6; --ink-2: #ACAB9F;
    --band: #111A27; --band-ink: #E6E3D6; --band-2: #93A0B3; --signal: #F29A33; --focus: #F29A33;
    --mark: #5C4A00; --mark-ink: #FFE9A6; --lb: #0B0D0F; --lb-ink: #EDEAE0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #191C1E; --surface: #22262A; --line: #3A4044; --ink: #E6E3D6; --ink-2: #ACAB9F;
  --band: #111A27; --band-ink: #E6E3D6; --band-2: #93A0B3; --signal: #F29A33; --focus: #F29A33;
  --mark: #5C4A00; --mark-ink: #FFE9A6; --lb: #0B0D0F; --lb-ink: #EDEAE0;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; color-scheme: light; }
html.lb-open { overflow: hidden; }
[id] { scroll-margin-top: 5.5rem; }
[tabindex="-1"]:focus { outline: none; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--s-0)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
p, ul, ol, dl, figure, h1, h2, h3 { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.nb { white-space: nowrap; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 60; padding: 12px 18px; background: var(--ink); color: var(--ground); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
p { text-wrap: pretty; }
.label { font: 500 0.74rem/1.3 var(--f-data); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
mark.todo { background: var(--mark); color: var(--mark-ink); padding: 0.05em 0.3em; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); padding-block: 6px; }
.top__name { font: italic 600 1.45rem/1 var(--f-display); letter-spacing: 0.005em; text-decoration: none; white-space: nowrap; padding-block: 10px; }
.top__name span { font-style: normal; font-size: 0.8em; color: var(--ink-2); margin-left: 0.15em; }
.top__nav { display: none; gap: clamp(14px, 1.8vw, 26px); }
.top__nav a { font: 500 0.78rem/1 var(--f-data); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding-block: 12px 10px; border-bottom: 2px solid transparent; }
.top__nav a:hover, .top__nav a[aria-current="location"] { border-bottom-color: var(--signal); }
.top__price { margin-left: auto; font: 600 1.2rem/1.2 var(--f-display); letter-spacing: 0.01em; white-space: nowrap; }
@media (min-width: 1100px) { .top__nav { display: flex; margin-left: auto; } .top__price { margin-left: 0; } }
@media (max-width: 1099px) {
  .top__in { flex-wrap: wrap; gap: 0 16px; }
  .top__nav { display: flex; order: 3; flex-basis: 100%; overflow-x: auto; white-space: nowrap; gap: 24px; scrollbar-width: thin; }
  .top__nav a { min-height: 40px; display: flex; align-items: center; }
  [id] { scroll-margin-top: 7.5rem; }
}
@media (max-width: 479px) {
  .top__price { display: none; }
  .top .btn { margin-left: auto; }
  .top__nav { gap: 10px; justify-content: space-between; }
  .top__nav a { font-size: .7rem; letter-spacing: .02em; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1.1rem/1 var(--f-display); letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
  background: var(--ink); color: var(--ground);
  border: 2px solid var(--ink); border-radius: 3px;
  padding: 0.72em 1.15em 0.68em; cursor: pointer; white-space: nowrap;
  min-height: 48px; transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--small { font-size: 0.95rem; padding: 0.55em 0.9em 0.5em; min-height: 42px; }
.btn--onband { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.btn--onband:hover { background: transparent; color: var(--band-ink); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-areas: "title" "photo" "body"; gap: 24px 40px; padding-block: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 48px); }
.hero__text { display: contents; }
.hero__title { grid-area: title; }
.hero__body { grid-area: body; }
.hero__title, .hero__body { display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 22px); min-width: 0; }
h1 { display: flex; flex-direction: column; font-family: var(--f-display); font-weight: 600; text-wrap: balance; }
.h1__make { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-2); }
.h1__model { font-style: italic; font-size: clamp(3.9rem, 12.2vw, 7.6rem); line-height: 0.84; letter-spacing: -0.012em; margin-left: -0.04em; padding-block: 0.06em 0.02em; }
.h1__sub { font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); line-height: 1.5; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 26px; padding-top: 6px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.video-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.video-link::before { content: ""; border-left: 9px solid currentColor; border-block: 6px solid transparent; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ink-2); font-size: var(--s--1); }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 5px; height: 5px; background: var(--signal); }
.price { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.price__num { font: 600 clamp(2.1rem, 4.4vw, 3rem)/0.95 var(--f-display); letter-spacing: 0.005em; }
.price__vb { font: 500 0.74rem/1.3 var(--f-data); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.hero__photo { grid-area: photo; min-width: 0; align-self: center; }
.hero__shot { aspect-ratio: 4 / 3; max-width: 100%; }
.hero__shot picture { display: block; width: 100%; height: 100%; }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "title photo" "body photo"; align-items: start; row-gap: 28px; }
  .hero__title { align-self: end; }
  .h1__model { font-size: clamp(4.5rem, 7.5vw, 6.4rem); }
  .hero__cta { gap: 24px; }
  .hero__photo { padding-block: 10px; }
}

/* ---------- Rundgang ---------- */
.tour { border-top: 1px solid var(--line); padding-top: clamp(32px, 5vw, 60px); }
.tour__heading { display: flex; flex-direction: column; gap: 12px; }
.tour__figure { display: flex; flex-direction: column; gap: 12px; }
.tour__player { position: relative; overflow: hidden; background: var(--lb); border-radius: 5px; aspect-ratio: 16 / 9; }
.tour__player video { display: block; width: 100%; height: 100%; object-fit: contain; }
.tour__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 16px 22px; border: 1px solid #ece9dd; border-radius: 3px; background: #1c1f21e8; color: #ece9dd; font: 600 1.2rem/1 var(--f-display); white-space: nowrap; cursor: pointer; transition: background-color .2s; }
.tour__play::before { content: ""; border-left: 12px solid currentColor; border-block: 8px solid transparent; }
.tour__play:hover { background: #1c1f21; }
.tour__caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; font-size: var(--s--1); color: var(--ink-2); }
.tour__caption p { max-width: 64ch; }
.tour__error { padding: 16px; border-left: 3px solid var(--signal); background: var(--surface); }

/* photos as buttons (open the large view) */
.shot { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: zoom-in; overflow: hidden; border-radius: 4px; background: var(--line); }
.shot:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.shot:hover img { transform: scale(1.025); }
.ratio-43 { aspect-ratio: 4 / 3; max-width: 100%; }
.ratio-21 { aspect-ratio: 2 / 1; max-width: 100%; }

/* ---------- Typenschild ---------- */
.plate { padding-bottom: clamp(8px, 2vw, 20px); }
.plate__frame {
  position: relative; padding: 9px; border-radius: 7px; border: 1.5px solid var(--ink);
  background:
    radial-gradient(circle at 9px 9px, var(--ink-2) 0 2.2px, transparent 2.8px),
    radial-gradient(circle at calc(100% - 9px) 9px, var(--ink-2) 0 2.2px, transparent 2.8px),
    radial-gradient(circle at 9px calc(100% - 9px), var(--ink-2) 0 2.2px, transparent 2.8px),
    radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), var(--ink-2) 0 2.2px, transparent 2.8px),
    var(--surface);
}
.plate__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); margin: 9px; border: 1px solid var(--line); }
.plate__grid > div { background: var(--surface); padding: 12px 14px 11px; min-width: 0; }
.plate__grid dt { font: 500 0.7rem/1.25 var(--f-data); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2); }
.plate__grid dd { margin: 5px 0 0; font: 600 clamp(1.25rem, 2.3vw, 1.7rem)/1.05 var(--f-display); letter-spacing: 0.015em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (min-width: 760px) { .plate__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- sections ---------- */
main { display: flex; flex-direction: column; gap: var(--sect); padding-bottom: var(--sect); }
.sec { display: flex; flex-direction: column; gap: clamp(22px, 3vw, 36px); }
.sec__head { display: grid; gap: 10px 40px; align-items: end; }
.sec__head h2, .band h2 { font: 600 clamp(2.1rem, 5.2vw, 3.4rem)/0.98 var(--f-display); letter-spacing: 0.012em; text-transform: uppercase; text-wrap: balance; }
.sec__head p { max-width: 38em; color: var(--ink-2); }
@media (min-width: 960px) { .sec__head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
h3 { font: 600 1.35rem/1.1 var(--f-display); letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Wohnraum-Umschalter ---------- */
.modes { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 22px); }
.modes__tabs { display: flex; flex-wrap: wrap; gap: 4px clamp(14px, 3vw, 34px); border-bottom: 1px solid var(--line); }
.modes__tabs button {
  all: unset; box-sizing: border-box; cursor: pointer;
  font: 600 clamp(1.1rem, 4.4vw, 1.7rem)/1 var(--f-display); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-2); padding: 10px 0 12px; border-bottom: 4px solid transparent; margin-bottom: -1px;
}
.modes__tabs button:hover { color: var(--ink); }
.modes__tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--signal); }
.modes__tabs button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.modes__panel { display: grid; gap: clamp(16px, 2.6vw, 36px); align-items: start; }
.modes__text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.modes__text ul { display: flex; flex-direction: column; gap: 6px; }
.modes__text li { padding-left: 1.1em; position: relative; }
.modes__text li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5em; height: 2px; background: var(--signal); }
@media (min-width: 900px) { .modes__panel { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }

/* ---------- Dritter Sitzplatz ---------- */
.seat { display: grid; gap: clamp(16px, 2.6vw, 36px); align-items: center; padding-top: clamp(18px, 2.4vw, 28px); border-top: 2px solid var(--ink); }
.seat figure { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.seat figcaption { font-size: var(--s--1); line-height: 1.5; color: var(--ink-2); }
.seat__text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.seat__text h3 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1; letter-spacing: 0.012em; }
.seat__text ul { display: flex; flex-direction: column; gap: 6px; }
.seat__text li { padding-left: 1.1em; position: relative; }
.seat__text li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5em; height: 2px; background: var(--signal); }
@media (min-width: 900px) { .seat { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* ---------- Foto-Raster ---------- */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.tile .shot { aspect-ratio: 4 / 3; }
.tile figcaption, .bleed figcaption, .hero__photo figcaption, .modes__panel figcaption { font-size: var(--s--1); line-height: 1.35; color: var(--ink-2); }
.hero__photo, .modes__panel figure { display: flex; flex-direction: column; gap: 7px; }
@media (max-width: 899px) { .grid--3 > :first-child { grid-column: span 2; } }
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--6 > :first-child { grid-column: span 2; grid-row: span 2; }
  .grid--6 > :first-child .shot { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
}

/* ---------- breites Bild ---------- */
.bleed { display: flex; flex-direction: column; gap: 8px; }
.bleed .shot { border-radius: 0; }
.bleed figcaption { width: 100%; }

/* ---------- KI-Visualisierung ---------- */
.grid--ki { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid--ki { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--ki > :first-child { grid-column: span 2; } }
@media (min-width: 900px) { .grid--ki { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--ki > :first-child { grid-column: auto; } }

/* ---------- Datenlisten ---------- */
.specs { display: grid; gap: 0 clamp(24px, 4vw, 56px); }
.specs > div { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: 4px 18px; padding-block: 13px; border-top: 1px solid var(--line); align-items: baseline; }
.specs dt { font: 500 0.74rem/1.5 var(--f-data); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2); padding-top: 0.2em; }
.specs dd { margin: 0; min-width: 0; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .specs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .specs > div { grid-template-columns: minmax(0, 1fr); } }

.cols { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cols > div { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cols .note { color: var(--ink-2); font-size: var(--s--1); }
.codes li { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 0 12px; padding-block: 7px; border-top: 1px solid var(--line); align-items: baseline; }
.codes code { font: 500 0.8rem/1.5 var(--f-data); letter-spacing: 0.04em; color: var(--ink-2); }
.plain li { padding: 7px 0 7px 1.1em; border-top: 1px solid var(--line); position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 0.5em; height: 2px; background: var(--signal); }

.notes { display: grid; gap: clamp(20px, 3vw, 36px) clamp(24px, 4vw, 56px); }
.notes > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-top: 14px; border-top: 2px solid var(--ink); }
@media (min-width: 700px) { .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Kontakt-Band im Polsterstoff ---------- */
.band {
  background-color: var(--band); color: var(--band-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='40'%3E%3Cpath d='M7 5v7M24 25v7' stroke='%23fff' stroke-opacity='.11' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
.band__in { display: grid; gap: clamp(28px, 5vw, 64px); padding-block: clamp(48px, 7vw, 92px); align-items: start; }
.band__text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.band__text p { max-width: 34em; }
.band__text li { padding-left: 1.1em; position: relative; }
.band__text li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.5em; height: 2px; background: var(--signal); }
.band__text ul { display: flex; flex-direction: column; gap: 8px; }
.contact { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; min-width: 0; padding: clamp(18px, 2.6vw, 28px); border: 1.5px solid var(--band-2); border-radius: 6px; background: var(--band); }
.contact .label { color: var(--band-2); }
.contact__value { font: 500 clamp(1rem, 2.2vw, 1.2rem)/1.4 var(--f-data); overflow-wrap: anywhere; user-select: all; }
.contact__price { font: 600 clamp(2rem, 4vw, 2.8rem)/1 var(--f-display); }
.contact__name { font: 600 1.5rem/1.1 var(--f-display); letter-spacing: 0.02em; }
.contact__hint a { color: inherit; }
.contact__hint { font-size: var(--s--1); color: var(--band-2); }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.contact__copy { padding: 10px 0; min-height: 44px; border: 0; background: transparent; color: var(--band-ink); text-decoration: underline; text-underline-offset: .22em; font: inherit; font-size: var(--s--1); cursor: pointer; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
@media (min-width: 900px) { .band__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* ---------- Fuß ---------- */
.foot { display: flex; flex-direction: column; gap: 22px; padding-block: clamp(36px, 5vw, 60px); color: var(--ink-2); font-size: var(--s--1); }
.foot p { max-width: 62em; }
.foot__en { color: var(--ink); font-size: var(--s-0); }
.foot__en .label { display: block; margin-bottom: 6px; }
.legal { display: grid; gap: clamp(24px, 4vw, 56px); color: var(--ink); font-size: var(--s-0); padding-top: clamp(8px, 2vw, 20px); }
.legal > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-top: 14px; border-top: 2px solid var(--ink); }
.legal h2 { font: 600 1.35rem/1.1 var(--f-display); letter-spacing: 0.04em; text-transform: uppercase; }
.legal address { font-style: normal; }
.legal p { max-width: 46em; }
@media (min-width: 900px) { .legal { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* ---------- große Fotoansicht ---------- */
.lb { position: fixed; inset: 0; z-index: 50; background: var(--lb); color: var(--lb-ink); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto; align-items: center; padding: calc(8px + env(safe-area-inset-top, 0px)) 8px calc(10px + env(safe-area-inset-bottom, 0px)); }
.lb__bar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 0 0 8px 8px; font: 500 0.8rem/1 var(--f-data); letter-spacing: 0.08em; }
.lb__fig { grid-column: 2; grid-row: 2; min-height: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.lb__fig img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb__cap { grid-column: 1 / -1; grid-row: 3; text-align: center; padding: 10px 12px 2px; font-size: var(--s--1); min-height: 2.4em; }
.lb button { all: unset; box-sizing: border-box; cursor: pointer; color: var(--lb-ink); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(237, 234, 224, 0.38); }
.lb button::before { content: ""; width: 11px; height: 11px; border: solid currentColor; border-width: 0 0 2.5px 2.5px; }
.lb .lb__prev::before { transform: translateX(2px) rotate(45deg); }
.lb .lb__next::before { transform: translateX(-2px) rotate(-135deg); }
.lb .lb__close::before { width: 18px; height: 18px; border: 0; background: linear-gradient(currentColor, currentColor) center / 100% 2.5px no-repeat, linear-gradient(currentColor, currentColor) center / 2.5px 100% no-repeat; transform: rotate(45deg); }
.lb button:hover { background: var(--lb-ink); color: var(--lb); }
.lb button:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.lb .lb__prev { grid-column: 1; grid-row: 2; }
.lb .lb__next { grid-column: 3; grid-row: 2; }
@media (max-width: 599px) {
  .lb { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; }
  .lb__fig { grid-column: 1 / -1; }
  .lb__cap { grid-row: 3; }
  .lb .lb__prev { grid-column: 1; grid-row: 4; justify-self: start; }
  .lb .lb__next { grid-column: 2; grid-row: 4; justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot img, .btn, .tour__play { transition: none; }
  .shot:hover img { transform: none; }
}
