/* XMS v1.4.03 — Seamless WHITE homepage contact banner.
   Only affects the last "LET'S BUILD WHAT'S NEXT" home card.
   Keep the wide building photo, full card width and rounded frame intact. */
body.xms-theme.xms-home-study .xms-main > .xms-section-study_contact {
  background: #ffffff !important;
  background-color: #ffffff !important;
  overflow: hidden !important;
  border-radius: 25px !important;
}

/* Remove the old gray filler strip and the gray-to-white linear gradient. */
body.xms-theme.xms-home-study .xms-main > .xms-section-study_contact .xms-study-contact-orbit {
  background: #ffffff !important;
  background-color: #ffffff !important;
  overflow: hidden !important;
  border-radius: 0 !important;
}

/* Blend the photograph itself into the white background. A gradient over the
   whole card left a hard vertical seam where the photo actually began; this
   image-only alpha fade removes that seam without cropping the tall building. */
body.xms-theme.xms-home-study .xms-main > .xms-section-study_contact .xms-study-contact-orbit img {
  background: transparent !important;
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%, rgba(0,0,0,.10) 15%, rgba(0,0,0,.50) 30%, #000 50%, #000 100%) !important;
  mask-image: linear-gradient(to right,
    transparent 0%, rgba(0,0,0,.10) 15%, rgba(0,0,0,.50) 30%, #000 50%, #000 100%) !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
}

/* Legacy v1.3.98/v1.4.01 overlays were gray, even if the panel was white. */
body.xms-theme.xms-home-study .xms-main > .xms-section-study_contact .xms-study-contact-orbit::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

@media (max-width: 700px) {
  body.xms-theme.xms-home-study .xms-main > .xms-section-study_contact {
    background: #ffffff !important;
  }
  body.xms-theme.xms-home-study .xms-main > .xms-section-study_contact .xms-study-contact-orbit {
    background: #ffffff !important;
  }
  /* On stacked layouts the picture sits at the bottom, underneath the text. */
  body.xms-theme.xms-home-study .xms-main > .xms-section-study_contact .xms-study-contact-orbit img {
    -webkit-mask-image: linear-gradient(to bottom,
      transparent 0%, rgba(0,0,0,.3) 24%, #000 52%, #000 100%) !important;
    mask-image: linear-gradient(to bottom,
      transparent 0%, rgba(0,0,0,.3) 24%, #000 52%, #000 100%) !important;
  }
}
