/* hero.css — only in doors that have a real hero image (2026-10-20). Uses the door's tokens; nothing here glows. */
.hero-media { margin: var(--space-5) 0 0; }
.hero-media img { width: 100%; height: auto; }
.hero-media--photo img { aspect-ratio: 4 / 5; max-height: 72svh; object-fit: cover; object-position: var(--hero-pos, 50% 50%); border-radius: var(--radius-2); background: var(--color-surface); }
.hero-media--graphic { margin: 0 0 var(--space-5); }
@media (min-width: 64rem) {
  .hero-media { margin: 0; }
  .hero-media--photo img { max-height: calc(100svh - 9rem); }
  .hero--graphic .wrap { display: block; }
  .hero--graphic .hero-media--graphic { margin: 0 0 var(--space-6); }
}

/* Photo hero: first on phones, right column from 64rem */
.hero--photo .hero-media--photo { margin: 0 0 var(--space-5); }
.hero--photo .hero-media--photo img { max-height: 58svh; }
@media (min-width: 64rem) {
  .hero--photo .hero-media--photo { order: 2; margin: 0; }
  .hero--photo .hero-media--photo img { max-height: calc(100svh - 9rem); }
}

/* Hero photo pair: P02 + a 2:3 photo, matched heights, small gap, same corners. Phones bleed 8px into the gutter; the pair stacks
   only if it is under 340px wide (2nd photo under ~150px), so 360 and 390 phones stay side by side and keep the title on screen 1. */
.hero-pair { container-type: inline-size; }
.hero-pair__row { display: flex; gap: var(--space-2); align-items: flex-start; }
.hero-pair__item { margin: 0; min-width: 0; flex: 6 1 0; }
.hero-pair__item--2 { flex: 5 1 0; max-width: 512px; }
.hero--photo .hero-media.hero-pair img { max-height: none; }
.hero-pair .hero-pair__item--2 img { aspect-ratio: 2 / 3; }
@container (max-width: 339.98px) { .hero-pair__row { flex-direction: column; } .hero-pair__item, .hero-pair__item--2 { flex: none; width: 100%; } }
@media (max-width: 39.99rem) { .hero--photo .hero-media.hero-pair { margin-inline: calc(-1 * var(--space-2)); } }
@media (min-width: 40rem) { .hero-pair { max-width: 40rem; } }
@media (min-width: 64rem) { .hero--pair .wrap { grid-template-columns: minmax(26rem, 1fr) minmax(0, 1.5fr); } .hero-pair { max-width: none; } }
