/* ═══════════════════════════════════════════════════════
   VIDEOS PAGE — Granite Bay Brewing Co.
   ═══════════════════════════════════════════════════════ */

/* ── Page hero (shared pattern with events/bartenders) ── */
.page-hero {
  position: relative;
  padding: clamp(10rem, 18vw, 14rem) var(--gutter) clamp(4rem, 8vw, 6rem);
  background: var(--color-bg);
  overflow: hidden;
  text-align: center;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  color: var(--color-amber);
}
.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.page-hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Grid ──────────────────────────────────────────── */
.videos {
  padding: 0 var(--gutter) clamp(5rem, 10vw, 8rem);
  background: var(--color-bg);
}
.videos__container {
  max-width: var(--container);
  margin: 0 auto;
}
.videos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

/* ── Video card ────────────────────────────────────── */
.video-card {
  display: flex;
  flex-direction: column;
}
.video-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-bg-elevated);
  border: 1px solid rgba(224, 122, 47, 0.12);
}

/* Facade button (thumbnail + play) */
.video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: block;
}
.video-embed__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out-expo), filter 0.3s;
}
.video-embed:hover .video-embed__thumb,
.video-embed:focus-visible .video-embed__thumb {
  transform: scale(1.05);
  filter: brightness(0.85);
}
.video-embed__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(224, 122, 47, 0.92);
  color: var(--color-bg);
  font-size: 1.35rem;
  padding-left: 4px; /* optically center the triangle */
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s var(--ease-out-expo), background 0.3s;
}
.video-embed:hover .video-embed__play,
.video-embed:focus-visible .video-embed__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--color-gold);
}
.video-embed:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* Swapped-in iframe fills the same 16:9 box */
.video-embed__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-cream);
  line-height: 1.35;
  margin-top: 1rem;
}

@media (max-width: 480px) {
  .videos__grid {
    grid-template-columns: 1fr;
  }
}
