/* ════════════════════════════════════════════════════════════════════
   Payodhara — Instagram Reels section (homepage)
   Mirrors the brief: cream background, olive-green heading, vertical
   9:16 cards with a play overlay, link-only (opens Instagram reel).
   ════════════════════════════════════════════════════════════════════ */

.reel-section {
  padding: 56px 0 64px;
  background: var(--bg-cream, #FAF6EE);
}

.reel-section .section-head h2 {
  font-weight: 400;
  color: var(--green, #3F5F3B);   /* olive green */
}
.reel-section .section-head h2 em {
  color: var(--primary-dark, #5C2E0E);
  font-style: normal;
}
.reel-section .eyebrow {
  color: var(--accent, #C97B3F);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.reel-wrap {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 56px;
}

.reel-track-outer {
  overflow: hidden;
}

.reel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 14px;
  scrollbar-width: none;            /* hide the scrollbar (Firefox) */
  -ms-overflow-style: none;         /* IE/Edge */
}
.reel-track::-webkit-scrollbar { display: none; }   /* hide scrollbar (Chrome/Safari) */
.reel-card {
  flex: 0 0 250px;
  width: 250px;
  scroll-snap-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Vertical 9:16 media frame (video or fallback thumb) */
.reel-video-wrap,
.reel-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--bg-paper-deep, #EADBC0);
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 22px rgba(46, 36, 25, 0.12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.reel-card:hover .reel-video-wrap,
.reel-card:hover .reel-thumb {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(46, 36, 25, 0.18);
}
.reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

/* Sound toggle button (bottom-right) */
.reel-sound {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 36px; height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(46, 36, 25, 0.6);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
  transition: background .2s ease, transform .2s ease;
  z-index: 3;
}
.reel-sound:hover { background: rgba(46, 36, 25, 0.85); transform: scale(1.06); }
.reel-sound svg { width: 18px; height: 18px; }
.reel-sound .ic-sound { display: none; }
.reel-sound.is-sound .ic-muted { display: none; }
.reel-sound.is-sound .ic-sound { display: block; }

/* Instagram badge (top-right) */
.reel-ig-badge {
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(46, 36, 25, 0.55);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
  z-index: 2;
}
.reel-ig-badge:hover { background: var(--accent, #C97B3F); }
.reel-ig-badge svg { width: 17px; height: 17px; }

/* Title under the card */
.reel-title {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft, #4A3D2F);
  line-height: 1.35;
}

/* Reuse existing .rail-btn arrows from main.css; nudge vertically.
   main.css hides .rail-btn <=768px — keep the REEL arrows always visible
   AND stack them above the track/video so taps reach the buttons on mobile. */
.reel-wrap .rail-btn {
  position: absolute;
  top: calc(50% - 18px);
  transform: translateY(-50%);
  display: flex !important;   /* override main.css display:none on small screens */
  align-items: center; justify-content: center;
  z-index: 5;                 /* above .reel-video-wrap / .reel-track */
  pointer-events: auto;
  width: 40px; height: 40px;
}
.reel-wrap .rail-btn[style*="opacity"] { opacity: 1 !important; } /* keep clickable when at ends */
.reel-wrap .reel-prev { left: 6px; }
.reel-wrap .reel-next { right: 6px; }

@media (max-width: 600px) {
  .reel-wrap { padding: 0 12px; }
  .reel-card { flex-basis: 200px; width: 200px; }
  .reel-section { padding: 40px 0 48px; }
  .reel-wrap .rail-btn { width: 44px; height: 44px; } /* bigger tap target */
}
