
/* 2026-10-08: harmonisert logo og prosjektgallerier */
.site-header{min-height:72px;height:72px;display:flex;align-items:center;gap:24px}
.site-header .brand,.site-header .brand-link{display:flex!important;align-items:center;justify-content:flex-start;flex:0 0 98px;width:98px!important;max-width:98px!important;height:54px!important;overflow:hidden;padding:0!important;margin:0!important}
.site-header .brand img,.site-header .brand-link img,.site-header img.logo{display:block!important;width:98px!important;max-width:98px!important;height:auto!important;max-height:50px!important;object-fit:contain!important;object-position:left center!important}
.site-header nav{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
.project-detail .project-hero-img{width:min(100% - 10vw,1180px);height:clamp(360px,56vw,610px);max-height:none;margin:0 auto;object-fit:cover;object-position:center}
.project-detail .gallery-wrap{max-width:1180px;padding:26px 0 75px;margin:0 auto;width:90%}
.project-detail .page-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.project-detail .page-gallery figure{margin:0;min-width:0}
.project-detail .page-gallery figure img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;display:block}
.project-detail .page-gallery figcaption{padding:9px 0 5px;min-height:24px;font-size:12px;color:#626262}
.project-detail .detail-intro{padding:42px 5vw 16px;max-width:1060px}
.project-detail .subhero{padding:64px 5vw 44px}
.project-detail .subhero h1{font-size:clamp(44px,5.2vw,72px)}
@media(max-width:850px){.site-header{height:68px;min-height:68px}.site-header .brand,.site-header .brand-link{flex-basis:86px;width:86px!important;max-width:86px!important}.site-header .brand img,.site-header .brand-link img,.site-header img.logo{width:86px!important;max-width:86px!important}.project-detail .page-gallery{grid-template-columns:1fr;gap:20px}.project-detail .project-hero-img{width:100%;height:55vw;min-height:260px}.project-detail .gallery-wrap{width:90%}}

/* v4: tett, regelmessig fotogalleri uten hull */
.project-detail .gallery-wrap{width:min(90%,1180px);padding:20px 0 42px}
.project-detail .page-gallery{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;align-items:stretch!important;grid-auto-flow:row dense!important}
.project-detail .page-gallery figure{display:flex!important;flex-direction:column!important;margin:0!important;min-width:0!important;align-self:stretch!important}
.project-detail .page-gallery figure img{display:block!important;width:100%!important;height:auto!important;aspect-ratio:4/3!important;object-fit:cover!important;object-position:center!important}
.project-detail .page-gallery figure figcaption{margin:0!important;padding:7px 0 10px!important;min-height:0!important}
.project-detail .page-gallery figure:last-child:nth-child(odd){grid-column:1/-1;max-width:calc(50% - 7px);justify-self:center;width:100%}
.project-detail .project-hero-img{display:block!important;width:min(90%,1180px)!important;height:auto!important;aspect-ratio:16/9!important;object-fit:cover!important;margin:0 auto!important}
@media(max-width:850px){.project-detail .page-gallery{grid-template-columns:1fr!important}.project-detail .page-gallery figure:last-child:nth-child(odd){grid-column:auto;max-width:none}.project-detail .project-hero-img{width:100%!important;aspect-ratio:4/3!important}}
