/* ═══════════════════════════════════════════════════════════
   LIGHTBOX — Product Image Zoom Popup
   agasthee.html & rajasaab.html
═══════════════════════════════════════════════════════════ */

/* ── OVERLAY ── */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(14, 10, 8, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.38s ease, visibility 0.38s ease;
  padding: 20px;
}
.lb-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ── CONTAINER (image only — centred) ── */
.lb-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  max-height: 88vh;
}

/* ── IMAGE PANEL ── */
.lb-img-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 88vh;
}
.lb-img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: top center;
  display: block;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.lb-img.loaded {
  opacity: 1;
  transform: scale(1);
}

/* Loading spinner */
.lb-spinner {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--gold-light);
  border-radius: 50%;
  animation: lbSpin 0.7s linear infinite;
}
@keyframes lbSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.lb-img.loaded ~ .lb-spinner { display: none; }

/* ── COUNTER (below image, centred) ── */
.lb-counter {
  position: fixed;
  bottom: 84px; left: 50%;
  transform: translateX(-50%);
  z-index: 9100;
  font-family: 'Jost', sans-serif;
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.4);
}
.lb-counter strong { color: rgba(255,255,255,0.75); }

/* ── CLOSE BUTTON ── */
.lb-close {
  position: fixed;
  top: 28px; right: 36px;
  z-index: 9100;
  width: 46px; height: 46px;
  border: 1.5px solid rgba(255,255,255,0.20);
  background: rgba(30,26,24,0.7);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  backdrop-filter: blur(6px);
}
.lb-close:hover { border-color: var(--maroon); background: var(--maroon); }
.lb-close svg {
  width: 18px; height: 18px;
  stroke: rgba(255,255,255,0.75); fill: none; stroke-width: 2;
  transition: stroke 0.3s;
}
.lb-close:hover svg { stroke: #fff; }

/* ── PREV / NEXT ARROWS ── */
.lb-prev, .lb-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  z-index: 9100;
  width: 52px; height: 52px;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(30,26,24,0.65);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  backdrop-filter: blur(6px);
}
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-prev:hover { border-color: var(--gold); background: rgba(201,147,58,0.18); transform: translateY(-50%) translateX(-2px); }
.lb-next:hover { border-color: var(--gold); background: rgba(201,147,58,0.18); transform: translateY(-50%) translateX(2px); }
.lb-prev svg, .lb-next svg {
  width: 20px; height: 20px;
  stroke: rgba(255,255,255,0.65); fill: none; stroke-width: 2;
  transition: stroke 0.3s;
}
.lb-prev:hover svg, .lb-next:hover svg { stroke: var(--gold-light); }

/* ── THUMBNAIL STRIP ── */
.lb-thumbs {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9100;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(14,10,8,0.88);
  border-top: 1px solid rgba(255,255,255,0.07);
  overflow-x: auto;
  scrollbar-width: none;
}
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumb {
  width: 52px; height: 64px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s, transform 0.3s;
  opacity: 0.45;
  transition: all 0.3s;
}
.lb-thumb:hover { opacity: 0.8; transform: translateY(-2px); }
.lb-thumb.active { border-color: var(--gold-light); opacity: 1; transform: translateY(-3px); }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ── SWIPE HINT (mobile) ── */
.lb-swipe-hint {
  position: fixed;
  bottom: 96px; left: 50%;
  transform: translateX(-50%);
  z-index: 9100;
  font-family: 'Jost', sans-serif;
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  display: none;
  animation: hintFade 2.5s 1.5s ease forwards;
}
@keyframes hintFade { 0% { opacity: 1; } 100% { opacity: 0; } }

/* ── CARD CURSOR — show it's clickable ── */
.pcard { cursor: zoom-in; }

/* ── TRANSITION between images ── */
.lb-img-panel.changing .lb-img {
  opacity: 0;
  transform: scale(0.96);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .lb-box {
    max-width: 100%;
    max-height: 78vh;
  }
  .lb-img-panel { max-height: 78vh; }
  .lb-img { max-height: 78vh; }
  .lb-swipe-hint { display: block; }
  .lb-prev { left: 10px; width: 40px; height: 40px; }
  .lb-next { right: 10px; width: 40px; height: 40px; }
  .lb-close { top: 16px; right: 16px; }
  .lb-counter { bottom: 78px; }
}
@media (max-width: 480px) {
  .lb-thumb { width: 44px; height: 56px; }
}
