/* =========================================================
   Moments in Motion — Inline Instagram Reels
   ========================================================= */

.reels-section {
  background: var(--ivory);
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.reel-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.45s var(--ease-luxury),
    box-shadow 0.45s var(--ease-luxury);
}

.reel-card:hover,
.reel-card:focus-within {
  transform: translateY(-8px) scale(1.015);
  box-shadow:
    var(--shadow-lift),
    0 0 0 1px rgba(180, 138, 58, 0.35),
    0 12px 40px rgba(180, 138, 58, 0.18);
}

.reel-card.is-playing {
  transform: translateY(-4px);
  box-shadow:
    var(--shadow-lift),
    0 0 0 1px rgba(180, 138, 58, 0.45),
    0 16px 44px rgba(180, 138, 58, 0.22);
}

.reel-thumb-wrap {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: linear-gradient(145deg, var(--olive-deep), var(--olive-muted));
}

.reel-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-luxury);
}

.reel-card:hover .reel-thumb {
  transform: scale(1.08);
}

.reel-card.is-playing .reel-thumb {
  transform: none;
  opacity: 0;
}

.reel-card.is-playing:hover {
  transform: translateY(-4px) scale(1);
}

/* Full-area play hit target */
.reel-hit {
  position: absolute;
  inset: 0;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}

.reel-hit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}

.reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 48, 34, 0.15) 0%,
    rgba(26, 48, 34, 0.25) 40%,
    rgba(26, 48, 34, 0.82) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.reel-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-champagne) 100%);
  color: var(--olive-deep);
  font-size: 1.15rem;
  box-shadow: var(--shadow-gold);
  transition: transform 0.4s var(--ease-luxury), box-shadow 0.4s;
  padding-left: 3px;
}

.reel-play--sm {
  width: 48px;
  height: 48px;
  font-size: 1rem;
  padding-left: 0;
}

.reel-card:hover .reel-play,
.reel-hit:focus-visible .reel-play {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(180, 138, 58, 0.45);
}

/*
  Video-only crop:
  Instagram embeds include header + caption chrome.
  We scale and shift the iframe so only the video fills the 9:16 frame.
*/
.reel-embed-crop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 3;
  background: #0a0f0c;
  border-radius: 0;
}

.reel-inline-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220%;
  height: 145%;
  max-width: none;
  border: 0;
  background: #000;
  transform: translate(-50%, -46%);
  pointer-events: auto;
}

.reel-inline-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 31, 24, 0.55);
  pointer-events: none;
}

.reel-stop {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(216, 190, 115, 0.4);
  background: rgba(18, 31, 24, 0.75);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.reel-stop:hover,
.reel-stop:focus-visible {
  background: var(--gold);
  color: var(--olive-deep);
  outline: none;
}

.reel-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
  background: var(--white);
}

.reel-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--olive);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.reel-card-meta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  font-weight: 400;
}

.reel-card-meta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 138, 58, 0.35);
  padding-bottom: 1px;
  transition: color 0.3s, border-color 0.3s;
}

.reel-card-meta a:hover,
.reel-card-meta a:focus-visible {
  color: var(--olive);
  border-color: var(--olive);
  outline: none;
}

.reels-cta {
  text-align: center;
  margin-top: 3.5rem;
}

.reels-cta-label {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--olive);
  margin-bottom: 1.25rem;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  color: var(--white) !important;
  border: none;
  box-shadow: 0 10px 30px rgba(131, 58, 180, 0.25);
}

.btn-instagram:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  color: var(--white) !important;
  box-shadow: 0 14px 36px rgba(131, 58, 180, 0.35);
}

.btn-instagram i {
  font-size: 1.15rem;
}

@media (max-width: 991.98px) {
  .reels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .reels-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }

  .reel-play {
    width: 56px;
    height: 56px;
  }
}
