/* ============================================================
   "How it's made" — vertical video reels slider (js/video.js).
   Infinite loop + slideshow via the shared Carousel; a click opens a
   full-screen player. Styled to sit inside the Liquid Glass theme.
   ============================================================ */

.video-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent, #ff7a3c);
  margin-bottom: 0.5rem;
}

.video-slider {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

/* Horizontal, snap-scrolling viewport (arrows and touch both drive it) */
.video-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.video-viewport::-webkit-scrollbar { display: none; }

.video-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 0.25rem;
}

/* 3 across on desktop (two 1rem gaps between three cards) */
.video-card {
  position: relative;
  flex: 0 0 calc((100% - 2rem) / 3);
  scroll-snap-align: start;
  margin: 0;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #0b1622;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.video-card:focus-visible { outline: 2px solid var(--color-accent, #ff7a3c); outline-offset: 2px; }

.video-card .reel {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sound toggle (top-right). Muted icon by default; sound-on when aria-pressed="true".
   Clicking it toggles audio; clicking anywhere else on the card opens the player. */
.reel-sound {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.15s ease;
}
.reel-sound:hover { background: rgba(0, 0, 0, 0.7); }
.reel-sound svg { width: 20px; height: 20px; }
.reel-sound .ico-on { display: none; }
.reel-sound[aria-pressed="true"] .ico-off { display: none; }
.reel-sound[aria-pressed="true"] .ico-on { display: block; }

/* Full-screen player (lightbox) */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 8, 15, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.video-lightbox[hidden] { display: none; }
.video-lightbox__player {
  max-width: min(92vw, 500px);
  max-height: 88vh;
  width: auto;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.video-lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 30, 45, 0.8);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.video-lightbox__close:hover { background: rgba(35, 48, 66, 0.95); }
body.video-lightbox-open { overflow: hidden; }

/* "Watch more on…" social links under the reels */
.video-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  margin-top: 1.75rem;
}
.video-social__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--color-accent, #ff7a3c);
  transition: opacity 0.15s ease;
}
.video-social__link:hover { opacity: 0.8; }
.video-social__link svg { width: 20px; height: 20px; flex: 0 0 auto; }
/* Brand colours (icon uses currentColor / a gradient; text inherits). */
.video-social__link--fb { color: #1877f2; }
.video-social__link--ig { color: #d62976; }

/* Round glass arrows overlapping the slider edges */
.video-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  line-height: 1;
  color: #fff;
  background: rgba(15, 25, 40, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: background 0.15s ease, opacity 0.15s ease;
}
.video-arrow:hover { background: rgba(20, 34, 54, 0.9); }
.video-arrow--prev { left: -8px; }
.video-arrow--next { right: -8px; }
.video-arrow[hidden] { display: none; }
.video-arrow:disabled { opacity: 0.35; cursor: default; }

@media (max-width: 900px) {
  /* 2 across (one gap) */
  .video-card { flex-basis: calc((100% - 1rem) / 2); }
}
@media (max-width: 600px) {
  /* one card + a peek of the next */
  .video-card { flex-basis: 78%; }
  .video-arrow { width: 40px; height: 40px; }
}
