.osHomeHero {
    --os-photo-gap: 12px;
    display: grid;
    grid-template-columns: minmax(0, 633fr) minmax(0, 455fr);
    gap: var(--os-photo-gap);
    /* Bound the intrinsic width by the viewport, not the surrounding auto table. */
    width: min(1100px, 95vw);
    max-width: 100%;
    aspect-ratio: 1100 / 407;
    margin: 0 auto;
}
.osHomeHero a { display: block; min-width: 0; min-height: 0; overflow: hidden; }
.osHomeHero picture { display: block; height: 100%; }
.osHomeHero img { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: cover; }
/* Keep the avenue in its natural proportions in both orientations.
   Its height must never depend on a percentage-height picture container. */
.osHomeHero .osHomeHeroLandscape { align-self: start; }
.osHomeHero .osHomeHeroLandscape picture { width: 100%; height: auto; }
.osHomeHero .osHomeHeroLandscape img { width: 100%; max-width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.osHomeHero a:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.osHomeHeroRecent { display: grid; grid-template-rows: minmax(0, 3.25fr) minmax(0, 1fr); gap: var(--os-photo-gap); min-width: 0; min-height: 0; }
.osHomeHeroThumbnails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--os-photo-gap); min-height: 0; }
.osHomeHeroSingle { grid-template-rows: minmax(0, 1fr); }
.osHomeHeroEmpty { display: block; width: min(1100px, 95vw); aspect-ratio: auto; }
@media (max-width: 640px) and (orientation: portrait), (hover: none) and (pointer: coarse) and (max-width: 1024px) and (orientation: portrait) {
    /* Explicit viewport width avoids intrinsic sizing of the surrounding table.
       Natural image heights avoid percentage-height/cover cropping on iOS. */
    .osHomeHero { --os-photo-gap: 8px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.14fr); align-items: start; width: calc(100vw - 32px); aspect-ratio: auto; }
    .osHomeHeroEmpty { display: block; }
    .osHomeHero a { height: auto; aspect-ratio: auto; }
    .osHomeHero picture { height: auto; }
    .osHomeHero img { width: 100%; height: auto; object-fit: contain; }
    .osHomeHeroRecent { display: block; margin-top: 0; }
    .osHomeHeroThumbnails { margin-top: var(--os-photo-gap); align-items: start; }
}
