*{box-sizing:border-box}body{margin:0;background:#f7f7fb;color:#222456;font:16px/1.5 system-ui,sans-serif} [hidden]{display:none!important} header{position:absolute;z-index:3;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:16px clamp(16px,5vw,70px);pointer-events:none}header>*{pointer-events:auto;background:#fff;padding:8px;border-radius:6px}header img{width:112px}a{color:inherit}.hero,.gallery{position:relative;min-height:100vh;min-height:100svh;isolation:isolate;overflow:hidden;background:#222456;color:#fff;display:flex;align-items:end}.hero>img,.photo,.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero:after,.gallery:after{content:'';position:absolute;z-index:1;inset:auto 0 0;height:25%;pointer-events:none;background:linear-gradient(to top,#423f9f,rgba(66,63,159,0))}.hero>div,.caption{position:relative;z-index:2;width:100%;padding:clamp(14px,4vw,52px);text-shadow:0 2px 8px #171941}h1{font-size:clamp(34px,7vw,100px);line-height:1.02;margin:.1em 0}.hero p{margin:.25em 0}nav{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}nav a,.next{background:#e6e2f4;color:#222456;padding:5px 11px;border-radius:24px;text-decoration:none;text-shadow:none}.scope>h2,.next{margin:16px}.gallery+.gallery{border-top:4px solid #f7f7fb}.caption{pointer-events:none}.caption h2{margin:0;font-size:clamp(25px,5vw,64px);line-height:1.12}.photo{border:0;padding:0;cursor:zoom-in;background:none}.previous,.forward,.pause{position:absolute;z-index:2;border:0;background:#222456e6;color:white;cursor:pointer;padding:10px 15px;border-radius:24px}.previous,.forward{top:50%;transform:translateY(-50%);font-size:20px}.previous{left:12px}.forward,.pause{right:12px}.pause{top:12px}.next{display:inline-block}dialog{background:#141632;color:white;border:0;text-align:center;width:min(1000px,94vw)}dialog::backdrop{background:#111d}dialog img{width:100%;height:72vh;object-fit:contain}dialog button{cursor:pointer;padding:4px 14px;margin:5px}#close{display:block;margin-left:auto}@media(max-width:580px){nav a{font-size:12px}.hero>div,.caption{padding:14px}.hero p{font-size:13px}}
.hero header{background:transparent}.hero header>*{background:none;color:white;padding:0;text-shadow:0 2px 6px #222456}.hero header img{width:112px}.hero nav a{background:#222456aa;border:1px solid #ffffff80;color:white}.hero nav a:hover,.hero nav a:focus-visible{background:#fff;color:#222456}
html{scroll-snap-type:y mandatory;scroll-behavior:smooth}.hero,.gallery,.next{scroll-snap-align:start;scroll-snap-stop:always}.photo{opacity:0;pointer-events:none;transition:opacity .8s ease-in-out}.photo.active{opacity:1;pointer-events:auto}.photo img{transform:scale(1.025);transition:transform .85s ease-out}.photo.active img{transform:scale(1)}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.photo,.photo img{transition:none}}
.contractor strong{display:block;font-size:clamp(22px,3.5vw,52px);line-height:1.1}.caption .credit{margin:.4em 0;font-size:clamp(15px,1.8vw,24px);font-weight:600}

.photo{transition:opacity 1.15s ease-in-out}
.photo img,.photo.active img{transform:none;transition:none}
@media(min-width:900px){
  .photo{display:grid;place-items:center}
  .photo img{position:static;width:auto;height:auto;max-width:100%;max-height:100svh;object-fit:contain}
  dialog{width:min(1500px,96vw)}
  dialog img{width:auto;height:auto;max-width:100%;max-height:82vh}
}
@media(prefers-reduced-motion:reduce){.photo,.photo img{transition:none;transform:none}}


/* Start the zoom at full coverage so the frame stays filled. */
.hero>img,.photo img{object-fit:cover}
.photo{padding:0}
.photo img,.photo.active img{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;transform:scale(1);transition:transform 1.15s ease-in-out}
.photo.active img{transform:scale(1.035)}
@media(prefers-reduced-motion:reduce){.photo img,.photo.active img{transform:none;transition:none}}
