/* Gallery hero + fullscreen lightbox.
   Extracted from the hotel PDP pages so the CMS gallery_hero section can load
   just this, rather than a whole product-detail stylesheet. The hotel pages
   still carry their own copies of these rules; folding them onto this file is
   a worthwhile follow-up. */

/* ── GALLERY HERO ─────────────────────────────────────── */
.pdp-gallery-hero {
  position: relative;
  background: #f6efe4;
  padding: 28px 32px 54px;
  overflow: hidden;
}
.pdp-gallery-hero::after {
  content: '';
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -48px;
  height: 96px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 62% 62% 0 0;
}
.pdp-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 16px;
  max-width: var(--pdp-container-width);
  height: clamp(420px, 34vw, 560px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.pdp-gallery-main {
  height: 100%;
  min-height: 0;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-secondary);
}
.pdp-gallery-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.pdp-gallery-main:hover img { transform: scale(1.03); }
.pdp-gallery-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  height: 100%;
  min-height: 0;
}
.pdp-gallery-side {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 0;
  background: var(--bg-secondary);
}
.pdp-gallery-side img,
.pdp-gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
  display: block;
}
.pdp-gallery-side:hover img { transform: scale(1.04); }
.pdp-gallery-more {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: none;
  background: rgba(13, 28, 23, 0.48);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary); cursor: pointer;
  font-family: var(--font-body);
}
.pdp-gallery-more span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.pdp-gallery-badge {
  position: absolute; top: 20px; left: 20px;
  background: rgba(255,255,255,0.92); color: var(--text-primary);
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  z-index: 2;
}
@media (max-width: 768px) {
.pdp-gallery-hero { padding: 20px 20px 42px; }
.pdp-gallery-main { min-height: 300px; }
.pdp-gallery-side-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp-gallery-side { min-height: 130px; border-radius: 12px; }
.pdp-gallery-main { border-radius: 12px; }
.pdp-gallery-more span { padding: 10px 14px; font-size: 13px; }
}
/* ── LIGHTBOX ─────────────────────────────────────────── */
.pdp-gallery-main, .pdp-gallery-side { cursor: zoom-in; }
.pdp-gallery-side:has(.pdp-gallery-more) { cursor: pointer; }
.pdp-lightbox {
  position: fixed; inset: 0;
  background: rgba(12, 12, 14, 0.96);
  z-index: 2000;
  display: flex; flex-direction: column;
  color: #fff;
  overflow: hidden;
}
.pdp-lightbox[hidden] { display: none; }
.pdp-lightbox__close,
.pdp-lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3;
  transition: background 0.15s;
  padding: 0;
}
.pdp-lightbox__close:hover,
.pdp-lightbox__nav:hover { background: rgba(255, 255, 255, 0.2); }
.pdp-lightbox__close { top: 18px; right: 18px; }
.pdp-lightbox__nav { top: 50%; transform: translateY(-50%); }
.pdp-lightbox__nav--prev { left: 18px; }
.pdp-lightbox__nav--next { right: 18px; }
.pdp-lightbox__counter {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  font-size: 14px; letter-spacing: 0.04em; color: rgba(255,255,255,0.85);
  z-index: 3;
  font-variant-numeric: tabular-nums;
}
.pdp-lightbox__viewport {
  flex: 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 70px 70px 50px;
  touch-action: pan-y pinch-zoom;
}
.pdp-lightbox__track {
  display: flex;
  width: 100%; height: 100%;
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.pdp-lightbox__slide {
  flex: 0 0 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0; padding: 0 8px;
  gap: 14px;
}
.pdp-lightbox__slide img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 6px 36px rgba(0,0,0,0.4);
}
.pdp-lightbox__slide figcaption {
  font-size: 13px; color: rgba(255,255,255,0.7);
  text-align: center;
}
@media (max-width: 768px) {
.pdp-lightbox__viewport { padding: 70px 8px 50px; }
.pdp-lightbox__nav { width: 38px; height: 38px; }
.pdp-lightbox__nav--prev { left: 8px; }
.pdp-lightbox__nav--next { right: 8px; }
.pdp-lightbox__close { top: 12px; right: 12px; }
}
body.has-lightbox-open { overflow: hidden; }
