/* R51: image edges top AND bottom, dark and sage, desktop and mobile.
   Fade is applied to the image, never to text/content or the image container. */
/* Category and course hero images (including inline and background-led heroes). */
body[data-nesto-page] :is(.bp-hero > img:first-child,.hero > img.nesto-banking-hero-img,.hero > img:first-child,img.bank-hero,.hero-image,.finance-hero-img),
body[data-nesto-course] .hero-photo img.nesto-hero-img,
body[data-nesto-page="nesto_public_sector_recruitment"] .hero-photo img,
body[data-nesto-page="nesto_banking_iibf_details"] img.hero-image {
  -webkit-mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.65) 3%,#000 9%,#000 88%,rgba(0,0,0,.7) 94%,transparent 100%)!important;
  mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.65) 3%,#000 9%,#000 88%,rgba(0,0,0,.7) 94%,transparent 100%)!important;
  -webkit-mask-composite:initial!important;mask-composite:initial!important;
}
/* Edge-to-edge presentation for banners with no adjacent text, while preserving image aspect ratio. */
@media(max-width:780px){
 body[data-nesto-page="nesto_banking_careers"] img.bank-hero{
   display:block!important;width:100%!important;max-width:none!important;
   border-radius:0!important;margin-inline:0!important;
 }
 body[data-nesto-page="nesto_banking_careers"] :is(.bank-hero-wrap,.bank-hero-container){
   width:100%!important;max-width:none!important;padding-inline:0!important;
 }
}
/* The five scrolling showcase images contain lettering and icons at the edges.
   Use a gentle 4% top and 6% bottom fade; do not crop, resize or fade their controls. */
body[data-nesto-page="index"] #programmes.nesto-showcase .nesto-banner-zoom > img{
  -webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,.3) 0%,#000 4%,#000 93%,rgba(0,0,0,.7) 97%,rgba(0,0,0,.15) 100%)!important;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.3) 0%,#000 4%,#000 93%,rgba(0,0,0,.7) 97%,rgba(0,0,0,.15) 100%)!important;
  -webkit-mask-composite:initial!important;mask-composite:initial!important;
}
/* Recruitment hero uses a CSS background pseudo-element on some templates. */
body[data-nesto-page="nesto_banking_recruitment"] .hero::before{
 -webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 8%,#000 88%,transparent 100%)!important;
 mask-image:linear-gradient(to bottom,transparent 0%,#000 8%,#000 88%,transparent 100%)!important;
}
/* No generic .hero or .section sizing rules: preserve text layouts and functionality. */
