/* ════════════════════════════════
   GALLERY SLIDER — 3-slide carousel
   ════════════════════════════════ */

.gallery-section {
  background: #060d1c;
  padding: 96px 0 0;
}

.gallery-header {
  text-align: center;
  padding: 0 4vw 48px;
}
.gallery-header .section-label {
  color: #c9a96e !important;
  justify-content: center;
}
.gallery-header .section-title {
  color: #e2e8f0 !important;
}
.gallery-header .section-title em {
  color: #c9a96e !important;
  font-style: italic;
}

/* ── Stage ─────────────────────────────────────────────────── */
.gallery-stage {
  position: relative;
  width: 100%;
  height: clamp(300px, 60vh, 680px);
  overflow: hidden;
  background: #030810;
}

/* ── Slides — base hidden state ─────────────────────────────── */
.gallery-slide {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 68%;
  transform: translateX(-50%) scale(0.55);
  opacity: 0;
  z-index: 1;
  transition: transform 0.82s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.82s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  border-radius: 3px;
  overflow: hidden;
  will-change: transform, opacity;
}

/* ── Center slide ── */
.pos-center {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  z-index: 5;
  pointer-events: auto;
  box-shadow: 0 24px 70px rgba(0,0,0,0.75), 0 6px 24px rgba(0,0,0,0.45);
}

/* ── Left (prev) slide — peeks from left edge ── */
.pos-prev {
  transform: translateX(-90%) scale(0.78);
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
  cursor: pointer;
}

/* ── Right (next) slide — peeks from right edge ── */
.pos-next {
  transform: translateX(-10%) scale(0.78);
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
  cursor: pointer;
}

/* ── Images ── */
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: filter 0.82s ease;
  filter: brightness(0.52);
}
.pos-center img {
  filter: brightness(0.88);
}
.pos-prev:hover img,
.pos-next:hover img {
  filter: brightness(0.68);
  transition: filter 0.3s ease;
}

/* ── Counter (top-right of stage) ── */
.gallery-counter {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.4);
  font-family: 'DM Sans', system-ui, sans-serif;
  pointer-events: none;
}
.gallery-counter span { color: #c9a96e; }

/* ── Navigation arrows (inside stage, at peek edges) ── */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  background: rgba(6,13,28,0.78);
  border: 1px solid rgba(201,169,110,0.32);
  color: #e8d5a3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.22s, border-color 0.22s, transform 0.22s;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.gallery-arrow:hover {
  background: rgba(201,169,110,0.18);
  border-color: rgba(201,169,110,0.6);
  transform: translateY(-50%) scale(1.06);
}
.gallery-arrow svg { pointer-events: none; flex-shrink: 0; }
.gallery-arrow-prev { left: 16px; }
.gallery-arrow-next { right: 16px; }

/* ── Progress bar ── */
.gallery-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(to right, rgba(201,169,110,0.3), #c9a96e);
  z-index: 20;
  width: 0;
  pointer-events: none;
}

/* ── Dots — below stage ── */
.gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 0 4px;
  background: #060d1c;
}
.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.gallery-dot.active {
  background: #c9a96e;
  width: 22px;
  border-radius: 3px;
}

/* ── Caption ── */
.gallery-caption-area {
  background: #060d1c;
  border-top: 1px solid rgba(201,169,110,0.08);
  padding: 24px 6vw 52px;
}
.gallery-caption-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.gallery-caption-bar {
  width: 2px;
  flex-shrink: 0;
  margin-top: 5px;
  background: #c9a96e;
  height: 0;
  transition: height 0.5s ease 0.12s;
}
.gallery-caption-bar.show { height: 46px; }
.gallery-caption-text { flex: 1; }
.gallery-caption-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(19px, 2.4vw, 28px);
  font-weight: 400;
  color: #e8d5a3;
  line-height: 1.22;
  margin: 0 0 7px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.18s, transform 0.5s ease 0.18s;
}
.gallery-caption-title.show { opacity: 1; transform: translateY(0); }
.gallery-caption-desc {
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.38);
  line-height: 1.78;
  margin: 0;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}
.gallery-caption-desc.show { opacity: 1; transform: translateY(0); }
.gallery-caption-num {
  margin-left: auto;
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  color: rgba(201,169,110,0.07);
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .gallery-slide { width: 80%; }
}
@media (max-width: 640px) {
  .gallery-section { padding-top: 64px; }
  .gallery-stage   { height: clamp(220px, 56vw, 400px); }
  .gallery-slide   { width: 82%; }
  .gallery-arrow   { width: 40px; height: 40px; }
  .gallery-arrow-prev { left: 10px; }
  .gallery-arrow-next { right: 10px; }
  .gallery-caption-area { padding: 20px 5vw 36px; }
  .gallery-caption-num  { font-size: 38px; }
}
@media (max-width: 400px) {
  .gallery-arrow  { display: none; }
  .gallery-slide  { width: 90%; }
}
