/* ─────────────────────────────────────────────────────────
   reels.css — Homepage social-reels gallery
   Full-width masonry of photos and autoplaying videos
   (3 columns on desktop, 2 on phones).
   ───────────────────────────────────────────────────────── */

.reels-section {
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0 clamp(70px, 9vw, 120px);
}

.reels-head {
  max-width: 1200px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.reels-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.reels-kicker::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent-grad);
}

.reels-title {
  font-family: var(--font-d);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.reels-title em {
  font-style: italic;
  background: var(--accent-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reels-sub {
  max-width: 340px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ── Masonry ───────────────────────────────────────────── */
/* CSS columns give a true masonry: each tile keeps its own aspect
   ratio (set inline on the tile) and stacks under the one above. */
.reels-track {
  columns: 3;
  column-gap: 8px;
  padding: 0 clamp(12px, 2.2vw, 40px);
}
.reel-card {
  break-inside: avoid;
  margin-bottom: 8px;
  width: 100%;
}
@media (max-width: 767px) {
  .reels-track { columns: 2; column-gap: 6px; }
  .reel-card { margin-bottom: 6px; }
}

/* ── Tile ──────────────────────────────────────────────── */
.reel-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg-2);
  text-decoration: none;
  color: inherit;
}

.reel-card video,
.reel-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s var(--expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.reel-card:hover video,
.reel-card:hover img { transform: scale(1.04); }

/* Bottom shade so the label stays legible over any footage */
.reel-card::after {
  content: '';
  position: absolute;
  inset: 55% 0 0 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.75));
  pointer-events: none;
}

.reel-info {
  position: absolute;
  left: clamp(14px, 1.6vw, 24px);
  right: clamp(14px, 1.6vw, 24px);
  bottom: clamp(14px, 1.6vw, 22px);
  z-index: 2;
}
.reel-cat {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.reel-name {
  display: block;
  font-family: var(--font-d);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}
.reel-handle {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .reel-card:hover video,
  .reel-card:hover img { transform: none; }
}
