/* R47: Soft Sage hero image-to-page blending. Image-only effects; no layout or JS changes. */
@media screen {
  html[data-nesto-theme="sage"] body[data-nesto-page="index"] .hero-image {
    -webkit-mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.35) 10%,#000 30%),linear-gradient(to bottom,#000 0%,#000 81%,transparent 100%);
    mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.35) 10%,#000 30%),linear-gradient(to bottom,#000 0%,#000 81%,transparent 100%);
    -webkit-mask-composite:source-in;mask-composite:intersect;
  }
  /* Finance course hero image: soften the seam against the adjacent copy and lower edge. */
  html[data-nesto-theme="sage"] body[data-nesto-course] .hero-photo {
    background-color:transparent!important;
    background-image:none!important;
  }
  html[data-nesto-theme="sage"] body[data-nesto-course] .hero-photo .nesto-hero-img {
    -webkit-mask-image:linear-gradient(to right,#000 0%,#000 78%,transparent 100%),linear-gradient(to bottom,#000 0%,#000 88%,transparent 100%);
    mask-image:linear-gradient(to right,#000 0%,#000 78%,transparent 100%),linear-gradient(to bottom,#000 0%,#000 88%,transparent 100%);
    -webkit-mask-composite:source-in;mask-composite:intersect;
  }
  /* Full-width illustrated banners often include their own text: fade only the outermost edge. */
  html[data-nesto-theme="sage"] :is(img.bank-hero,img.finance-hero-img,.bp-hero > img,.nesto-banking-hero-img) {
    -webkit-mask-image:linear-gradient(to right,transparent 0%,#000 4%,#000 96%,transparent 100%),linear-gradient(to bottom,transparent 0%,#000 5%,#000 89%,transparent 100%);
    mask-image:linear-gradient(to right,transparent 0%,#000 4%,#000 96%,transparent 100%),linear-gradient(to bottom,transparent 0%,#000 5%,#000 89%,transparent 100%);
    -webkit-mask-composite:source-in;mask-composite:intersect;
    border-radius:0!important;
  }
}
@media(max-width:780px){
  html[data-nesto-theme="sage"] body[data-nesto-page="index"] .hero-image {
    -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 72%,transparent 100%);
    mask-image:linear-gradient(to bottom,#000 0%,#000 72%,transparent 100%);
  }
  html[data-nesto-theme="sage"] body[data-nesto-course] .hero-photo .nesto-hero-img {
    -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 78%,transparent 100%);
    mask-image:linear-gradient(to bottom,#000 0%,#000 78%,transparent 100%);
  }
}
