/* ============================================================
   LIGHTBOX — kayak photo magnifier + fullscreen modal
   ============================================================ */

/* --- Magnifier hover overlay --- */
.js-photo-zoom {
  position: relative;
  cursor: pointer;
}

.js-photo-zoom::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.js-photo-zoom:hover::after {
  opacity: 1;
}

.js-photo-zoom__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%) scale(.7);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}

.js-photo-zoom:hover .js-photo-zoom__icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* --- Fullscreen lightbox modal --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .85);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

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

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  padding: 25px;
  background: #fff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
  transform: scale(.92);
  transition: transform .3s ease;
}

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

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease;
  z-index: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .3);
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}
