/* Original B&O modules, typography, positions and palette are retained.
   Only media geometry and functional visibility are corrected here. */
html,body{max-width:100%;overflow-x:clip}
.o-hero,.o-overlayImmersive-wrapper{width:100%;max-width:100%;margin-inline:0!important;overflow:hidden;background:#181818}
.o-hero .o-hero__bg,.o-hero .o-hero__bgVideo,.o-hero .o-hero__bgImage{margin:0!important;inset:0!important;width:100%!important;height:100%!important;background:#181818}
.o-hero .o-hero__bg img,.o-hero .o-hero__bg video,.o-hero .o-hero__bgVideo video,.o-hero .productHeader__image img{object-fit:contain!important;object-position:center!important;transform:none!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important}
.o-hero .m-videoPlayer,.o-hero .m-videoPlayer>.a-observer,.o-hero .video-js,.o-hero [data-focus-lock-disabled]{height:100%!important;width:100%!important;padding:0!important;aspect-ratio:auto!important}
.o-hero .heroV4__content,.o-hero .productHeader__content,.o-overlayImmersive-wrapper .content_container{z-index:3}
.o-overlayImmersive-wrapper .backgroundImageWrapper{background:#181818}
.o-overlayImmersive-wrapper .backgroundImageWrapper img{object-fit:contain!important;object-position:center!important;transform:none!important}
/* Retain original overlay positions and original text size. */
.o-hero .heroV4__contentWrapper,.overlay_immersive_content{max-width:100%}
.heroV4__content,.productHeader__contentWrapper{text-shadow:0 1px 18px #0008}
.versionTwo__anchor .compact-size-padding,.versionTwo__anchor .-packshot-image-padding,.grid__productCard .-packshot-image-padding,.m-productListItem .-packshot-image-padding{padding:0!important;margin:0!important}
.versionTwo__anchor .product-card-carousel,.grid__productCard .product-card-carousel{height:100%!important;min-height:0!important}
.versionTwo__anchor .imageWrapper{height:320px!important}.versionTwo__anchor .product-carousel-image,.versionTwo__anchor .hover-image{height:100%!important;width:100%!important;margin:0!important;padding:0!important;inset:0!important}
.versionTwo__anchor .a-responsiveImage img,.grid__productCard .a-responsiveImage img,.m-productListItem .product-carousel-image img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;max-width:100%!important;max-height:100%!important;margin:0!important;transform:none!important}
.versionTwo__anchor .a-responsiveImage__dummy,.grid__productCard .a-responsiveImage__dummy{padding-top:0!important}
.guidanceCard__wrapper,.guidanceV2__slide,.guidanceV2__track,.guidanceV2__viewport{height:auto!important;max-height:none!important;min-height:0!important}
.versionTwo__anchor .product-card-info{position:relative!important;min-height:90px;padding:20px!important;background:#fafafa}
.product-card-tag:empty{display:none}.o-productListing__list .grid__productCard{opacity:1!important;visibility:visible!important;animation:none!important}
.grid__productCard .imageWrapper{height:360px!important}.grid__productCard .product-carousel-image{height:100%!important;width:100%!important;padding:0!important;margin:0!important}
/* Collection cards use product-image rather than the homepage imageWrapper. */
.grid__productCard .product-card-container{height:360px!important}
.grid__productCard .product-image{height:100%!important;width:100%!important;min-width:0}
@media(max-width:767px){.grid__productCard .product-card-container{height:240px!important}}
/* Keep full product images within the existing overview columns. */
.o-productDetail{overflow:hidden}.bo-product-gallery{max-width:100%;height:min(720px,78vh);aspect-ratio:auto;background:#fafafa}.bo-product-image{object-fit:contain!important}
.o-productDetail .webGLContent-wrapper{max-width:100%;margin-inline:0!important}.o-productDetail__carousel,.o-productDetail__info{min-width:0;box-sizing:border-box}
[data-toffee-product-sections] .toffee-continuous-details{width:min(790px,100%);max-width:100%;margin:0 auto;padding:0;font-size:0;line-height:0}
[data-toffee-product-sections] .toffee-continuous-details img{display:block;width:100%;height:auto;max-width:100%;max-height:none;object-fit:contain;margin:0;padding:0;border:0}
[data-toffee-carousel] .slick-list{padding:0!important}[data-toffee-carousel] .slick-slide{padding:0!important}[data-toffee-carousel] .slick-slide>div{margin:0!important}
[data-toffee-carousel] img{object-fit:contain!important;width:100%!important;height:100%!important;max-height:74vh;transform:none!important}
[data-toffee-product-sections] video{object-fit:contain!important;max-height:74vh;width:100%!important;background:#181818}
[data-toffee-product-sections] .a-responsiveImage:not(.icon-class) img{object-fit:contain!important}
.bo-product-gallery-count{position:absolute;bottom:18px;left:24px;font-size:13px;color:#555}
@media(max-width:767px){.versionTwo__anchor .imageWrapper{height:300px!important}.grid__productCard .imageWrapper{height:240px!important}.o-header button[aria-label*='Search Modal']{display:none!important}.o-hero .m-heroV4,.o-hero .m-productHeader{min-height:680px!important;height:92svh!important}.bo-product-gallery{height:520px;max-height:72svh}.o-hero .heroV4__contentWrapper{padding-bottom:24px}.o-hero .productHeader__description{font-size:24px!important;line-height:1.4!important}}
.main-wrapper:not(.isCategoryPage){padding-top:0!important}
.o-header.-transparencyEnabled img[alt='Inquiry list']{filter:brightness(0) invert(1)}
.versionTwo__anchor .product-card-carousel,.grid__productCard .product-card-carousel{width:100%!important;flex:1 1 100%!important}.versionTwo__anchor .a-responsiveImage img,.grid__productCard .a-responsiveImage img{padding:0!important}

.o-header.toffee-inquiry-header .o-header__primary,.o-header[data-toffee-scrolled='true'] .o-header__primary{background:#191919!important}
.o-header.toffee-inquiry-header img[alt='Inquiry list'],.o-header[data-toffee-scrolled='true'] img[alt='Inquiry list']{filter:brightness(0) invert(1)}
/* Official user-supplied artwork; preserve its ratio and original purple color. */
.o-header #header-logo{width:230px!important;height:auto!important;max-height:86px;object-fit:contain;filter:none!important}
.o-header a[data-sln-id='automation_anchor_boLogo'] p{margin:0;line-height:0}
.o-footer img[src^='/brand/']{object-fit:contain;filter:none!important}
.m-textAndIcon img[src='/brand/logo-dark.svg']{width:220px!important;height:auto!important;object-fit:contain}
@media(max-width:767px){.o-header #header-logo{width:170px!important;max-height:66px}}

/* Original video hero resumes; ambient poster fills the wide background without cropping the video. */
.o-hero[data-toffee-home-hero]{position:relative;isolation:isolate}
.toffee-video-backdrop{position:absolute;inset:-40px;background-size:cover;background-position:center;filter:blur(32px) brightness(.5);pointer-events:none;z-index:-1}
.o-hero[data-toffee-home-hero] .o-hero__bg,.o-hero[data-toffee-home-hero] .o-hero__bgVideo,.o-hero[data-toffee-home-hero] .m-videoPlayer,.o-hero[data-toffee-home-hero] .video-js,.o-hero[data-toffee-home-hero] video{background:transparent!important}
/* The AI-expanded background is a separate banner asset; catalog photography stays original. */
.o-overlayImmersive-wrapper[data-toffee-expanded-banner]{height:calc(100vw * 809 / 1942)!important;min-height:0!important}
.o-overlayImmersive-wrapper[data-toffee-expanded-banner]>.h-full,.o-overlayImmersive-wrapper[data-toffee-expanded-banner] .backgroundImageWrapper{height:100%!important;min-height:0!important}
.o-overlayImmersive-wrapper[data-toffee-expanded-banner] picture{display:contents}
.o-overlayImmersive-wrapper[data-toffee-expanded-banner] .backgroundImageWrapper{background:#474b50}
.o-overlayImmersive-wrapper[data-toffee-expanded-banner] .backgroundImageWrapper img{object-fit:cover!important;object-position:center!important}
@media(max-width:767px){.o-overlayImmersive-wrapper[data-toffee-expanded-banner]{height:90svh!important;min-height:580px!important}.o-overlayImmersive-wrapper[data-toffee-expanded-banner] .backgroundImageWrapper img{object-fit:contain!important;object-position:center 22%!important}}
.o-hero[data-toffee-home-hero] .m-heroV4{background:transparent!important}
