/* ==========================================================================
   Gallery lightbox — click a completed-room photo to see it bigger
   Isolated for the same reason as the hero transitions: this is a "how does
   it move" concern, not a layout one. The thumbnails themselves stay defined
   in styles.css (.gallery / .gallery-img); this file only styles the
   click-to-enlarge behavior — the darkened backdrop and the enlarged image
   it shows. See README.md in this folder for the knobs.
   ========================================================================== */

.gallery-img {
  cursor: zoom-in;
}

.lightbox {
  --lightbox-duration: .2s;

  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  background: rgba(20, 18, 16, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--lightbox-duration) ease, visibility var(--lightbox-duration) ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
  transform: scale(.97);
  transition: transform var(--lightbox-duration) ease;
}

.lightbox.is-open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, .2);
}

/* Respect reduced motion: appear/disappear instantly, no fade or scale */
@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox-img {
    transition: none;
  }
}
