/* Laszlo Doro — v1 "Blueprint" */
:root {
  --paper: #f5f4ef;
  --paper-2: #ebe9e1;
  --ink: #14213d;
  --ink-2: #3a4760;
  --muted: #566178;
  --line: rgba(20, 33, 61, .14);
  --line-2: rgba(20, 33, 61, .32);
  --accent: #e8590c;
  --accent-ink: #b8420a;
  --grid: rgba(20, 33, 61, .04);
  --grid-major: rgba(20, 33, 61, .065);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 16px;
  --max: 1440px;
  --header-h: 56px;
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; --header-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) { body { font-size: 1.0625rem; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.1; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--paper); }

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

.skip {
  position: absolute; left: 8px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 12px 16px;
  font-family: var(--mono); font-size: .8125rem; text-decoration: none;
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.mono, .label {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}
.tag { color: var(--accent-ink); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 70;
  height: var(--header-h);
  background: rgba(245, 244, 239, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand svg { flex: none; }
.brand__name { font-weight: 600; font-size: .9375rem; letter-spacing: -.005em; white-space: nowrap; }
.brand__tag { display: none; padding-left: 12px; border-left: 1px solid var(--line-2); }
@media (min-width: 1100px) { .brand__tag { display: inline; } }

.nav { display: none; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  text-decoration: none; font-size: .9375rem; font-weight: 500;
}
.nav a .mono { font-size: .6875rem; }
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover::after, .nav a[aria-current]::after, .nav a.is-section::after { transform: scaleX(1); }
.nav-cta { margin-left: 8px; }
@media (min-width: 820px) {
  .nav { display: block; }
  .menu-btn, .menu { display: none !important; }
}

.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px; padding: 0 4px 0 12px; margin-right: -4px;
  background: none; border: 0; color: var(--ink); cursor: pointer;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
}
.menu-btn__icon { position: relative; width: 22px; height: 10px; }
.menu-btn__icon::before, .menu-btn__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .25s ease, top .25s ease;
}
.menu-btn__icon::before { top: 0; }
.menu-btn__icon::after { top: 8.5px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon::before { top: 4.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon::after { top: 4.25px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 65;
  background-color: var(--paper);
  background-image: inherit;
  overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; opacity: 0;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .25s ease; }
.menu__inner { display: flex; flex-direction: column; min-height: 100%; padding-top: 8px; padding-bottom: 32px; }
.menu__main a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 2rem; font-weight: 500; letter-spacing: -.02em; text-decoration: none; line-height: 1.15;
}
.menu__main a[aria-current] { color: var(--accent-ink); }
.menu__main .mono { min-width: 2.2em; }
.menu__sub { margin-top: 28px; }
.menu__sub ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 8px; }
.menu__sub a {
  display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line);
  text-decoration: none; font-size: .9375rem;
}
.menu__contact { margin-top: auto; padding-top: 32px; display: grid; gap: 4px; }
.menu__contact a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.125rem; text-decoration-thickness: 1px; text-underline-offset: .2em; }
body.menu-open { overflow: hidden; }

/* ------------------------------------------------------------------ sections */
main { display: block; }
.section { padding: 56px 0; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .section { padding: 96px 0; } }
.sec-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 24px;
  margin-bottom: 32px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2);
}
@media (min-width: 1024px) { .sec-head { margin-bottom: 48px; } }
.sec-head .tag { grid-column: 1 / -1; }
.sec-head h2 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem); }
.sec-head__aside { justify-self: end; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
.arrow-link span[aria-hidden] { transition: transform .2s ease; color: var(--accent-ink); }
.arrow-link:hover span[aria-hidden] { transform: translateX(4px); }
.arrow-link:hover { color: var(--accent-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ title block */
.tblock { margin: 0; border: 1px solid var(--line-2); background: rgba(245, 244, 239, .85); }
.tblock__row { display: grid; grid-template-columns: 108px 1fr; border-top: 1px solid var(--line); }
.tblock__row:first-child { border-top: 0; }
.tblock dt { padding: 12px 12px; border-right: 1px solid var(--line); }
.tblock dd { margin: 0; padding: 10px 14px; font-size: .9375rem; line-height: 1.45; min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.tblock dd a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.tblock dd a:hover { color: var(--accent-ink); }
.tblock__head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--ink); color: var(--paper); }
.tblock__head .mono { color: inherit; }
.logo-plate { display: inline-flex; align-self: flex-start; padding: 10px 14px; border: 1px solid var(--line); }
.logo-plate img { height: 40px; width: auto; }
.logo-plate--dark { background: #000; border-color: #000; }
.logo-plate--light { background: #fff; }

/* ------------------------------------------------------------------ hero */
.hero { padding: 40px 0 56px; }
@media (min-width: 1024px) { .hero { padding: 72px 0 96px; } }
.hero__grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: end; gap: 64px; } }
.display {
  font-size: clamp(2.75rem, 1.4rem + 6.4vw, 6.75rem);
  font-weight: 500; letter-spacing: -.035em; line-height: .95;
  margin: 18px 0 18px;
}
.tagline { font-size: clamp(1.125rem, 1rem + .7vw, 1.625rem); color: var(--ink-2); margin: 0 0 28px; line-height: 1.3; }
.hero .btn-row { margin-top: 4px; }

.drawing { margin: 48px 0 0; }
@media (min-width: 1024px) { .drawing { margin-top: 72px; } }
.drawing__frame { position: relative; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 20px 0; }
.ruler {
  position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background:
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px);
  background-size: 100% 10px, 100% 5px;
  background-repeat: no-repeat;
}
.ruler--bottom { top: auto; bottom: 0; transform: scaleY(-1); }
.drawing img { width: 100%; mix-blend-mode: multiply; }
@media (min-width: 1024px) { .drawing img { width: auto; max-height: 68vh; margin: 0 auto; } }
.drawing figcaption, .figcap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px;
  padding-top: 10px;
}

/* ------------------------------------------------------------------ services */
.services { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.services li { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.services h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); font-weight: 500; }
@media (min-width: 640px) {
  .services { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(5, 1fr); column-gap: 0; border-top: 0; }
  .services li { flex-direction: column; gap: 40px; padding: 4px 20px 28px; border-bottom: 0; border-left: 1px solid var(--line-2); min-height: 170px; }
  .services li:last-child { border-right: 1px solid var(--line-2); }
}

/* ------------------------------------------------------------------ cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 40px 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 56px 32px; } }
.card { position: relative; }
.media { position: relative; overflow: hidden; background: var(--paper-2); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card .media { aspect-ratio: 4 / 3; }
.crop::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none; opacity: 0; transition: opacity .2s ease, inset .25s ease;
  --c: var(--accent);
  background:
    linear-gradient(var(--c), var(--c)) top left / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 2px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 2px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 2px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 2px 16px no-repeat;
}
.card:hover .crop::after, .card:focus-within .crop::after, .fig a:hover .crop::after, .fig a:focus-visible .crop::after { opacity: 1; inset: 12px; }
.card:hover .media img, .card:focus-within .media img { transform: scale(1.03); }
.card__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.card__title { font-size: 1.3125rem; font-weight: 500; margin: 8px 0 2px; letter-spacing: -.01em; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a:focus-visible { outline: none; }
.card:focus-within { outline: 2px solid var(--accent); outline-offset: 6px; }
.card:has(a:focus:not(:focus-visible)) { outline: none; }
.card__sub { margin: 0; color: var(--muted); font-size: .9375rem; }

.more { margin-top: 56px; }
@media (min-width: 1024px) { .more { margin-top: 72px; } }
.more__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.cards--compact { gap: 20px 32px; }
@media (min-width: 1024px) { .cards--compact { grid-template-columns: 1fr 1fr; } }
.cards--compact .card { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
@media (min-width: 640px) { .cards--compact .card { grid-template-columns: 200px 1fr; gap: 24px; } }
.cards--compact .card__meta { margin-top: 0; padding-top: 0; border-top: 0; }
.cards--compact .card__title { margin-top: 4px; }

/* ------------------------------------------------------------------ contact */
.contact-grid { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-item { padding: 24px 0; border-bottom: 1px solid var(--line-2); }
@media (min-width: 768px) {
  .contact-item { padding: 32px 32px 40px 0; }
  .contact-item + .contact-item { padding-left: 32px; border-left: 1px solid var(--line-2); }
}
.contact-item a {
  display: inline-block; margin-top: 10px;
  font-size: clamp(1.375rem, 1rem + 2.2vw, 2.75rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: var(--line-2);
  overflow-wrap: anywhere;
  padding: 4px 0;
}
.contact-item a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }

/* ------------------------------------------------------------------ page head */
.page-head { padding: 32px 0 40px; }
@media (min-width: 1024px) { .page-head { padding: 56px 0 72px; } }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 8px; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.page-title { font-size: clamp(2.25rem, 1.4rem + 4vw, 4.75rem); letter-spacing: -.03em; line-height: 1; margin: 12px 0 16px; }
.lead { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); color: var(--ink-2); line-height: 1.35; max-width: 40ch; }

/* intro */
.intro-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .intro-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.intro-lead { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; margin: 0; }
.skills { counter-reset: s; border-top: 1px solid var(--line-2); }
.skills li {
  counter-increment: s; display: grid; grid-template-columns: 3.25em 1fr; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem);
}
.skills li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: .75rem; color: var(--accent-ink); }
.note { margin-top: 40px; padding: 20px 20px 4px; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); background: rgba(245, 244, 239, .85); max-width: 64ch; }
.note .label { display: block; margin-bottom: 8px; }

/* ------------------------------------------------------------------ project */
.proj-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .proj-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; align-items: start; } }
.proj-text p { max-width: 60ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--ink); }
.bullets { margin: 8px 0 0; max-width: 60ch; border-top: 1px solid var(--line); }
.bullets li { display: grid; grid-template-columns: 28px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bullets li::before { content: "—"; color: var(--accent-ink); font-family: var(--mono); }

.group { padding: 48px 0 0; }
@media (min-width: 1024px) { .group { padding-top: 80px; } }
.group-head { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: end; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line-2); }
.group-head h2 { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem); grid-column: 1; }
.group-head .tag { grid-column: 1 / -1; }
.group-head .count { grid-column: 2; grid-row: 2; }
.group-head .group-note { grid-column: 1 / -1; margin: 4px 0 0; color: var(--ink-2); max-width: 60ch; }

.gallery { display: grid; grid-template-columns: 1fr; gap: 28px 16px; }
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .t-2 { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 20px; }
  .gallery .t-2 { grid-column: auto; }
  .gallery .d-6 { grid-column: span 6; }
  .gallery .d-6 .media { max-height: 82vh; }
  .gallery .d-3 { grid-column: span 3; }
  .gallery .d-2 { grid-column: span 2; }
}
.fig { margin: 0; min-width: 0; }
.fig a { display: block; text-decoration: none; cursor: zoom-in; }
.fig .media { aspect-ratio: var(--ar, 4 / 3); }
.fig a:hover .media img { transform: scale(1.02); }
.fig figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; }
.fig .zoom { opacity: 0; transition: opacity .2s ease; }
.fig a:hover .zoom, .fig a:focus-visible .zoom { opacity: 1; }
@media (hover: none) { .fig .zoom { opacity: 1; } }

.pager { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
@media (min-width: 768px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 20px 0; text-decoration: none; }
.pager a + a { border-top: 1px solid var(--line); }
@media (min-width: 768px) {
  .pager a { grid-template-columns: 140px 1fr; gap: 24px; padding: 28px 28px 28px 0; }
  .pager a + a { border-top: 0; border-left: 1px solid var(--line-2); padding: 28px 0 28px 28px; grid-template-columns: 1fr 140px; text-align: right; }
  .pager a + a .media { order: 2; }
}
.pager .media { aspect-ratio: 4 / 3; }
.pager__title { display: block; font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.2; margin-top: 6px; }
.pager__sub { display: block; color: var(--muted); font-size: .9375rem; }
.pager a:hover .pager__title { color: var(--accent-ink); }
.pager a:hover .media img { transform: scale(1.04); }
.pager-all { display: flex; justify-content: center; padding-top: 12px; }

/* ------------------------------------------------------------------ 404 */
.err { padding: 72px 0 96px; }
.err .display { font-family: var(--mono); font-weight: 500; color: var(--accent-ink); }

/* ------------------------------------------------------------------ footer */
.site-footer { margin-top: 0; border-top: 1px solid var(--line-2); padding: 48px 0 28px; background: rgba(235, 233, 225, .55); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1.4fr; } }
.footer-name { font-size: 1.25rem; font-weight: 600; margin: 0 0 4px; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer a:hover { color: var(--accent-ink); }
.footer-contact a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ lightbox */
.lb {
  position: fixed; inset: 0; z-index: 200;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(10, 16, 30, .97); color: #e6eaf2;
  opacity: 0; transition: opacity .2s ease;
}
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb .mono { color: #aab3c5; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 16px; }
.lb__stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 8px; min-height: 0; touch-action: pan-y pinch-zoom; }
@media (min-width: 1024px) { .lb__stage { padding: 0 88px; } }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .2s ease; }
.lb__img.is-loading { opacity: .25; }
.lb__foot { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px; padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); }
.lb__cap { text-align: center; font-size: .9375rem; line-height: 1.35; color: #e6eaf2; }
.lb__cap .mono { display: block; margin-top: 2px; }
.lb button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; border: 1px solid rgba(230, 234, 242, .25); border-radius: 0;
  background: transparent; color: #e6eaf2; cursor: pointer; transition: background-color .2s ease, border-color .2s ease;
}
.lb button:hover { background: rgba(230, 234, 242, .1); border-color: rgba(230, 234, 242, .6); }
.lb button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lb svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
@media (min-width: 1024px) {
  .lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); width: 56px !important; height: 56px !important; }
  .lb__prev { left: 20px; }
  .lb__next { right: 20px; }
  .lb__foot { grid-template-columns: 1fr; padding-bottom: 18px; }
}
body.lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .card:hover .media img, .card:focus-within .media img, .fig a:hover .media img, .pager a:hover .media img { transform: none; }
}
