/* Still & Golden: photo lightbox (see lightbox.js). */

[data-lightbox] img { cursor: zoom-in; }
[data-lightbox] img:focus-visible { outline: 2px solid #A8845A; outline-offset: 3px; }

html.lb-open { overflow: hidden; }

.lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #1A1714;
  color: #F8F5F1;
  font-family: 'DM Sans', system-ui, sans-serif;
}
.lb[hidden] { display: none; }

/* The photos sit side by side; each swipe or scroll snaps to the next one. */
.lb-track {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.lb-track::-webkit-scrollbar { display: none; }

.lb-slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 76px 16px calc(64px + env(safe-area-inset-bottom));
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.lb-slide picture { display: contents; }
.lb-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lb button {
  font: inherit;
  color: inherit;
  background: rgba(248, 245, 241, 0.08);
  border: 1px solid rgba(248, 245, 241, 0.22);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lb button:hover { background: rgba(248, 245, 241, 0.16); }
.lb button:focus-visible { outline: 2px solid #A8845A; outline-offset: 2px; }

.lb-close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px 0 14px;
  border-radius: 22px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lb-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-arrow:disabled { opacity: 0.25; cursor: default; }
.lb-arrow:disabled:hover { background: rgba(248, 245, 241, 0.08); }

/* Arrows only where there is a mouse; phones swipe. */
@media (hover: hover) and (pointer: fine) {
  .lb-arrow { display: inline-flex; }
  .lb-slide { padding-left: 96px; padding-right: 96px; }
}

.lb-count {
  position: absolute;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(248, 245, 241, 0.8);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
