/* IMS usability repairs: existing logo variants, bounded navigation, compact interior banners. */
#HeaderS2.dk-bg .dk-lg { display:block!important; }
#HeaderS2.dk-bg .lt-lg { display:none!important; }
#FooterS1.lt-bg .dk-lg { display:none!important; }
#FooterS1.lt-bg .lt-lg { display:block!important; }
@media (min-width:1280px) {
 #HeaderS2TopNav > li:last-child > .fly-nv { left:auto!important; right:0!important; }
}
#BannerS1 { padding-block:48px!important; }
#BannerS1 .flr_hd { display:none; }
#BannerS1Text > strong:first-child { font-size:clamp(1.8rem,3vw,3rem); line-height:1.15; }
#BannerS1Text > strong + strong { font-size:clamp(1rem,1.4vw,1.4rem); line-height:1.4; margin-top:12px!important; }
#BannerS1Button > div { margin-top:24px!important; }
@media (max-width:700px) {
 #BannerS1 { padding-block:32px!important; }
}

/* Bring content and project photography closer to the first screen. */
#BannerS1 + #TwoColumnLayout { padding-top:64px!important; }
#MainstageV1 .inf { padding-top:64px!important; padding-bottom:32px!important; }
#MainstageV1 > .mn_wd > .ofs-hlf { padding-block:32px!important; }
@media(min-width:1280px) {
 #MainstageV1 .img1 { max-width:480px; margin-left:auto; }
 #MainstageV1 .img2 { max-width:250px; margin-top:-180px; }
}
html:has(link[rel="canonical"][href="https://www.imsva.com/equipment/lutron-lighting-shades/"]) #BannerS1 { display:none!important; }

/* Load from the shared header to apply these rules before page content paints. */
#HeaderS2 a.tp-lg > img { width:100%; height:auto; aspect-ratio:34/13; }
html:has(link[rel="canonical"][href="https://www.imsva.com/custom-av/custom-theaters/"]) #BannerS1 { display:none!important; }
html:has(link[rel="canonical"][href="https://www.imsva.com/custom-av/custom-theaters/"]) #TwoColumnLayout { padding-top:64px!important; }
@media(max-width:700px) {
 html:has(link[rel="canonical"][href="https://www.imsva.com/custom-av/custom-theaters/"]) #TwoColumnLayout { padding-top:32px!important; }
}

/* New lighting and outdoor brand pages use their own logo and H1, without a duplicate banner. */
html:has(link[rel="canonical"][href="https://www.imsva.com/equipment/wac-aispire-lighting/"]) #BannerS1,
html:has(link[rel="canonical"][href="https://www.imsva.com/equipment/coastal-source/"]) #BannerS1,
html:has(link[rel="canonical"][href="https://www.imsva.com/equipment/wac-aispire-lighting/"]) #FiveStackAwardsV1,
html:has(link[rel="canonical"][href="https://www.imsva.com/equipment/coastal-source/"]) #FiveStackAwardsV1 { display:none!important; }
