/* XMS v1.3.96 — clean, full-frame homepage hero image.
   Avoid the rounded / diagonal white cutouts observed at the right image's
   upper-right and lower-left corners. Uses the existing editor-selected image. */

/* Only the homepage main hero is squared; all other content cards keep their
   existing radius, spacing, editors, layouts and colours. */
body.xms-theme.xms-home-study .xms-main > .xms-section-study_hero {
  border-radius: 0 !important;
  -webkit-clip-path: none !important;
  clip-path: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  overflow: hidden !important;
}

/* The right-hand image is one continuous rectangle, with no corner masks or
   curved edges, irrespective of whichever media item is chosen in WordPress. */
body.xms-theme.xms-home-study .xms-section-study_hero .xms-study-hero-visual.xms-study-hero-single {
  border-radius: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: none !important;
  -webkit-clip-path: none !important;
  clip-path: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  overflow: hidden !important;
  background: #e8e9ea;
}
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;
  border: 0 !important;
  border-radius: 0 !important;
  -webkit-clip-path: none !important;
  clip-path: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  /* Minimal overscan conceals edge pixels from imported artwork without
     distorting the picture or changing the hero's dimensions. */
  transform: scale(1.065) !important;
  transform-origin: 50% 50% !important;
}

/* Keep only the gentle left-edge blend between copy and image. The old top
   fade, corner tints and decorative pseudo-element overlays are disabled. */
@media (min-width: 701px) {
  body.xms-theme.xms-home-study .xms-section-study_hero .xms-study-hero-single::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    width: 18% !important;
    height: 100% !important;
    z-index: 2 !important;
    background: linear-gradient(90deg,#f9f9f9 0%,rgba(249,249,249,0) 100%) !important;
    pointer-events: none !important;
  }
}
body.xms-theme.xms-home-study .xms-section-study_hero .xms-study-hero-single::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 700px) {
  body.xms-theme.xms-home-study .xms-section-study_hero .xms-study-hero-visual.xms-study-hero-single {
    border-radius: 0 !important;
  }
  body.xms-theme.xms-home-study .xms-section-study_hero .xms-study-hero-single::before {
    content: none !important;
    display: none !important;
  }
}
