/* =========================================================
   Reels — home page, directly under the hero

   Two portrait clips on a dark teal band. It sits high on the
   page on purpose: these are the shots people would otherwise
   only find by opening the gallery.

   Works with:
   - Pages/Index.cshtml   (.reels)
   - wwwroot/js/gallery.js (plays clips only while on screen)
========================================================= */

.reels {
  padding-block: var(--section-padding-md);
  background:
    linear-gradient(165deg,
      var(--color-primary) 0%,
      var(--color-primary-dark) 100%);
  color: var(--color-text-light);
}

.reels-inner {
  width: min(var(--container-lg), calc(100% - 3rem));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.reels-head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.reels-eyebrow {
  display: block;
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  color: var(--color-secondary-light);
}

.reels-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, var(--text-3xl));
  line-height: var(--line-tight);
  color: var(--color-text-light);
  text-wrap: balance;
}

.reels-text {
  margin: var(--space-4) 0 0;
  font-size: var(--text-md);
  line-height: var(--line-relaxed);
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Clips ---------- */

.reels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}

.reel {
  margin: 0;
}

.reel-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-lg);
}

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

.reel-caption {
  margin-top: var(--space-4);
}

.reel-caption-title {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-text-light);
}

.reel-caption-text {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  line-height: var(--line-relaxed);
  color: rgba(255, 255, 255, 0.7);
}

.reels-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* Outline button's default ink is dark teal — recolour it so it
   reads on this dark teal band. */
.reels .btn-outline-custom {
  color: var(--color-text-light);
  border-color: rgba(255, 255, 255, 0.55);
}

.reels .btn-outline-custom:hover {
  color: var(--color-primary);
  background: #fff;
  border-color: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .reels-grid {
    /* Stacking two 9:16 clips makes the band very tall, so the
       pair becomes a swipeable rail instead. */
    grid-template-columns: repeat(2, 78vw);
    gap: 1rem;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-3);
  }

  .reel {
    scroll-snap-align: center;
  }
}
