/* McCreations — v2026-05-12.1 */

:root {
  --ink: #1a1a1a;
  --ink-2: #2a2622;
  --paper: #e8e1d3;
  --paper-warm: #efe8d9;
  --leather: #5a4332;
  --steel: #3d3d3d;
  --oxblood: #6b1f1f;
  --oxblood-hi: #842828;
  --copper: #a86b3c;
  --rule-light: rgba(232, 225, 211, 0.18);
  --rule-dark: rgba(26, 26, 26, 0.15);

  --font-display: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max: 1280px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--oxblood); color: var(--paper); }

/* ============== HEADER ============== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  background: transparent;
  color: var(--paper);
  transition: background-color .25s ease, padding .25s ease, border-color .25s ease;
}

.site-header.scrolled {
  background: rgba(20, 20, 20, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--rule-light);
}

.brand {
  display: inline-flex;
  align-items: center;
  z-index: 110;
}
.brand img {
  display: block;
  height: 46px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  transition: height .25s ease;
}
.site-header.scrolled .brand img { height: 38px; }
@media (max-width: 620px) {
  .brand img { height: 38px; }
  .site-header.scrolled .brand img { height: 32px; }
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.primary-nav a {
  position: relative;
  padding: 0.4rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.primary-nav a:not(.phone-link)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 6px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .25s ease;
}
.primary-nav a:not(.phone-link):hover::after,
.primary-nav a:not(.phone-link):focus-visible::after { width: 100%; }

.phone-link {
  border: 1px solid currentColor;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  transition: background-color .2s ease, color .2s ease;
}
.phone-link:hover { background: var(--paper); color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 8px;
  color: inherit;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
  width: 100%;
}

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 92vh;
  color: var(--paper);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.1) brightness(0.88);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(20, 20, 20, 0.62) 0%,
      rgba(20, 20, 20, 0.18) 40%,
      rgba(20, 20, 20, 0.92) 100%);
}

.hero-content {
  position: relative;
  padding: 0 var(--pad) clamp(3rem, 9vh, 6rem);
  max-width: 920px;
  width: 100%;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--copper);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 9.5vw, 7.8rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 600px;
  line-height: 1.55;
  margin-bottom: 2rem;
  opacity: 0.92;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 1px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  cursor: pointer;
  font-family: var(--font-body);
  min-height: 48px;
  white-space: nowrap;
}
.btn-primary {
  background: var(--oxblood);
  color: var(--paper);
}
.btn-primary:hover { background: var(--oxblood-hi); }

.btn-ghost {
  border-color: var(--paper);
  color: var(--paper);
  background: transparent;
}
.btn-ghost:hover { background: var(--paper); color: var(--ink); }

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

/* ============== SECTION HEADER ============== */
.section-header {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
  padding: 0 var(--pad);
}
.section-header .eyebrow { color: var(--leather); }
.section-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* ============== ABOUT ============== */
.about {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--paper);
}
.about-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about-text .eyebrow { color: var(--leather); }
.about-text h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.4rem;
}
.about-text p {
  margin-bottom: 1rem;
  max-width: 56ch;
  color: var(--ink-2);
}
.about-text .signature {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--leather);
  font-size: 1.05rem;
}
.about-figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 35%;
  width: 100%;
  filter: saturate(0.9) contrast(1.05);
}

/* ============== SERVICES ============== */
.services {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--ink);
  color: var(--paper);
}
.services .section-header h2 { color: var(--paper); }
.services .section-header .eyebrow { color: var(--copper); }

.service-list {
  list-style: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.service-row {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 2rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--rule-light);
  align-items: baseline;
}
.service-row:last-child { border-bottom: 1px solid var(--rule-light); }

.service-row .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--copper);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.service-row h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--paper);
  letter-spacing: -0.005em;
}
.service-row p {
  max-width: 65ch;
  color: rgba(232, 225, 211, 0.78);
}

/* ============== GALLERY ============== */
.gallery {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--paper-warm);
}
.masonry {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--pad);
  column-count: 3;
  column-gap: 1.1rem;
}
.m-item {
  break-inside: avoid;
  margin-bottom: 1.1rem;
  overflow: hidden;
  background: var(--ink);
  position: relative;
}
.m-item img {
  width: 100%;
  display: block;
  transition: transform .6s ease, filter .4s ease;
  filter: saturate(0.92) contrast(1.05);
}
.m-item:hover img,
.m-item:focus-within img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.08);
}

@media (max-width: 900px) {
  .masonry { column-count: 2; }
}
@media (max-width: 560px) {
  .masonry { column-count: 1; }
}

/* ============== CONTACT ============== */
.contact {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--ink);
  color: var(--paper);
}
.contact .section-header h2 { color: var(--paper); }
.contact .section-header .eyebrow { color: var(--copper); }

.contact-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}

.contact-info dl {
  display: grid;
  grid-template-columns: 7rem 1fr;
  row-gap: 1.4rem;
  margin-bottom: 2.4rem;
}
.contact-info dt {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--copper);
  padding-top: 0.15rem;
}
.contact-info dd { color: var(--paper); line-height: 1.65; }
.contact-info dd a { transition: color .2s ease; }
.contact-info dd a:hover { color: var(--copper); }
.contact-info .closed { opacity: 0.55; font-size: 0.92em; }

.contact-map {
  min-height: 380px;
  background: var(--ink-2);
  position: relative;
  border: 1px solid var(--rule-light);
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.4) contrast(1.05);
}

/* ============== FOOTER ============== */
.site-footer {
  background: #0f0f0f;
  color: var(--paper);
  padding: 3rem var(--pad) 1.5rem;
}
.foot-grid {
  max-width: var(--max);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  font-size: 0.92rem;
  color: rgba(232, 225, 211, 0.7);
  line-height: 1.65;
}
.foot-grid a:hover { color: var(--copper); }
.foot-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--paper);
  margin-bottom: 0.5rem;
}
.foot-rule {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--rule-light);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(232, 225, 211, 0.45);
}
.foot-rule .version {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.05em;
}

/* ============== ABOUT PULL QUOTE ============== */
.about-pull {
  border-left: 3px solid var(--copper);
  padding: 1rem 0 1rem 1.6rem;
  margin: 2rem 0 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 48ch;
}

/* ============== SERVICES SUB-HEAD ============== */
.service-sub {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
}
/* ============== GALLERY BREAK ============== */
.gallery-header {
  margin-bottom: 2.5rem;
}

.gallery-break {
  position: relative;
  width: 100%;
  margin: 0 0 2rem;
  overflow: hidden;
  background: var(--ink);
  max-height: 52vh;
}
.gallery-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.8) contrast(1.08) brightness(0.85);
  max-height: 52vh;
}
.break-caption {
  position: absolute;
  bottom: 1.2rem;
  left: var(--pad);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 225, 211, 0.65);
  font-weight: 500;
}

/* ============== MASONRY CAPTIONS ============== */
.m-caption {
  padding: 0.65rem 0.85rem 0.7rem;
  background: rgba(26, 26, 26, 0.88);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bench-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
}

.bench-note {
  font-size: 0.82rem;
  color: rgba(232, 225, 211, 0.82);
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

/* Feature tile — spans 2 columns in masonry */
.m-feature {
  break-inside: avoid;
  column-span: all;
  margin-bottom: 1.1rem;
}
.m-feature img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

/* ============== CONTACT NOTE ============== */
.contact-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(232, 225, 211, 0.68);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ============== FOOTER ADDITIONS ============== */
.foot-note {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: rgba(232, 225, 211, 0.45);
  letter-spacing: 0.03em;
}
.foot-closed {
  opacity: 0.5;
  font-size: 0.9em;
}

/* ============== REVEAL ============== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============== MOBILE ============== */
@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .primary-nav {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    font-size: 1.15rem;
    transform: translateY(-100%);
    transition: transform .35s ease;
    color: var(--paper);
    padding: 4rem var(--pad) 2rem;
  }
  .primary-nav.open { transform: none; }
  .primary-nav .phone-link { margin-top: 1rem; padding: 0.8rem 1.4rem; }

  .site-header.menu-open { background: rgba(15, 15, 15, 0.98); }
  .site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .about-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .about-figure { order: -1; }
  .about-figure img { aspect-ratio: 4 / 3; }

  .service-row {
    grid-template-columns: 3.5rem 1fr;
    gap: 1rem;
    padding: 1.7rem 0;
  }
  .service-row .num { font-size: 1.55rem; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-info dl { grid-template-columns: 5rem 1fr; row-gap: 1.1rem; }
  .contact-map { min-height: 280px; }

  .foot-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .foot-rule { flex-direction: column; gap: 0.4rem; align-items: flex-start; }

  .gallery-break { max-height: 38vh; }
  .gallery-break img { max-height: 38vh; }
  .m-feature img { aspect-ratio: 4 / 3; }
  .about-pull { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   GALLERY TEASER (home page)
   ============================================================ */
.gallery-teaser {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--paper-warm);
}
.teaser-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.teaser-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.teaser-head .eyebrow { color: var(--leather); }
.teaser-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}
.teaser-lede {
  color: var(--ink-2);
  font-size: 1.05rem;
  max-width: 50ch;
  margin: 0 auto;
}
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.teaser-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.teaser-grid-2 .teaser-tile { aspect-ratio: 4 / 3; }
.teaser-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 3 / 4;
}
.teaser-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .4s ease;
  filter: saturate(0.85) contrast(1.08) brightness(0.9);
}
.teaser-tile:hover img,
.teaser-tile:focus-visible img {
  transform: scale(1.05);
  filter: saturate(1) contrast(1.1) brightness(1);
}
.tile-tag {
  position: absolute;
  left: 0.85rem;
  bottom: 0.8rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--paper);
  background: rgba(20, 20, 20, 0.78);
  padding: 0.32rem 0.55rem;
  letter-spacing: 0.18em;
}
.teaser-cta { text-align: center; }

@media (max-width: 820px) {
  .teaser-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-page { background: var(--ink); color: var(--paper); }
.gallery-page main { padding-top: 64px; }

.g-intro {
  background: var(--ink);
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule-light);
}
.g-intro-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.g-intro .eyebrow { color: var(--copper); }
.g-intro h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}
.g-intro-lede {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  max-width: 60ch;
  color: rgba(232, 225, 211, 0.78);
  line-height: 1.55;
}

/* ============== FILTER BAR ============== */
.filter-bar {
  position: sticky;
  top: 56px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem var(--pad);
  background: rgba(15, 15, 15, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule-light);
}
.filter-pill {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 225, 211, 0.72);
  background: transparent;
  border: 1px solid var(--rule-light);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 40px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.filter-pill:hover {
  color: var(--paper);
  border-color: rgba(232, 225, 211, 0.45);
}
.filter-pill.is-active {
  background: var(--copper);
  color: var(--ink);
  border-color: var(--copper);
}
.filter-pill:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}
.filter-count {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 225, 211, 0.45);
  font-variant-numeric: tabular-nums;
}

/* ============== GALLERY GRID (gallery page) ============== */
.g-gallery {
  padding: 1.5rem 0 5rem;
  background: var(--ink);
}
.gallery-page .masonry {
  max-width: 1680px;
  column-count: 4;
  column-gap: 0.75rem;
  padding: 0 var(--pad);
}
.gallery-page .m-item {
  margin-bottom: 0.75rem;
  cursor: zoom-in;
  background: #0e0e0e;
}
.gallery-page .m-item img {
  filter: saturate(0.9) contrast(1.05);
}
.gallery-page .m-item:hover img {
  transform: scale(1.03);
  filter: saturate(1) contrast(1.08);
}
.m-item.is-hidden { display: none; }

@media (max-width: 1200px) {
  .gallery-page .masonry { column-count: 3; }
}
@media (max-width: 820px) {
  .gallery-page .masonry { column-count: 2; }
  .filter-bar { top: 56px; }
}
@media (max-width: 560px) {
  .gallery-page .masonry { column-count: 1; }
}

.g-end-note {
  text-align: center;
  margin: 3rem auto 0;
  max-width: 50ch;
  padding: 0 var(--pad);
  font-size: 0.92rem;
  color: rgba(232, 225, 211, 0.5);
  font-style: italic;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 8, 8, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  animation: lb-fade .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lb-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lb-figure {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.lb-figure img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  object-fit: contain;
  display: block;
  background: #0e0e0e;
}
.lb-caption {
  color: rgba(232, 225, 211, 0.78);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-align: center;
  max-width: 60ch;
}
.lb-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 225, 211, 0.4);
  font-variant-numeric: tabular-nums;
}

.lb-btn {
  position: absolute;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(232, 225, 211, 0.18);
  color: var(--paper);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  transition: background-color .2s ease, border-color .2s ease;
  padding: 0;
}
.lb-btn:hover {
  background: rgba(232, 225, 211, 0.12);
  border-color: var(--copper);
}
.lb-btn:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}
.lb-close { top: 1.2rem; right: 1.2rem; font-size: 1.8rem; }
.lb-prev  { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.2rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 700px) {
  .lightbox { padding: 3.5rem 0.5rem; }
  .lb-btn { width: 44px; height: 44px; font-size: 1.4rem; }
  .lb-close { top: 0.8rem; right: 0.8rem; }
  .lb-prev  { left: 0.5rem; }
  .lb-next  { right: 0.5rem; }
}

body.lb-open { overflow: hidden; }
