/* ============================================================
   MODULE: Video Grid

   Two-column responsive grid of embedded videos (YouTube / Vimeo).
   Collapses to single column on mobile (≤ 767 px).

   The .hds-video-grid__ratio wrapper enforces a 16:9 aspect ratio
   so videos are fluid and never overflow their column.
   ============================================================ */

/* ── Section shell ────────────────────────────────────────── */

.hds-video-grid {
  padding: var(--section-padding-v, 64px) 0;
}

/* ── Optional header ──────────────────────────────────────── */

.hds-video-grid__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hds-video-grid__heading {
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* ── Two-column grid ──────────────────────────────────────── */

.hds-video-grid__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* ── Individual item ──────────────────────────────────────── */

.hds-video-grid__item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── 16 : 9 aspect-ratio wrapper ─────────────────────────── */

.hds-video-grid__ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md, 4px);
  background: #000;
}

.hds-video-grid__ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Optional caption ─────────────────────────────────────── */

.hds-video-grid__caption {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted, #666);
  text-align: center;
  line-height: 1.4;
}

/* ── Mobile: single column ────────────────────────────────── */

@media (max-width: 767px) {
  .hds-video-grid__grid {
    grid-template-columns: 1fr;
  }
}
