/*! CCS Singles lightbox atom — fullscreen frosted overlay
 * Source of truth: apple-single lightbox fix (2026-09-18)
 * Rules: position:fixed !important; controls OUTSIDE .lb__frame; big mobile arrows.
 * NEVER put .lb in `.wrap, .banner, .lb { position: relative }` — that kills expand.
 */
.lb {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 2, 12, 0.88);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.lb.is-open { display: flex; }
.lb__frame {
  position: relative;
  z-index: 1;
  max-width: min(920px, 96vw);
  max-height: 88vh;
  border-radius: 20px;
  border: 1.5px solid rgba(220, 200, 255, 0.5);
  background: linear-gradient(165deg, rgba(255, 248, 255, 0.1), rgba(20, 12, 40, 0.75));
  box-shadow:
    0 0 56px rgba(140, 100, 220, 0.5),
    0 0 80px rgba(255, 140, 180, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
  clip-path: polygon(2.2% 0%, 97.8% 0%, 100% 2.8%, 100% 97.2%, 97.8% 100%, 2.2% 100%, 0% 97.2%, 0% 2.8%);
  pointer-events: none;
}
.lb__frame img, .lb__frame .lb__cap { pointer-events: auto; }
.lb__img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
}
.lb__cap {
  padding: 0.75rem 1.1rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f3ebe0;
  text-align: center;
}
.lb__nav, .lb__close {
  appearance: none;
  cursor: pointer;
  border: 2px solid rgba(255, 217, 120, 0.85);
  background: rgba(8, 4, 20, 0.88);
  color: #fff8ee;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  width: 3.25rem;
  height: 3.25rem;
  min-width: 52px;
  min-height: 52px;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 2147483001;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.45), 0 0 22px rgba(232, 184, 74, 0.45);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.lb__close {
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  font-size: 1.6rem;
}
.lb__nav--prev {
  left: max(0.45rem, env(safe-area-inset-left));
  top: 50%;
  transform: translateY(-50%);
}
.lb__nav--next {
  right: max(0.45rem, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
}
.lb__nav:hover, .lb__close:hover,
.lb__nav:focus-visible, .lb__close:focus-visible {
  border-color: #ffe6a0;
  background: rgba(40, 20, 70, 0.95);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.5), 0 0 28px rgba(255, 217, 120, 0.65);
}
@media (max-width: 720px) {
  .lb__nav, .lb__close {
    width: 3.6rem;
    height: 3.6rem;
    min-width: 58px;
    min-height: 58px;
    font-size: 2.1rem;
  }
  .lb__close { font-size: 1.75rem; }
  .lb { padding: 0.35rem; }
  .lb__frame { max-width: 100vw; max-height: 82vh; }
  .lb__img { max-height: 72vh; }
}

/* Markup (controls OUTSIDE clipped frame):
<div class="lb" data-lightbox aria-hidden="true" role="dialog" aria-modal="true" aria-label="Gallery">
  <button type="button" class="lb__close" data-lb-close aria-label="Close">×</button>
  <button type="button" class="lb__nav lb__nav--prev" data-lb-prev aria-label="Previous photo">‹</button>
  <button type="button" class="lb__nav lb__nav--next" data-lb-next aria-label="Next photo">›</button>
  <div class="lb__frame">
    <img class="lb__img" data-lb-img src="" alt="" />
    <p class="lb__cap" data-lb-cap></p>
  </div>
</div>
*/
