/* ========================================
   LIGHTBOX — fullscreen photo viewer
   Extracted from sections.css for use on service/room pages
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 92vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s, transform 0.3s, filter 0.4s;
}
.lightbox__img.lb-loaded {
  opacity: 1;
  transform: scale(1);
  filter: none;
}
.lightbox__img.lb-blurred {
  opacity: 1;
  transform: scale(1);
  filter: blur(12px);
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.lightbox__arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox__arrow--prev { left: 12px; }
.lightbox__arrow--next { right: 12px; }

.lightbox__counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
}

/* Mobile: larger touch targets, arrows closer to edges */
@media (max-width: 767px) {
  .lightbox__arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
  }
  .lightbox__arrow--prev { left: 6px; }
  .lightbox__arrow--next { right: 6px; }
  .lightbox__close { top: 10px; right: 10px; }
  .lightbox__img { max-width: 96vw; max-height: 80vh; border-radius: 4px; }
}
