/* ============================================================
   reels.css — click-to-play reels strip + lightbox
   ------------------------------------------------------------
   Native horizontal overflow scroll with NO snap, free finger drag
   on touch (browser-native momentum) + pointer-drag on desktop.
   Each tile is a button; click opens the lightbox player.
   ============================================================ */

/* Ensure all 7 reels are visible on all viewports (override older nth-child hides) */
.reels-strip .reel-tile { display: flex !important; }

/* The strip is driven by marquee.js (continuous smooth-scroll loop with cloned tiles).
   marquee.js applies `transform: translate3d(...)` so we must NOT clip the strip itself
   nor declare `overflow-x: auto` (which would prevent transforms from extending past the
   host edges). The `.reels-strip-section` host has `overflow: hidden` to clip clones. */
.reels-strip {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 18px;
  padding: 0 6vw 8px;
  width: max-content;                /* allow track to extend beyond viewport for clones */
  cursor: grab;
  touch-action: pan-y;               /* let marquee handle horizontal drag itself */
  user-select: none;
  will-change: transform;
}
.reels-strip.is-dragging { cursor: grabbing; }

/* Reel tile = button with poster + play overlay */
.reels-strip .reel-tile {
  position: relative;
  flex: 0 0 auto;
  width: 280px;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  border: 0;
  background: #1a1816;
  cursor: pointer;
  padding: 0;
  border-radius: 2px;
  transition: transform 0.5s var(--ease, cubic-bezier(.2,.7,.2,1));
}
.reels-strip .reel-tile:hover { transform: translateY(-3px); }
.reels-strip .reel-tile:focus-visible {
  outline: 2px solid var(--bronze, #B8956A);
  outline-offset: 4px;
}

/* Poster image */
.reels-strip .reel-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.94);
  transition: filter 0.6s var(--ease, cubic-bezier(.2,.7,.2,1)),
              transform 1.2s var(--ease, cubic-bezier(.2,.7,.2,1));
  pointer-events: none;
}
.reels-strip .reel-tile:hover .reel-poster {
  filter: brightness(1);
  transform: scale(1.04);
}

/* Soft bottom shade for play button contrast */
.reels-strip .reel-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0) 55%, rgba(20,18,16,0.45) 100%);
  pointer-events: none;
}

/* Big circular play button — centered.
   Override any older .reel-play::before triangle from home.css */
.reels-strip .reel-play::before { content: none !important; display: none !important; }

.reels-strip .reel-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 999px;
  background: rgba(250, 247, 241, 0.92);
  color: #1F1C18;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 0 1px rgba(20,18,16,0.06);
  transition: transform 0.35s var(--ease, cubic-bezier(.2,.7,.2,1)),
              background-color 0.35s var(--ease, cubic-bezier(.2,.7,.2,1));
  pointer-events: none; /* whole tile is the button */
}
.reels-strip .reel-play svg {
  width: 26px; height: 26px;
  margin-left: 3px; /* optical centering of the triangle */
}
.reels-strip .reel-tile:hover .reel-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #FAF7F1;
}

/* Mobile: smaller tiles, slightly smaller play button */
@media (max-width: 760px) {
  .reels-strip {
    gap: 12px;
    padding: 0 4vw 6px;
  }
  .reels-strip .reel-tile {
    width: 64vw;
    max-width: 320px;
  }
  .reels-strip .reel-play {
    width: 56px; height: 56px;
  }
  .reels-strip .reel-play svg { width: 22px; height: 22px; }
}

/* ----- LIGHTBOX PLAYER ----- */
.reel-lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 13, 11, 0.92);
  z-index: 9000;
  display: none;
  align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  padding: 16px;
}
.reel-lightbox.is-open {
  display: flex;
  opacity: 1;
}
.reel-lightbox-stage {
  position: relative;
  width: min(90vw, 480px);
  aspect-ratio: 9 / 16;
  max-height: 90vh;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.reel-lightbox-video {
  width: 100%; height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}
.reel-lightbox-close,
.reel-lightbox-prev,
.reel-lightbox-next {
  position: absolute;
  background: rgba(20,18,16,0.55);
  color: #FAF7F1;
  border: 1px solid rgba(250,247,241,0.18);
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s ease, transform 0.25s ease;
}
.reel-lightbox-close:hover,
.reel-lightbox-prev:hover,
.reel-lightbox-next:hover {
  background: rgba(184, 149, 106, 0.85);
}
.reel-lightbox-close {
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.reel-lightbox-prev,
.reel-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 999px;
  font-family: var(--f-heading, 'Tenor Sans');
  font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 4px;
}
.reel-lightbox-prev { left: 24px; }
.reel-lightbox-next { right: 24px; }
.reel-lightbox-prev:hover,
.reel-lightbox-next:hover { transform: translateY(-50%) scale(1.06); }

@media (max-width: 760px) {
  .reel-lightbox-prev { left: 8px; width: 44px; height: 44px; font-size: 22px; }
  .reel-lightbox-next { right: 8px; width: 44px; height: 44px; font-size: 22px; }
  .reel-lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 24px; }
  .reel-lightbox-stage {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
  }
}

/* Body scroll lock when lightbox open */
body.reel-lightbox-open {
  overflow: hidden;
}

/* Pagination dots: handled by .marquee-dots / .marquee-dot in marketing-loops.css. */
