/* V8: centralized responsive image sizing. All photo layouts are explicitly bounded. */
:root{--page-width:1160px}
html,body{width:100%;max-width:100%;overflow-x:clip}
*,*::before,*::after{box-sizing:border-box}
.wrap{width:min(var(--page-width),calc(100% - 36px))!important;max-width:var(--page-width)!important;margin-inline:auto!important}
main,main section,main article,main div,main figure{min-width:0}
main img{display:block;max-width:100%!important;height:auto;object-fit:cover}
.services-banner{height:185px!important;min-height:185px!important;background-size:cover!important}
.services-body.wrap{display:block!important;padding-top:28px!important;padding-bottom:56px!important}
.services-side{display:none!important}
.services-main{width:100%!important;max-width:100%!important;min-width:0!important}
.featured-service{display:grid!important;grid-template-columns:minmax(0,1fr) 240px!important;align-items:center!important;gap:32px!important;padding:22px!important;border:1px solid #e7e9ed;border-radius:12px;background:#fff;margin:0 0 22px!important}
.featured-service>img{display:block!important;width:240px!important;max-width:240px!important;height:210px!important;max-height:210px!important;object-fit:cover!important;border-radius:9px}
.services-thumbnails{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;margin:0 0 28px!important;width:100%!important}
.services-thumbnails figure{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;overflow:hidden!important}
.services-thumbnails figure img{display:block!important;width:100%!important;max-width:100%!important;height:150px!important;max-height:150px!important;object-fit:cover!important;border-radius:9px!important}
.services-thumbnails figcaption{font-size:13px!important;line-height:1.4!important;margin-top:8px!important}
.service-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;width:100%!important}
.service-list article{display:flex!important;flex-direction:column!important;min-width:0!important;max-width:100%!important;width:100%!important;overflow:hidden!important;background:white!important;border:1px solid #e8e9ec!important;border-radius:10px!important;padding:0!important;margin:0!important;box-shadow:0 5px 15px #1111110a!important}
.service-list article>img{display:block!important;flex:none!important;width:100%!important;max-width:100%!important;min-width:0!important;height:170px!important;max-height:170px!important;object-fit:cover!important;border-radius:0!important}
.service-list article>div{padding:16px!important}
.service-list article h3{font-size:16px!important;line-height:1.35!important;margin:0 0 8px!important}
.service-list article p{font-size:13px!important;line-height:1.55!important;margin:0!important}
.home-projects .home-project-grid,.home-project-grid,.project-grid,.preview-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;width:100%!important}
.home-project-grid>a,.project-grid>a,.preview-grid>a{min-width:0!important;max-width:100%!important;overflow:hidden!important}
.home-project-grid img,.project-grid img,.preview-grid img{display:block!important;width:100%!important;max-width:100%!important;height:165px!important;max-height:165px!important;object-fit:cover!important}
/* Other section photographs cannot grow beyond their card. */
.detail-photo img,.service-card img,.project-card img,.compact-service-card img{max-width:100%!important;height:190px!important;max-height:190px!important;object-fit:cover!important}
@media(max-width:850px){.service-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}.services-thumbnails,.home-projects .home-project-grid,.home-project-grid,.project-grid,.preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.featured-service{grid-template-columns:minmax(0,1fr) 180px!important}.featured-service>img{width:180px!important;height:180px!important}}
@media(max-width:540px){.featured-service{grid-template-columns:1fr!important;gap:16px!important}.featured-service>img{width:100%!important;max-width:100%!important;height:185px!important;max-height:185px!important}.service-list{grid-template-columns:1fr!important}.services-thumbnails{gap:10px!important}.services-thumbnails figure img{height:105px!important;max-height:105px!important}.home-project-grid img,.project-grid img,.preview-grid img{height:120px!important;max-height:120px!important}}
