/* 180 Audiovisual Solutions — shared styles */

/* Fonts: self-hosted Barlow (SIL Open Font License), latin subset only */
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/barlow-condensed-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/barlow-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/barlow-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/barlow-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --charcoal: #414042;
  --charcoal-deep: #2b2a2c;
  --orange: #bb5521;
  --orange-dark: #a0461a;   /* also used for small orange text on the beige background (contrast) */
  --orange-light: #f2965f;  /* small orange text on charcoal (contrast) */
  --teal: #538fa9;
  --gray: #939598;
  --ink: #2b2a2c;
  --muted: #5f5e62;
  --line: #e4e2df;
  --paper: #ffffff;
  --paper-warm: #f6f4f1;

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --radius: 6px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font: 600 0.8125rem/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
/* Contrast: on beige, small orange text is a shade deeper; on charcoal, labels go white. The dash stays brand orange. */
.work .eyebrow, .process .eyebrow { color: var(--orange-dark); }
.work .eyebrow::before, .process .eyebrow::before, .why .eyebrow::before { background: var(--orange); }
.why .eyebrow { color: #fff; }

.section-title { font-size: clamp(2.25rem, 5vw, 3.5rem); text-transform: uppercase; }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p:not(.eyebrow), .lede { color: var(--muted); margin: 16px 0 0; font-size: 1.125rem; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--charcoal); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 600 0.9375rem/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--charcoal); border-color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand img { width: 168px; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  font: 500 0.9375rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { border-color: var(--orange); }
.header-phone { font-weight: 600; text-decoration: none; color: var(--charcoal); white-space: nowrap; }
.header-phone:hover { color: var(--orange); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .brand img { width: 140px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-right: -12px;
    background: none; border: 0; cursor: pointer; color: var(--charcoal);
  }
  .nav-toggle svg { width: 26px; height: 26px; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a:not(.btn) { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .header-phone { padding: 18px 0; }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--charcoal-deep);
  overflow: hidden;
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center 40%; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(27,26,28,.9) 0%, rgba(27,26,28,.6) 35%, rgba(27,26,28,.12) 65%, rgba(27,26,28,.05) 100%),
    linear-gradient(0deg, rgba(27,26,28,.55) 0%, rgba(27,26,28,0) 40%);
}
/* Phones and portrait tablets: photo on top, headline below, so the stage is never hidden behind text */
@media (max-width: 720px), (max-aspect-ratio: 1/1) {
  .hero { display: block; min-height: 0; }
  .hero::after { display: none; }
  .hero .hero-media { position: relative; aspect-ratio: 16 / 11; }
  .hero .hero-media { overflow: hidden; }
  .hero .hero-media img { object-position: 52% 50%; transform: scale(1.45); transform-origin: 52% 58%; }
  .hero .hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(0deg, var(--charcoal-deep) 0%, rgba(43,42,44,0) 35%);
  }
  .hero .hero-content { padding-block: 4px 56px; }
}
.hero-content { position: relative; z-index: 1; padding-block: clamp(96px, 14vw, 160px) clamp(56px, 8vw, 96px); }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--orange); }
.hero h1 { font-size: clamp(2.75rem, 6.5vw, 5.25rem); text-transform: uppercase; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-lede { max-width: 540px; margin: 24px 0 36px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Services */
.services { padding-block: var(--section); }
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  flex: 1 1 200px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 28px 32px;
  background: #fff;
  text-decoration: none;
  transition: background-color .25s;
}
.service-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--orange); transition: width .3s;
}
.service-card:hover { background: var(--paper-warm); }
.service-card:hover::after { width: 100%; }
.service-card svg { width: 40px; height: 40px; color: var(--teal); }
.service-card h3 { font-size: 1.5rem; text-transform: uppercase; color: var(--charcoal); }
.service-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.service-card .more {
  margin-top: auto; padding-top: 8px;
  font: 600 0.8125rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange);
}

/* Work */
.work { padding-block: var(--section); background: var(--paper-warm); }
.work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); }
.work-head .section-head { margin-bottom: 0; }
.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.9375rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--charcoal); text-decoration: none; padding-bottom: 6px; border-bottom: 2px solid var(--orange);
}
.text-link:hover { color: var(--orange); }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.work-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--charcoal); }
.work-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work-grid figure:hover img { transform: scale(1.04); }
.work-grid figure:nth-child(1) { grid-column: span 7; aspect-ratio: 4 / 3; }
.work-grid figure:nth-child(2) { grid-column: span 5; }
.work-grid figure:nth-child(3) { grid-column: span 5; }
.work-grid figure:nth-child(4) { grid-column: span 7; aspect-ratio: 4 / 3; }
@media (max-width: 720px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-grid figure:nth-child(n) { grid-column: span 1; aspect-ratio: 1; }
  .work-grid figure:first-child { grid-column: span 2; aspect-ratio: 3 / 2; }
  .work-grid figure:last-child { grid-column: span 2; aspect-ratio: 3 / 2; }
}

/* Why */
.why { padding-block: var(--section); background: var(--charcoal); color: #fff; }
.why .section-head p:not(.eyebrow) { color: rgba(255,255,255,.75); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(32px, 4vw, 56px); }
.why-item { border-top: 1px solid rgba(255,255,255,.2); padding-top: 28px; }
.why-item .num { font: 600 1rem/1 var(--font-head); letter-spacing: 0.12em; color: var(--orange-light); }
.why-item h3 { font-size: 1.75rem; text-transform: uppercase; margin: 14px 0 12px; }
.why-item p { margin: 0; color: rgba(255,255,255,.78); }

/* Contact */
.contact { padding-block: var(--section); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-details { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
.contact-details li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; }
.contact-details svg { width: 22px; height: 22px; color: var(--teal); margin-top: 2px; }
.contact-details a { text-decoration: none; font-weight: 500; }
.contact-details a:hover { color: var(--orange); }
.contact-details small { display: block; color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; }
.social { display: flex; gap: 12px; margin-top: 32px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  color: var(--charcoal); transition: background-color .2s, color .2s, border-color .2s;
}
.social a:hover { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.social svg { width: 18px; height: 18px; }

.form { background: var(--paper-warm); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--charcoal); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d3d0cc;
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(83,143,169,.25); }
.form .btn { width: 100%; margin-top: 6px; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--charcoal-deep); color: rgba(255,255,255,.72); padding-block: 64px 32px; font-size: 0.9375rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand img { width: 190px; }
.footer-brand p { margin: 16px 0 0; }
.footer-cols { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 80px); }
.footer-cols h2 { font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; font-size: 0.8125rem; }

/* ---------- Inner pages ---------- */

/* Page header (shorter than the homepage hero) */
.page-hero {
  position: relative;
  min-height: clamp(340px, 52vh, 520px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--charcoal-deep);
  overflow: hidden;
}
.page-hero .hero-media img { object-position: center 55%; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(27,26,28,.88) 0%, rgba(27,26,28,.55) 55%, rgba(27,26,28,.35) 100%);
}
@media (max-width: 720px) {
  .page-hero::after { background: linear-gradient(0deg, rgba(27,26,28,.94) 0%, rgba(27,26,28,.8) 60%, rgba(27,26,28,.45) 100%); }
}
.page-hero .wrap { position: relative; z-index: 1; padding-block: 96px clamp(40px, 6vw, 64px); }
.page-hero .eyebrow { color: #fff; }
.page-hero .eyebrow::before { background: var(--orange); }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); text-transform: uppercase; max-width: 16ch; }
.page-hero p { max-width: 560px; margin: 18px 0 0; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: rgba(255,255,255,.88); }

/* Jump links */
.jump { border-bottom: 1px solid var(--line); background: #fff; }
.jump ul { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 20px 0; }
.jump a {
  font: 600 0.875rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent;
}
.jump a:hover { color: var(--charcoal); border-color: var(--orange); }

/* Service detail sections */
.svc { padding-block: clamp(56px, 8vw, 104px); scroll-margin-top: var(--header-h); }
.svc + .svc { border-top: 1px solid var(--line); }
.svc-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.svc.flip .svc-media { order: 2; }
.svc-media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--charcoal); aspect-ratio: 4 / 5; max-height: 640px; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc .num { font: 600 1rem/1 var(--font-head); letter-spacing: 0.12em; color: var(--orange); }
.svc h2 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; margin: 12px 0 18px; }
.svc p { margin: 0; color: var(--muted); font-size: 1.0625rem; }
.svc h3 { font: 600 0.8125rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--charcoal); margin: 32px 0 14px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 14px; height: 2px; background: var(--teal); }
@media (max-width: 820px) {
  .svc-inner { grid-template-columns: 1fr; }
  .svc.flip .svc-media { order: 0; }
  .svc-media { aspect-ratio: 4 / 3; }
}

/* Process steps */
.process { padding-block: var(--section); background: var(--paper-warm); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(24px, 3vw, 40px); counter-reset: step; }
.steps li { border-top: 2px solid var(--charcoal); padding-top: 24px; }
.steps li::before { counter-increment: step; content: "0" counter(step); font: 600 1rem/1 var(--font-head); letter-spacing: 0.12em; color: var(--orange-dark); }
.steps h3 { font-size: 1.625rem; text-transform: uppercase; margin: 12px 0 10px; }
.steps p { margin: 0; color: var(--muted); }

/* Thank-you page */
.thanks { padding-block: clamp(80px, 12vw, 140px); background: var(--charcoal); color: #fff; text-align: center; }
.thanks .check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; margin-bottom: 28px; border-radius: 50%;
  background: var(--orange); color: #fff;
}
.thanks .check svg { width: 34px; height: 34px; }
.thanks h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); text-transform: uppercase; max-width: 18ch; margin-inline: auto; }
.thanks p { max-width: 520px; margin: 20px auto 0; font-size: 1.125rem; color: rgba(255,255,255,.82); }
.thanks a { color: #fff; font-weight: 600; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.next { padding-block: clamp(56px, 8vw, 96px); }
.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 860px; margin-inline: auto; }
.next-card {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 220px;
  border-radius: var(--radius); background: var(--charcoal); color: #fff; text-decoration: none;
}
.next-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .6s ease, opacity .3s; }
.next-card:hover img { transform: scale(1.04); opacity: .45; }
.next-card span {
  position: relative; padding: 24px; font: 600 1.75rem/1 var(--font-head); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 12px;
}
.next-card span::after { content: "→"; color: var(--orange); }

/* Project gallery (staggered columns, photos keep their own shape) */
.gallery-section { padding-block: clamp(48px, 7vw, 88px) var(--section); }
.gallery { columns: 3 280px; column-gap: 14px; }
.g-item {
  display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0;
  background: var(--charcoal); border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in; break-inside: avoid;
}
.g-item img { width: 100%; height: auto; transition: transform .6s ease, opacity .3s; }
/* With JS: items are dealt left-to-right into the shortest column, so reading order runs across rows */
.gallery.masonry { columns: auto; display: flex; gap: 14px; align-items: flex-start; }
.gallery.masonry .g-col { flex: 1 1 0; min-width: 0; }
.g-item:hover img { transform: scale(1.03); }
.g-item:focus-visible { outline-offset: 2px; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(20,20,22,.97); color: #fff;
}
.lightbox::backdrop { background: rgba(20,20,22,.97); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 72px; }
.lightbox img { max-width: calc(100vw - 144px); max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lb-btn {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  background: rgba(0,0,0,.35); color: #fff; cursor: pointer; transition: background-color .2s;
}
.lb-btn:hover { background: var(--orange); border-color: var(--orange); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 28px; left: 24px; font: 600 0.8125rem/1 var(--font-body); letter-spacing: 0.14em; color: rgba(255,255,255,.7); }
@media (max-width: 720px) {
  .lightbox figure { padding: 72px 12px 88px; }
  .lightbox img { max-width: calc(100vw - 24px); max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}
html.lb-open { overflow: hidden; }
