/* Lightbox + clickable photos (v3) — editorial pages unchanged visually */

.photo-expand {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  text-align: inherit;
  font: inherit;
  color: inherit;
}

.photo-expand img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.25s;
}

.photo-expand:hover img {
  opacity: 0.92;
}

.photo-expand:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* tile images: expand instead of navigating away */
.tile.photo-expand,
a.tile .photo-expand {
  width: 100%;
}

.tile .photo-expand {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tile .photo-expand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band__media [data-gallery],
.cta-band__media .photo-expand {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cta-band__media .photo-expand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.full-bleed [data-gallery],
.full-bleed .photo-expand {
  display: block;
  width: 100%;
}

.full-bleed .photo-expand img {
  width: 100%;
  max-height: 86svh;
  object-fit: cover;
}

.strip figure {
  flex: 0 0 auto;
  width: clamp(240px, 34vw, 460px);
  scroll-snap-align: start;
  margin: 0;
}

.strip .photo-expand {
  width: 100%;
}

.strip .photo-expand img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  background: rgba(14, 12, 11, 0.97);
  color: var(--cream);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__bar {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 2vw, 22px) clamp(16px, 3vw, 32px);
  background: rgba(14, 12, 11, 0.92);
}

.lightbox__meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox__close {
  flex-shrink: 0;
  border: 1px solid rgba(241, 235, 221, 0.45);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font: 600 11px/1 "Inter", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 11px 20px;
  cursor: pointer;
}

.lightbox__close:hover {
  background: var(--cream);
  color: var(--ink);
}

.lightbox__stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: clamp(12px, 2vw, 32px) clamp(48px, 8vw, 80px);
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  border: none;
  background: rgba(241, 235, 221, 0.12);
  color: var(--cream);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox__nav:hover {
  background: rgba(241, 235, 221, 0.28);
}

.lightbox__nav--prev { left: clamp(8px, 2vw, 24px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 24px); }

.lightbox__nav:disabled {
  opacity: 0.25;
  cursor: default;
}

/* gallery page */
.gallery-page-intro {
  max-width: 56ch;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.gallery-room {
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.gallery-room:last-child {
  border-bottom: 1px solid var(--line);
}

.gallery-room__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(18px, 2.5vw, 28px);
}

.gallery-room__count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: clamp(10px, 1.5vw, 16px);
}

@media (max-width: 560px) {
  .lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .lightbox__stage {
    padding-inline: clamp(40px, 12vw, 56px);
  }
}
