/* Shared reading width and real mobile gutters. Full-bleed backgrounds remain. */
/* Archive headings use normal document flow, without decorative brand captions. */
html body:is(.page-id-251,.page-id-249) #wrapper #main .sp-page-list-wrapper{padding-top:12px!important;padding-bottom:32px!important}
html body:is(.page-id-251,.page-id-249) #wrapper #main .bl-archive-layout{padding-top:0!important;padding-bottom:24px!important;margin-top:8px!important}
html body:is(.page-id-251,.page-id-249) #wrapper #main .static-page-header-banner{height:auto!important;min-height:0!important;padding:32px 24px 12px!important;display:block!important;background:none!important;text-align:left!important}
html body:is(.page-id-251,.page-id-249) #wrapper #main .static-page-header-banner::before,html body:is(.page-id-251,.page-id-249) #wrapper #main .static-page-header-banner::after,html body:is(.page-id-251,.page-id-249) #wrapper #main .static-page-header-banner h1::before,html body:is(.page-id-251,.page-id-249) #wrapper #main .static-page-header-banner h1::after{content:none!important;display:none!important}
html body:is(.page-id-251,.page-id-249) #wrapper #main .static-page-header-banner h1{position:static!important;transform:none!important;inset:auto!important;margin:0!important;padding:0!important;font-size:clamp(30px,3.2vw,44px)!important;line-height:1.25!important;white-space:normal!important}
html body.page-id-249 #wrapper #main .bl-filter-sidebar{padding:20px!important;align-self:start!important}
html body.page-id-249 #wrapper #main .bl-filter-sidebar p{margin:0 0 14px!important}
html body.page-id-249 #wrapper #main .bl-filter-form{gap:12px!important;margin:0!important}
html body.page-id-249 #wrapper #main .bl-filter-form label{margin:0!important;gap:6px!important}
html body.page-id-249 #wrapper #main .bl-filter-form select{margin:0!important;height:44px!important;min-height:44px!important}
html body.page-id-249 #wrapper #main .bl-filter-form :is(button,a){margin:0!important;min-height:44px!important}
@media(max-width:767px){html body:is(.page-id-251,.page-id-249) #wrapper #main .static-page-header-banner{padding:24px 0 8px!important}html body.page-id-249 #wrapper #main .bl-filter-sidebar{padding:18px!important}}
:root{--bl-container:1280px!important;--bl-layout-width:1280px;--bl-layout-gutter:24px}
html body #wrapper #main :is(.container,.row){max-width:var(--bl-layout-width)!important;box-sizing:border-box}
html body #wrapper #main :is(.bl-archive-layout,.single-sp-wrapper,.static-page-header-banner,.bl-data-panel){max-width:var(--bl-layout-width)!important;box-sizing:border-box;margin-inline:auto!important}
html body #wrapper #main .bl-home-hero__inner{max-width:1232px!important;margin-inline:auto!important;width:100%}
html body.home #wrapper #main :is(.hp-featured-projects-section,.products-tab-section,.hp-investors-section,.hp-news-section,.hp-kdc-section)>.row{width:100%!important;max-width:1280px!important;margin-inline:auto!important;padding-left:24px!important;padding-right:24px!important;box-sizing:border-box}
html body.home #wrapper #main :is(.bl-cms-value,.bl-cms-pillars){max-width:1280px!important;padding-inline:24px!important;box-sizing:border-box}
html body #wrapper #main .pv2 :is(.pv2-hero,.pv2-body){max-width:1280px!important;margin-inline:auto!important;box-sizing:border-box}
html body #wrapper #main .pv2 .pv2-body{padding-inline:24px!important}
html body #wrapper #main .pv2 .pv2-nav{padding-inline:max(24px,calc((100% - 1232px)/2))!important}
html body #wrapper #main .entry-content{overflow-wrap:break-word}
html body.single-post #wrapper #main .entry-content{max-width:760px;margin-inline:auto}
html body:is(.page-id-92,.page-id-702,.page-id-745,.page-id-815) #wrapper #main #content{max-width:808px!important;width:100%!important;padding:32px 24px!important;margin-inline:auto!important;box-sizing:border-box;overflow-wrap:anywhere}
html body.single-project #wrapper #main li.flex>span{min-width:0;overflow-wrap:anywhere}
html body #wrapper #main :is(input,select,textarea,iframe,video){max-width:100%}
/* Legacy project-image-box has an oversized fixed width. */
html body.home #wrapper #main #bl-home-projects .project-image-box{position:relative!important;width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:4/3;padding:0!important;overflow:hidden}
html body.home #wrapper #main #bl-home-projects .project-image-box img{position:absolute!important;inset:0!important;width:100%!important;max-width:100%!important;height:100%!important;object-fit:cover!important}
html body #wrapper #main .project-item .project-image-box{position:relative!important;width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:4/3;padding:0!important;overflow:hidden}
html body #wrapper #main .project-item .project-image-box img{position:absolute!important;inset:0!important;width:100%!important;max-width:100%!important;height:100%!important;object-fit:cover!important}
/* Detail galleries: identical preview frames; full-size lightbox remains untouched. */
html body #wrapper #main .sp-gallery-container .sp-gallery-main-image{position:relative!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:4/3!important;padding:0!important;overflow:hidden}
html body #wrapper #main .sp-gallery-container .sp-gallery-main-image>img{position:absolute!important;inset:0!important;width:100%!important;max-width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
html body #wrapper #main .sp-gallery-container .sp-gallery-thumbnails .sp-thumb-item{width:120px!important;min-width:0!important;height:auto!important;flex:0 0 120px!important;aspect-ratio:4/3!important;padding:0!important;overflow:hidden}
html body #wrapper #main .sp-gallery-container .sp-gallery-thumbnails .sp-thumb-item img{display:block!important;width:100%!important;height:100%!important;aspect-ratio:4/3!important;object-fit:cover!important;object-position:center!important}
@media(max-width:849px){
 :root{--bl-layout-gutter:20px}
 html body #wrapper #main>.row,html body #wrapper #main #content>.row,html body #wrapper #main .section-content>.row{width:100%!important;margin-inline:auto!important;padding-inline:20px!important}
 html body.home #wrapper #main :is(.hp-featured-projects-section,.products-tab-section,.hp-investors-section,.hp-news-section,.hp-kdc-section)>.row{padding-inline:20px!important}
 html body #wrapper #main :is(.bl-archive-layout,.single-sp-wrapper){width:100%!important;padding-left:20px!important;padding-right:20px!important;min-width:0}
 html body #wrapper #main .static-page-header-banner{width:calc(100% - 40px)!important}
 html body #wrapper #main .pv2 .pv2-hero{width:calc(100% - 40px)!important}
 html body #wrapper #main .pv2 .pv2-hero-copy{padding-left:0!important;padding-right:0!important}
 html body #wrapper #main .pv2 .pv2-body{padding-inline:20px!important;width:100%!important}
 html body #wrapper #main :is(.bl-cms-value,.bl-cms-pillars){padding-inline:20px!important}
 html body #wrapper #main :is(.bl-project-grid,.bl-results-grid,.sp-content,.sp-info-left,.sp-info-right){min-width:0;max-width:100%}
 html body #wrapper #main .entry-content :is(table,pre){max-width:100%;overflow-x:auto;display:block}
 html body:is(.page-id-92,.page-id-702,.page-id-745,.page-id-815) #wrapper #main #content{padding:28px 20px!important}
 html body #wrapper #main .filter-item .expanded-value{width:min(340px,calc(100vw - 40px))!important;max-width:calc(100vw - 40px)!important;left:0!important;right:auto!important;box-sizing:border-box}
 html body #wrapper #main .filter-item :is(.check-input-f,.bar-submit){width:100%!important;box-sizing:border-box}
 html body #wrapper #main .filter-item .expanded-value p{width:100%!important;box-sizing:border-box}
 html body #wrapper #main .filter-box-type{position:relative!important}
 html body #wrapper #main .filter-box-type>.filter-item{position:static!important}
}
