/* Image and copy share one grid cell: a full-width, uncropped background layer.
   The row grows to fit the natural image ratio or the text, whichever is taller. */
#main>.page-hero:has(>.hero-image),#main>.home-entry.home-entry-background{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important;align-items:center!important;justify-items:center!important;gap:0!important;position:relative!important;isolation:isolate!important;width:100%!important;min-height:0!important;height:auto!important;max-height:none!important;padding:0!important;overflow:visible!important}
#main>.page-hero:has(>.hero-image)>.hero-image{grid-area:1/1!important;display:block!important;position:relative!important;inset:auto!important;align-self:center!important;justify-self:stretch!important;z-index:0!important;width:100%!important;height:auto!important;min-height:0!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;transform:none!important;filter:none!important;opacity:1!important;mask-image:none!important;-webkit-mask-image:none!important;margin:0!important;pointer-events:none}
#main>.page-hero:has(>.hero-image)>.hero-copy,#main>.home-entry.home-entry-background>.home-entry-content{grid-area:1/1!important;position:relative!important;inset:auto!important;align-self:center!important;justify-self:center!important;z-index:2!important;padding-block:clamp(40px,5vw,80px)!important;box-sizing:border-box}
#main>.home-entry.home-entry-background>.home-entry-backdrop{grid-area:1/1!important;display:block!important;position:relative!important;inset:auto!important;align-self:center!important;justify-self:stretch!important;z-index:0!important;width:100%!important;height:auto!important;min-height:0!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;margin:0!important}
#main>.home-entry.home-entry-background>.home-entry-backdrop>img.home-hero-owner-image{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;transform:none!important}
#main>.page-hero:has(>.hero-image)::after,#main>.home-entry.home-entry-background::after{position:absolute!important;inset:0!important;z-index:1!important;pointer-events:none}

/* Brands directory: portrait scene fills the entire mobile hero; desktop stays unchanged. */
@media(max-width:800px){
html body.brands-page #main>.page-hero.brands-photo-hero{background-image:url('https://sr-performance.ch/wp-content/uploads/2026/11/srp-marken-hero-mobile-20261111.webp')!important;background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important}
html body.brands-page #main>.page-hero.brands-photo-hero>img.hero-image{display:none!important}
}
