/* ============================================================
   blog-styles.css — Leak Repair Casebook (index + post pages)
   Layers on top of shared-styles.css. Uses its design tokens only.

   NOTE: both heroes sit on WHITE. shared-styles.css styles `.breadcrumb`
   for dark bands — `.current` is pale aqua and `.sep` a white tint — so
   each hero below re-declares them the way `.band .breadcrumb` does, or
   they wash out. Same reason the accents use --teal/--coral-deep rather
   than --azure-bright, which is mixed for dark grounds.
   ============================================================ */

/* ============================================================
   INDEX
   ============================================================ */
/* White ground, matching the post headers. The breadcrumb follows the same
   light-ground treatment as `.band .breadcrumb` in shared-styles.css. */
.blog-hero {
  background: var(--white);
  color: var(--ink); padding: 52px 0 0;
}
/* No bottom padding here: the gap down to the filters is owned by the .band
   that follows. `.band` is a site-wide class, so the tightening is scoped to
   this sibling rather than changing the shared 80px rule. */
.blog-hero + .band { padding-top: 34px; }
.blog-hero-inner { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.blog-hero .breadcrumb {
  font-family: var(--sans); font-size: 13px; margin-bottom: 22px; color: var(--muted);
}
.blog-hero .breadcrumb a { color: var(--azure); text-decoration: none; }
.blog-hero .breadcrumb a:hover { color: var(--deep); text-decoration: underline; }
.blog-hero .breadcrumb .sep { margin: 0 8px; color: var(--line-strong); opacity: 1; }
.blog-hero .breadcrumb .current { color: var(--deep); }
.blog-hero h1 {
  color: var(--deep); font-family: var(--display); font-size: clamp(34px, 5vw, 52px);
  font-weight: 600; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 18px;
}
/* Teal italic, the same accent the post titles use for their trailing keyword. */
.blog-hero h1 em { color: var(--teal); font-style: italic; }
.blog-hero p {
  font-family: var(--body); font-size: 18px; line-height: 1.65;
  color: var(--muted); max-width: 640px; margin: 0;
}

/* Sits at the foot of the index, below the post grid — so the spacing is above it. */
.photo-note {
  background: var(--cream); border-left: 4px solid var(--teal); padding: 28px 32px;
  border-radius: 6px; margin: 20px 0 0;
}
.photo-note h4 {
  font-family: var(--display); font-size: 18px; font-weight: 600;
  color: var(--deep); margin: 0 0 8px;
}
.photo-note p {
  font-family: var(--body); font-size: 14.5px; line-height: 1.65;
  color: var(--ink); margin: 0 0 10px;
}
.photo-note p:last-child { margin-bottom: 0; }

/* Category filters — editorial tabs on a hairline rule rather than pills, so they
   read as type instead of UI chrome. One non-wrapping row: wrapping produced a
   ragged, off-centre second row on phones, so narrow screens scroll sideways. */
.blog-filters {
  display: flex; flex-wrap: nowrap; gap: 0; margin: 0 0 34px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.blog-filters::-webkit-scrollbar { display: none; }
/* Arrows flank the row when it overflows. They sit in .filter-bar (the relative
   wrapper) rather than inside the scroller, so they stay put while it scrolls. */
.filter-bar { position: relative; margin: 0 0 34px; }
.filter-bar .blog-filters { margin: 0; }
.fscroll {
  position: absolute; top: 0; bottom: 2px; width: 40px; padding: 0;
  display: none; align-items: center; border: 0; cursor: pointer; z-index: 2;
  color: var(--deep);
}
/* Shown only in the direction that still has tabs; toggled in leakgallery.html. */
.fscroll.is-shown { display: flex; }
.fscroll svg { width: 17px; height: 17px; display: block; }
/* The gradient doubles as the soft edge, so the tabs fade out under the arrow
   instead of being cut off mid-word. */
.fscroll--prev {
  left: 0; justify-content: flex-start;
  background: linear-gradient(to right, var(--white) 58%, rgba(255,255,255,0) 100%);
}
.fscroll--next {
  right: 0; justify-content: flex-end;
  background: linear-gradient(to left, var(--white) 58%, rgba(255,255,255,0) 100%);
}
.fscroll:hover { color: var(--coral-deep); }
.blog-filters .filter-btn {
  font-family: var(--sans); font-size: 14.5px; font-weight: 500;
  padding: 0 1px 11px; margin: 0 26px -1px 0; white-space: nowrap;
  border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: none; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: baseline; gap: 6px;
  transition: color .16s ease, border-color .16s ease;
}
.blog-filters .filter-btn:last-child { margin-right: 0; }
.blog-filters .filter-btn:hover { color: var(--deep); border-bottom-color: var(--line-strong); }
.blog-filters .filter-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.blog-filters .filter-btn.active {
  color: var(--deep); font-weight: 700; border-bottom-color: var(--teal);
}
.blog-filters .fcount { font-size: 11px; opacity: .55; font-variant-numeric: tabular-nums; }
.blog-filters .filter-btn.active .fcount { opacity: .6; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 30px; }
.post-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--sky); }
.post-card__media {
  display: block; position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--foam);
}
.post-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease;
}
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__badge {
  position: absolute; left: 12px; bottom: 12px; background: rgba(30,40,50,.82); color: #fff;
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 4px;
}
.post-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__cat {
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--coral-deep); margin-bottom: 10px;
}
.post-card__title {
  font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.28;
  letter-spacing: -.01em; margin: 0 0 10px;
}
.post-card__title a { color: var(--deep); text-decoration: none; }
.post-card__title a:hover { color: var(--coral-deep); }
.post-card__meta {
  font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 0 0 12px;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px;
}
.post-card__meta .pin { color: var(--teal); font-size: 9px; }
.post-card__meta .dot { opacity: .5; }
.post-card__excerpt {
  font-family: var(--body); font-size: 15.5px; line-height: 1.62;
  color: var(--muted); margin: 0 0 20px; flex: 1;
}
.post-card__more {
  font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--coral-deep);
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
}
.post-card__more .arrow { transition: transform .18s ease; }
.post-card__more:hover { color: var(--deep); }
.post-card__more:hover .arrow { transform: translateX(4px); }
.post-card[hidden] { display: none; }

.cat-pending {
  margin-top: 44px; padding: 22px 26px; background: var(--mist);
  border: 1px dashed var(--line-strong); border-radius: 8px;
}
.cat-pending h4 {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 8px;
}
.cat-pending p {
  font-family: var(--body); font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0;
}
.no-results {
  padding: 48px 0; text-align: center; font-family: var(--body);
  font-size: 17px; color: var(--muted);
}

/* ============================================================
   POST
   ============================================================ */
/* Carries only the breadcrumb and the category — the title and its meta live in
   the body. White ground, so it reads as the top of the page rather than a
   banner. The breadcrumb follows the same light-ground treatment as
   `.band .breadcrumb` in shared-styles.css; shared-styles' `.breadcrumb .current`
   is aqua, which is too pale on white, so it is overridden to navy as `.band` does. */
/* No bottom padding: the gap to the title is owned by .post-body's padding-top,
   so the category reads as a kicker on the headline rather than floating. */
.post-hero {
  background: var(--white);
  color: var(--ink); padding: 26px 0 0;
}
.post-hero-inner { max-width: 740px; margin: 0 auto; padding: 0 30px; }
.post-hero .breadcrumb {
  font-family: var(--sans); font-size: 13px; margin-bottom: 20px; color: var(--muted);
}
.post-hero .breadcrumb a { color: var(--azure); text-decoration: none; }
.post-hero .breadcrumb a:hover { color: var(--deep); text-decoration: underline; }
.post-hero .breadcrumb .sep { margin: 0 8px; color: var(--line-strong); opacity: 1; }
.post-hero .breadcrumb .current { color: var(--deep); }
.post-hero .eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--coral-deep); margin-bottom: 14px;
}
.post-hero .breadcrumb { margin-bottom: 14px; }
.post-hero .eyebrow { margin-bottom: 0; }

/* Title now sits on the page ground, at the reading measure. */
.post-title {
  font-family: var(--display); font-size: clamp(30px, 4.4vw, 44px); font-weight: 600;
  line-height: 1.14; letter-spacing: -.02em; color: var(--deep);
  margin: 0 0 16px; text-wrap: balance;
}
/* Trailing keyword in teal — the same two-tone the nav logo uses for
   "Advanced <teal>Leak Detection</teal>". */
.post-title .key { color: var(--teal); }
.post-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-family: var(--sans); font-size: 14px; color: var(--muted);
  margin: 0 0 26px;
}
.post-meta span { display: inline-flex; align-items: center; gap: 7px; }
.post-meta .ic { color: var(--teal); font-size: 10px; }

/* 680px of measure + padding — the 600-700px band for comfortable line length */
/* padding-top is the breathing room between the hero's kicker and the title. */
.post-body { max-width: 740px; margin: 0 auto; padding: 20px 30px 0; }
/* Lead + its continuation are one piece of writing, so the rule sits under the
   pair rather than between them. */
.post-standfirst {
  margin: 0 0 34px; padding-bottom: 30px; border-bottom: 1px solid var(--line);
}
.post-lead {
  font-family: var(--body); font-size: 20px; line-height: 1.66; color: var(--deep);
  margin: 0 0 14px; padding: 0; border: 0;
}
.post-body .post-intro {
  font-family: var(--body); font-size: 17px; line-height: 1.72;
  color: var(--ink); margin: 0;
}
.post-standfirst > :last-child { margin-bottom: 0; }
.post-body h2 {
  font-family: var(--display); font-size: 27px; font-weight: 600; color: var(--deep);
  letter-spacing: -.01em; margin: 44px 0 16px;
}
.post-body h2 em { color: var(--coral-deep); font-style: italic; }
.post-body p { font-family: var(--body); font-size: 17px; line-height: 1.72; color: var(--ink); margin: 0 0 18px; }

/* Orientation must match the source clip or it letterboxes.
   leakgallery.html encodes this via .leak-video-portrait (9/16) vs .ba-video (16/9). */
.post-video {
  margin: 32px 0 0; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-md);
  background: #11171d; position: relative;
}
.post-video--portrait { aspect-ratio: 9/16; max-width: 340px; margin-inline: auto; }
.post-video--wide { aspect-ratio: 16/9; max-width: 100%; }
/* 4:5 social-format clip — taller than wide, but nowhere near 9:16. It needs its
   own ratio or it pillarboxes in the 16/9 box and letterboxes in the 9/16 one. */
.post-video--tall { aspect-ratio: 4/5; max-width: 460px; margin-inline: auto; }
.post-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-video-cap {
  font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 10px;
}
.post-video--portrait + .post-video-cap { max-width: 340px; margin-inline: auto; text-align: center; }
.post-video--tall + .post-video-cap { max-width: 460px; margin-inline: auto; text-align: center; }

/* --- numbered step sequence: COLLAGE --------------------------------------
   Number and caption sit on the photograph. Tiles are sized by orientation:
   a portrait shot takes a half-width 3:4 cell, a landscape one spans the full
   width at 3:2. That is what gives the grid its rhythm, and it means neither
   orientation is crushed into a cell shaped for the other.

   Default flow (not `dense`) is deliberate — these are numbered steps, and
   dense packing would reorder them visually. An occasional gap at the end of
   a row is the acceptable price of steps that read 1, 2, 3. */
.steps {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.step {
  position: relative; margin: 0; overflow: hidden; border-radius: 10px;
  background: var(--mist); border: 1px solid var(--line);
}
/* Row aspect is decided per PAIR at build time (see pair_shapes) so the grid
   never holes: two portraits make a 3:4 row, two landscapes a 3:2 row, and a
   mixed pair meets in the middle at 1:1. */
.step--tall   { aspect-ratio: 3 / 4; }
.step--square { aspect-ratio: 1 / 1; }
.step--wide   { aspect-ratio: 3 / 2; }
/* Closing tile of an odd-length run: spans the row rather than leaving a hole.
   object-position sits low because these are portrait shots cropped to a band. */
.step--full   { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.step--full img { object-position: center 58%; }

.step img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  cursor: zoom-in; transition: transform .5s ease;
}
/* The field video sits in the collage as a tile of its own. */
.step--video { background: #11171d; }
.step--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.step__n--video {
  letter-spacing: .13em; text-transform: uppercase;
  background: var(--coral-deep); color: #fff;
}
.step:hover img { transform: scale(1.03); }
.step img:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }

.step__n {
  position: absolute; top: 11px; left: 11px; z-index: 2; pointer-events: none;
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .09em;
  font-variant-numeric: tabular-nums; color: #fff;
  background: rgba(20, 28, 36, .78); padding: 5px 10px; border-radius: 5px;
}

/* The caption is a <div>, not a <p>: shared-styles.css sets
   `p { font-size: 18px !important }` below 1100px, which would blow overlay
   text out of a fixed-height tile. */
.step__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
  padding: 38px 15px 14px;
  font-family: var(--body); font-size: 14.5px; line-height: 1.45; color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
  background: linear-gradient(to top,
    rgba(14, 20, 26, .90) 0%, rgba(14, 20, 26, .76) 42%, rgba(14, 20, 26, 0) 100%);
}

@media (max-width: 760px) {
  .steps { gap: 12px; }
  .step__cap { font-size: 14px; padding: 34px 13px 12px; }
}

/* Phone — one column. Both orientations span the width, so the rhythm comes
   from height alone (3:4 against 3:2) and captions stay readable. */
/* Phone — one column, so pairing no longer applies and each tile can take its
   own natural shape again. */
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .step--square { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .step img, .step:hover img { transition: none; transform: none; }
}

/* --- before / after pair --- */
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 28px 0 0; }
.ba-pair figure { margin: 0; }
.ba-pair img {
  width: 100%; max-height: 440px; object-fit: cover; border-radius: 8px; display: block;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.ba-pair .ba-tag {
  display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--coral-deep);
  margin-bottom: 9px;
}
.ba-pair figcaption {
  font-family: var(--body); font-size: 15px; line-height: 1.58;
  color: var(--muted); margin-top: 10px;
}

.keytake {
  background: var(--mist); border-left: 3px solid var(--teal); border-radius: 0 8px 8px 0;
  padding: 24px 28px; margin: 44px 0 0;
}
.keytake h3 {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--coral-deep); margin: 0 0 12px;
}
.keytake p { margin: 0; font-size: 16px; }

/* Photo + the same layered overlay the homepage hero uses: a diagonal navy-to-
   teal wash, corner glows, then drifting waterlines. Tint is heavier here than
   on the hero because this box carries small text and buttons. */
.post-cta {
  position: relative; overflow: hidden;
  border-radius: 12px; padding: 46px 40px; margin: 52px 0 0;
  text-align: center; color: #fff;
  background:
    linear-gradient(120deg,
      rgba(30, 40, 50, .82) 0%,
      rgba(30, 120, 130, .62) 50%,
      rgba(30, 40, 50, .84) 100%),
    url('images/diver-underwater-inspection.webp') center/cover;
}
.post-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at top right, rgba(110, 200, 200, .30) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(30, 40, 50, .55) 0%, transparent 50%);
}
.post-cta::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(0deg,
    transparent, transparent 44px,
    rgba(110, 200, 200, .05) 44px, rgba(110, 200, 200, .05) 45px);
  animation: cta-ripple 9s ease-in-out infinite;
}
/* content must clear both overlay layers */
.post-cta > * { position: relative; z-index: 1; }

@keyframes cta-ripple {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-24px); }
}
@media (prefers-reduced-motion: reduce) {
  .post-cta::after { animation: none; }
}
.post-cta h3 { color: #fff; font-family: var(--display); font-size: 25px; font-weight: 600; margin: 0 0 10px; }
.post-cta p { font-family: var(--body); font-size: 16px; color: rgba(255,255,255,.76); margin: 0 0 22px; }
.post-cta .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.post-cta a {
  font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: none;
  padding: 13px 28px; border-radius: 999px; display: inline-block; transition: all .16s ease;
}
.post-cta .p { background: var(--teal); color: #10323a; }
.post-cta .p:hover { background: var(--azure-bright); }
.post-cta .s { border: 1px solid rgba(255,255,255,.34); color: #fff; }
.post-cta .s:hover { background: rgba(255,255,255,.1); }

.post-nav { max-width: 740px; margin: 0 auto; padding: 44px 30px 72px; }
.post-nav h3 {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 16px;
}
.post-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.post-nav a {
  font-family: var(--body); font-size: 16.5px; color: var(--deep); text-decoration: none;
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 8px; transition: all .16s ease;
}
.post-nav a:hover { border-color: var(--teal); background: var(--mist); color: var(--coral-deep); }
.post-nav .ar { color: var(--teal); flex-shrink: 0; }
.post-nav .where { color: var(--muted); font-size: 14px; }

/* 740px / 30px to match .post-body exactly — this block was left at 820px and
   sat 40px wider than the article on each side.
   The CTA above ends with margin-bottom:0 and .post-nav below starts flush, so
   the separation between all three has to come from here. */
.prevnext {
  max-width: 740px; margin: 44px auto 0; padding: 0 30px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch;
}
.pn-link {
  font-family: var(--body); text-decoration: none;
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px;
  background: var(--white);
  transition: border-color .16s ease, background .16s ease,
              transform .16s ease, box-shadow .16s ease;
}
.pn-link:hover {
  border-color: var(--teal); background: var(--mist);
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
.pn-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.pn-link .lbl {
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--coral-deep);
  display: inline-flex; align-items: center; gap: 6px;
}
.pn-link .ar { display: inline-block; transition: transform .16s ease; }
.pn-prev:hover .ar { transform: translateX(-3px); }
.pn-next:hover .ar { transform: translateX(3px); }
.pn-link .ttl { color: var(--deep); font-size: 16px; line-height: 1.38; }
.pn-next { text-align: right; align-items: flex-end; }
.pn-spacer { display: block; }

@media (prefers-reduced-motion: reduce) {
  .pn-link, .pn-link .ar { transition: none; }
  .pn-link:hover { transform: none; }
}

@media (max-width: 700px) {
  .ba-pair { grid-template-columns: 1fr; }
  .prevnext { grid-template-columns: 1fr; margin-top: 34px; }
  /* stacked, so right-aligning "Next" would read as a stray indent */
  .pn-next { text-align: left; align-items: flex-start; }
}
@media (max-width: 640px) {
  .blog-hero { padding: 34px 0 0; }
  .blog-hero-inner { padding: 0 20px; }
  .post-grid { grid-template-columns: 1fr; gap: 24px; }
  .post-hero { padding: 22px 0 0; }
  .post-hero-inner, .post-body, .post-nav, .prevnext { padding-left: 20px; padding-right: 20px; }
  .post-video--wide { max-width: 100%; }
  /* a 9:16 clip at 340px wide is 604px tall — most of a phone screen.
     Cap the width so the video leaves room for its caption and context. */
  .post-video--portrait { max-width: 268px; }
  /* 4:5 at 340px is 425px tall — fine on a phone, so only a modest trim. */
  .post-video--tall { max-width: 340px; }
  .post-cta { padding: 30px 24px; }
}

/* ============================================================
   LIGHTBOX — ported from leakgallery.html so the ledger's cropped
   thumbnails always have the uncropped original one tap away.
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 9999; display: none;
  align-items: center; justify-content: center;
  background: rgba(15, 20, 26, .93); padding: 5vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 88vh; object-fit: contain;
  border-radius: 6px; box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
.lightbox button {
  position: absolute; background: rgba(15, 20, 26, .55); color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .55); cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6); box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
  transition: background .15s ease, border-color .15s ease;
}
.lightbox button:hover { background: rgba(15, 20, 26, .85); border-color: var(--teal); }
.lightbox button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.lightbox-close { top: 18px; right: 20px; width: 46px; height: 46px; font-size: 30px; border-radius: 50%; }
.lightbox-nav {
  top: 50%; transform: translateY(-50%); width: 54px; height: 54px;
  font-size: 34px; border-radius: 50%; padding-bottom: 4px;
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .85); font-family: var(--sans);
  font-size: 13px; letter-spacing: .06em;
}
@media (max-width: 540px) {
  .lightbox { padding: 3vh 2vw; }
  .lightbox-nav { width: 46px; height: 46px; font-size: 28px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 26px; }
}
