.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-columns: minmax(44px, 1fr) minmax(0, auto) minmax(44px, 1fr);
  align-items: center;
  gap: clamp(8px, 2vw, 32px);
  padding: clamp(20px, 4vw, 64px);
  background: rgba(0, 0, 0, 0.92);
}

.image-lightbox-image {
  grid-column: 2;
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - clamp(72px, 10vw, 144px));
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: pointer;
}

.image-lightbox-previous {
  grid-column: 1;
  justify-self: end;
}

.image-lightbox-next {
  grid-column: 3;
  justify-self: start;
}

.image-lightbox-status {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  margin: 0;
  color: #fff;
  font-family: "futura-pt-condensed", sans-serif;
  font-size: 18px;
  line-height: 1;
  transform: translateX(-50%);
}

.image-lightbox-trigger {
  cursor: zoom-in;
}

/* Decorative outline layers stay visible but must not block the images below. */
.catelier-mood-outline,
.reflections-outline {
  pointer-events: none;
}

body.lightbox-open {
  overflow: hidden;
}

.reflections-canvas {
  left: 50%;
  transform: translateX(-50%);
}

/* Keep headings above their own canvases without overriding page typography. */
.catelier-mood > h2,
.catelier-sketches > h2,
.catelier-samples > h2,
.catelier-process > h2,
.catelier-museum > h2,
.eternal-moodboard > h2,
.eternal-sketches > h2,
.eternal-process > h2,
.eternal-filmstrip > h2,
.eternal-editorial > h2,
.eternal-runway > h2,
.reflections-section > h2 {
  position: absolute;
  z-index: 30;
  margin: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  .image-lightbox {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 4px;
    padding: 56px 8px 48px;
  }

  .image-lightbox-image {
    max-height: calc(100dvh - 104px);
  }
}
