/* ─── WARMLYN CASE STUDY: hero only ──────────────────────────────
   The page body uses the shared /projects/story.css.
   ─────────────────────────────────────────────────────────────── */

.cs-media-frame--hero { border-radius: 6px; }

/* ─── HERO: fits one screen, video centred ───────────────────── */

.cs-hero {
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  max-height: 1100px;
  padding: 20px clamp(16px, 4vw, 48px) 96px;
  display: flex;
  flex-direction: column;
}
.cs-hero__top { width: min(100%, var(--container)); margin: 0 auto 16px; }
.cs-hero__media {
  flex: 1;
  min-height: 0;
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* As wide as possible while the whole 16:9 frame still fits the height */
.cs-media-frame--hero {
  width: min(100%, 1120px, calc((100vh - 190px) * 16 / 9));
  width: min(100%, 1120px, calc((100svh - 190px) * 16 / 9));
}

/* Tall tablets and phones: the band hugs the video instead of leaving empty space */
@media (max-width: 1024px) and (orientation: portrait), (max-width: 640px) {
  .cs-hero { height: auto; min-height: 0; max-height: none; padding: 16px clamp(16px, 4vw, 32px) 32px; }
  .cs-media-frame--hero { width: 100%; }
}
/* Short landscape screens (phones on their side, foldables) */
@media (max-height: 520px) and (orientation: landscape) {
  .cs-hero { height: auto; min-height: 0; max-height: none; padding-bottom: 28px; }
  .cs-media-frame--hero { width: min(100%, 640px); }
}

