/* JOL-009: hero slider on large screens.
   Always full width. Height follows the artwork ratio (1600x620) but is capped
   for short/wide screens. Do NOT use aspect-ratio + max-height here: browsers
   transfer max-height into a max-width through the ratio, which shrank the
   slider and left a white gap on the left in RTL. */
@media (min-width: 1200px) {
  body .commerce-hero .commerce-carousel__viewport {
    width: 100% !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    height: min(calc(100vw * 620 / 1600), 72vh, 860px) !important;
    max-height: none !important;
  }
  body .commerce-hero .commerce-carousel__track,
  body .commerce-hero .commerce-slide {
    height: 100% !important;
    min-height: 0 !important;
  }
  body .commerce-hero .commerce-slide__bg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transform: none !important;
  }
}

/* The hero used width:100vw, which includes the vertical scrollbar. That made
   the page ~15px wider than the window, allowing a sideways scroll that pushed
   the slider right and left a white strip. Size it to the page instead. */
body .site-main--landing > .commerce-hero,
body .commerce-hero {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.home-page { overflow-x: clip; }

/* Root cause of the "slider shifted right / white strip on the left" report:
   the homepage partner strip has a decorative ::before circle at left:-70px.
   The section was not positioned, so the circle escaped its overflow:hidden
   and made the page 70px wider, which in RTL allows a sideways scroll that
   shifts the whole page (slider included). Contain it inside its section. */
.partner-strip { position: relative; }
