/* Imagery for /wholesalers, /distributors, /manufacturers. Prefix: seg-photo, seg-hero--*, seg-banner */

/* Hero photo: faded to the page tint on the text side, product card floats on the photo */
.sol-hero.seg-hero.seg-hero--photo{background-color:#f4f7fa;background-repeat:no-repeat;background-size:auto,cover;background-position:0 0,center}
.sol-hero.seg-hero.seg-hero--whs{background-image:linear-gradient(90deg,#f4f7fa 0%,#f4f7fa 38%,rgba(244,247,250,.55) 60%,rgba(244,247,250,0) 86%),url("/images/solutions/hero-wholesale.webp")}
.sol-hero.seg-hero.seg-hero--dist{background-color:#fff;background-image:linear-gradient(90deg,#fff 0%,#fff 40%,rgba(255,255,255,.6) 62%,rgba(255,255,255,.05) 88%),url("/images/home/home2-distributors.webp");background-position:0 0,right center}
.sol-hero.seg-hero.seg-hero--mfr{background-image:linear-gradient(90deg,#f4f7fa 0%,#f4f7fa 40%,rgba(244,247,250,.6) 62%,rgba(244,247,250,.05) 88%),url("/images/home/home2-manufacturers.webp")}
.seg-hero--photo .ui-card{box-shadow:0 30px 70px rgba(24,30,53,.25)}

/* Photo above a product card, card overlapping the bottom edge */
.seg-split_visual.has-photo{flex-direction:column;align-items:stretch;gap:0}
.seg-photo{margin:0;position:relative}
.seg-photo img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:14px;box-shadow:0 20px 50px rgba(24,30,53,.25)}
.seg-split_visual.has-photo .ui-card{position:relative;width:calc(100% - 3rem);max-width:none;margin:-5rem 0 0 auto}

/* Wide photo strip under a section heading */
.seg-banner{margin:0 0 2.5rem}
.seg-banner img{display:block;width:100%;height:auto;aspect-ratio:21/8;object-fit:cover;border-radius:14px;box-shadow:0 20px 50px rgba(24,30,53,.25)}

@media (max-width:991px){
  .sol-hero.seg-hero.seg-hero--whs{background-image:linear-gradient(180deg,#f4f7fa 0%,#f4f7fa 55%,rgba(244,247,250,.85) 100%),url("/images/solutions/hero-wholesale.webp")}
  .sol-hero.seg-hero.seg-hero--dist{background-image:linear-gradient(180deg,#fff 0%,#fff 55%,rgba(255,255,255,.85) 100%),url("/images/home/home2-distributors-m.webp")}
  .sol-hero.seg-hero.seg-hero--mfr{background-image:linear-gradient(180deg,#f4f7fa 0%,#f4f7fa 55%,rgba(244,247,250,.85) 100%),url("/images/home/home2-manufacturers-m.webp")}
  .seg-split_visual.has-photo .ui-card{width:calc(100% - 1.5rem);margin-top:-3rem}
}
@media (max-width:479px){
  .seg-banner .img-request{aspect-ratio:16/10!important}
}

/* 1280px photos: show at native height on the right instead of stretching to full width, so they stay sharp */
@media (min-width:992px){.sol-hero.seg-hero.seg-hero--dist,.sol-hero.seg-hero.seg-hero--mfr{background-size:auto,auto 100%;background-position:0 0,right center}}
