.reel-showcase {
  background: var(--bone-container);
}

.about-reels {
  overflow: hidden;
}

.reel-showcase-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr);
  gap: var(--gutter);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 58px);
}

.reel-showcase-head h2 {
  max-width: 12ch;
  margin-top: 20px;
}

.reel-showcase-head p {
  max-width: 38ch;
  margin-bottom: 5px;
}

.reel-carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.reel-carousel-hint {
  color: var(--on-surface-variant);
}

.reel-carousel-buttons {
  display: flex;
  gap: 8px;
}

.reel-carousel-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--divider-tint);
  border-radius: 50%;
  color: var(--on-surface);
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.reel-carousel-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.reel-carousel-button:hover:not(:disabled),
.reel-carousel-button:focus-visible {
  color: var(--cream-surface);
  background: var(--secondary);
  border-color: var(--secondary);
  outline: none;
}

.reel-carousel-button:hover:not(:disabled) { transform: translateY(-2px); }
.reel-carousel-button:disabled { opacity: .35; cursor: not-allowed; }

.reel-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 31.5%);
  gap: clamp(14px, 2vw, 24px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 1px 8px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) transparent;
}

.reel-card {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-container-low);
  box-shadow: 0 14px 32px rgba(28, 28, 25, .11);
  scroll-snap-align: start;
}

.reel-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.reel-feed-link {
  display: inline-flex;
  gap: 9px;
  margin-top: 28px;
  color: var(--secondary);
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
}

@media (max-width: 800px) {
  .reel-showcase-head { grid-template-columns: 1fr; gap: 20px; }
  .reel-showcase-head h2 { max-width: 14ch; }
  .reel-carousel-track { grid-auto-columns: minmax(256px, 72vw); }
}

@media (max-width: 460px) {
  .reel-carousel-track { grid-auto-columns: 82vw; }
}

@media (prefers-reduced-motion: reduce) {
  .reel-carousel-track { scroll-snap-type: none; }
  .reel-carousel-button { transition: none; }
}
