/* ═══════════════════════════════════════════════════════════════
   জলকণা (Jol Kona) — Spidey Lovers Gallery & Lightbox
   A swipeable photo gallery with a decorative frame, plus a
   fullscreen lightbox that advances on tap / swipe.
   ═══════════════════════════════════════════════════════════════ */

.sl-gallery-wrap {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

/* ─── Decorative frame around the active photo ─── */
.sl-frame {
  --sl-frame-color: var(--rose-gold, #C0623A);
  position: relative;
  padding: 12px;
  border-radius: var(--radius-xl, 32px);
  background:
    linear-gradient(160deg, #FFF9F2, #FCEBDD 55%, #F3D7C0);
  box-shadow:
    inset 0 0 0 1px rgba(192, 98, 58, 0.18),
    0 20px 50px -18px rgba(93, 43, 20, 0.45);
  z-index: 1;
}
.sl-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1.5px solid rgba(192, 98, 58, 0.35);
  border-radius: calc(var(--radius-xl, 32px) - 8px);
  pointer-events: none;
  z-index: 3;
}
.sl-frame::after {
  content: '🕷️';
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 1.3rem;
  opacity: 0.65;
  z-index: 3;
  animation: sl-pulse 2.4s ease-in-out infinite;
}

/* ─── Main viewport (swipe area) ─── */
.sl-viewport {
  position: relative;
  border-radius: calc(var(--radius-xl, 32px) - 10px);
  overflow: hidden;
  background: #1a1a1a;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  aspect-ratio: 3 / 4;
}
.sl-track {
  display: flex;
  height: 100%;
  transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.sl-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.sl-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── Count chip (e.g. 2 / 5) ─── */
.sl-count {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-modern, var(--font-body));
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 4;
  pointer-events: none;
}

/* ─── Tap hint ─── */
.sl-tap-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 4;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sl-tap-hint .sl-swipe-icon {
  display: inline-block;
  animation: sl-nudge 1.6s ease-in-out infinite;
}

/* ─── Arrows ─── */
.sl-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  color: var(--charcoal, #2D2926);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s ease, background 0.2s ease;
}
.sl-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.sl-arrow:active { transform: translateY(-50%) scale(0.96); }
.sl-arrow.sl-prev { left: 10px; }
.sl-arrow.sl-next { right: 10px; }

/* ─── Dots ─── */
.sl-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.sl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(192, 98, 58, 0.28);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}
.sl-dot.active {
  background: var(--rose-gold, #C0623A);
  width: 26px;
  border-radius: 999px;
}

/* ─── Thumbnails ─── */
.sl-thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.sl-thumb {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.72;
  transition: all 0.25s ease;
  padding: 0;
  background: #eee;
}
.sl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sl-thumb:hover { opacity: 1; transform: translateY(-2px); }
.sl-thumb.active {
  border-color: var(--rose-gold, #C0623A);
  opacity: 1;
  box-shadow: 0 6px 16px rgba(192, 98, 58, 0.25);
}

/* ─── Fullscreen Lightbox ─── */
.sl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(12, 8, 6, 0.94);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.sl-lightbox.open {
  display: flex;
  opacity: 1;
}
.sl-lightbox .sl-lb-frame {
  position: relative;
  max-width: min(88vw, 460px);
  width: 100%;
  border-radius: 20px;
  padding: 10px;
  background: linear-gradient(160deg, #FFF9F2, #F3D7C0);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.sl-lb-viewport {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111;
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.sl-lb-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.sl-lb-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sl-lb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sl-lb-count {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 3;
}
.sl-lb-tap {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.7rem;
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 3;
}
.sl-lb-close {
  position: absolute;
  top: -14px;
  right: -6px;
  transform: translateY(-100%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 6;
  transition: background 0.2s ease, transform 0.2s ease;
}
.sl-lb-close:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-100%) scale(1.08); }
.sl-lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s ease, transform 0.2s ease;
}
.sl-lb-arrow:hover { background: rgba(255, 255, 255, 0.28); transform: translateY(-50%) scale(1.08); }
.sl-lb-prev { left: 10px; }
.sl-lb-next { right: 10px; }
.sl-lb-dots {
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.sl-lb-dots .sl-dot { background: rgba(255, 255, 255, 0.3); }
.sl-lb-dots .sl-dot.active { background: var(--rose-gold-light, #D47A55); }

@keyframes sl-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.9; }
}
@keyframes sl-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* Page hero for the dedicated gallery page */
.sl-hero {
  padding: 120px 20px 10px;
  text-align: center;
}
.sl-hero .sl-overline {
  font-family: var(--font-script, 'Caveat', cursive);
  color: var(--rose-gold, #C0623A);
  font-size: 1.4rem;
}
.sl-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--charcoal, #2D2926);
  margin: 8px 0 6px;
}
.sl-hero p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-secondary, #6B5E57);
}
.sl-gallery-section {
  padding: 20px 20px 60px;
  text-align: center;
}
.sl-order-bar {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.sl-order-bar a {
  text-decoration: none;
}

/* Product-card "view photos" affordance */
.sl-card-view {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 480px) {
  .sl-arrow { width: 38px; height: 38px; font-size: 1rem; }
  .sl-thumb { width: 52px; height: 52px; }
  .sl-lb-close { top: -10px; }
  .sl-hero { padding-top: 104px; }
}
