/* XMS v1.4.02 — Homepage hero rounded outer frame + clean photo edges.
   Scoped to the Study homepage hero: the video, other cards, and all inner
   pages are intentionally unchanged. */

/* Clip the complete split hero as one card, exactly like neighboring sections.
   v1.3.96 had reset this radius to zero with !important. */
body.xms-theme.xms-home-study .xms-main > .xms-section-study_hero {
  position: relative !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  isolation: isolate !important;
  -webkit-clip-path: none !important;
  clip-path: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Keep the media flush against the inside edge of the HERO, with no separate
   rectangle, inner card radius, thin white border or inset line showing. */
body.xms-theme.xms-home-study .xms-section-study_hero .xms-study-hero-visual.xms-study-hero-single {
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  margin-right: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  -webkit-clip-path: none !important;
  clip-path: none !important;
}

/* Minimal overscan hides the pale/white source-image edge which was exposed
   again when v1.4.01 removed all image scaling. The frame remains full-bleed,
   with the actual outer rounding handled by the parent rather than by the image. */
body.xms-theme.xms-home-study .xms-section-study_hero .xms-study-hero-visual.xms-study-hero-single img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  border: 0 !important;
  border-radius: 0 !important;
  transform: scale(1.06) !important;
  transform-origin: 50% 50% !important;
  -webkit-clip-path: none !important;
  clip-path: none !important;
}

/* No extra bright overlay or pseudo-corner on the right. Keep the existing
   soft transition at the LEFT, so the hero text remains readable. */
body.xms-theme.xms-home-study .xms-section-study_hero .xms-study-hero-visual.xms-study-hero-single::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 700px) {
  /* Preserve existing stacked mobile layout; use the same seamless clipping. */
  body.xms-theme.xms-home-study .xms-section-study_hero .xms-study-hero-visual.xms-study-hero-single img {
    transform: scale(1.045) !important;
  }
}
@media (max-width: 480px) {
  /* The other homepage cards switch to a 13px radius at this breakpoint. */
  body.xms-theme.xms-home-study .xms-main > .xms-section-study_hero {
    border-radius: 13px !important;
  }
}
