/* ══════════════════════════════════════════════
   ADVR — Photo gallery + lightbox
   Shared across all pages using data-gallery boxes
══════════════════════════════════════════════ */

/* Framed 5:4 box once a photo is found (placeholder mode keeps its own padding/min-height) */
.service-detail-visual.has-photo{
  padding: 0;
  aspect-ratio: 5 / 4;
  height: auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.service-detail-visual.has-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* In-card carousel controls (only added when a slot has 2+ photos) */
.gallery-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15,21,32,.55);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background .18s, opacity .18s;
  opacity: 0;
}
.service-detail-visual.has-photo:hover .gallery-arrow{ opacity: 1; }
.gallery-arrow:hover{ background: rgba(15,21,32,.85); }
.gallery-arrow.prev{ left: .6rem; }
.gallery-arrow.next{ right: .6rem; }

.gallery-dots{
  position: absolute;
  bottom: .6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.gallery-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
}
.gallery-dot.active{ background: var(--accent); }

/* Small "expand" hint icon, top-right of every photo box */
.gallery-expand-hint{
  position: absolute;
  top: .55rem;
  right: .55rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15,21,32,.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  opacity: 0;
  transition: opacity .18s;
  pointer-events: none;
  z-index: 2;
}
.service-detail-visual.has-photo:hover .gallery-expand-hint{ opacity: 1; }

/* ── LIGHTBOX (fullscreen, shared across the whole site) ── */
.lightbox-overlay{
  position: fixed;
  inset: 0;
  background: rgba(10,14,20,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  opacity: 0;
  transition: opacity .2s ease;
  padding: 2rem;
}
.lightbox-overlay.visible{ opacity: 1; }
.lightbox-img-wrap{
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
}
.lightbox-img-wrap img{
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close{
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 301;
}
.lightbox-close:hover{ color: var(--accent); }
.lightbox-arrow{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.08);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s;
  z-index: 301;
}
.lightbox-arrow:hover{ background: rgba(255,255,255,.18); }
.lightbox-arrow.prev{ left: 1.5rem; }
.lightbox-arrow.next{ right: 1.5rem; }

@media(max-width: 640px){
  .lightbox-arrow{ width: 38px; height: 38px; font-size: 1.3rem; }
  .lightbox-arrow.prev{ left: .6rem; }
  .lightbox-arrow.next{ right: .6rem; }
  .lightbox-close{ font-size: 1.6rem; top: .8rem; right: .9rem; }
}
