/* HGP Cinematic 1.0.15 — cinematic print gallery + editorial ending.
   Scoped to Norway & front-page. No third-party assets, fonts, or animation libraries. */

/* The closing photograph is an actual print, not a portrait stretched over a wide canvas. */
body.hgp-norway-page .hgpn-ending{background:#0a1417;min-height:0;display:block;isolation:isolate;overflow:hidden}
body.hgp-norway-page .hgpn-ending--portrait:before{display:none}
body.hgp-norway-page .hgpn-ending--portrait .hgpn-ending-layout{
 width:min(calc(100% - clamp(32px,7vw,130px)),1340px);max-width:none;
 min-height:min(820px,94svh);margin:auto;display:grid;
 grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:center;
 gap:clamp(36px,6vw,115px);padding-block:clamp(70px,8vw,125px)
}
body.hgp-norway-page .hgpn-ending--portrait .hgpn-ending-copy{position:relative;z-index:2;min-width:0;text-align:left;padding:0}
body.hgp-norway-page .hgpn-ending--portrait .hgpn-ending-photo{position:relative;inset:auto;z-index:1;width:100%;height:auto;margin:0;display:flex;flex-direction:column;align-items:center;gap:13px;min-width:0}
body.hgp-norway-page .hgpn-ending--portrait .hgpn-ending-photo img{
 width:auto!important;height:auto!important;max-width:100%!important;
 max-height:min(75svh,850px)!important;object-fit:contain!important;
 display:block;box-shadow:0 32px 90px rgba(0,0,0,.34)
}
body.hgp-norway-page .hgpn-ending-photo figcaption{width:100%;color:#aebfbb;letter-spacing:.16em;font:600 9px/1.6 Arial,sans-serif;text-align:center}
body.hgp-norway-page .hgpn-ending h2{font-size:clamp(53px,6.3vw,102px);line-height:1.02;letter-spacing:-.055em;text-wrap:balance;overflow-wrap:normal;margin:clamp(20px,3vw,43px) 0 clamp(23px,3vw,40px)}
body.hgp-norway-page .hgpn-ending h2 em{color:#dfc19b}
body.hgp-norway-page .hgpn-ending-copy>p{font-size:clamp(16px,1.4vw,20px);line-height:1.85;color:#c1ceca;max-width:470px;margin:0 0 40px}
body.hgp-norway-page .hgpn-ending-rule{display:block;width:88px;height:1px;margin-top:27px;background:linear-gradient(90deg,#dbbd91,transparent);transform-origin:left center}
body.hgp-norway-page .hgpn-ending-signature{font:600 9px/1.6 Arial,sans-serif;letter-spacing:.18em;color:#abaaa0}
body.hgp-norway-page .hgpn-ending--landscape{min-height:clamp(520px,75svh,1000px);display:grid;place-items:center}
body.hgp-norway-page .hgpn-ending--landscape .hgpn-ending-layout{width:100%;max-width:none;display:grid;place-items:center;min-height:inherit;padding:clamp(65px,8vw,110px) 24px}
body.hgp-norway-page .hgpn-ending--landscape .hgpn-ending-photo{position:absolute;inset:0;z-index:-2;margin:0}
body.hgp-norway-page .hgpn-ending--landscape .hgpn-ending-photo img{display:block;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important}
body.hgp-norway-page .hgpn-ending--landscape .hgpn-ending-photo figcaption{position:absolute;bottom:22px;right:clamp(20px,4vw,70px);width:auto;text-shadow:0 1px 7px #000}
body.hgp-norway-page .hgpn-ending--landscape:before{content:"";display:block;z-index:-1;position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,10,12,.80),rgba(4,10,12,.34) 75%),linear-gradient(0deg,rgba(4,10,12,.42),transparent 55%)}
body.hgp-norway-page .hgpn-ending--landscape .hgpn-ending-copy{position:relative;z-index:2;text-align:center;max-width:920px;padding:0}
body.hgp-norway-page .hgpn-ending--landscape .hgpn-ending-copy>p{margin-inline:auto}
body.hgp-norway-page .hgpn-ending--landscape .hgpn-ending-rule{margin-inline:auto}
/* Natural source ratio, no false matting or giant colored side frames. */
body.hgp-norway-page .hgpn-exhibit-v14{overflow:visible;margin-block:clamp(34px,5vw,80px) clamp(20px,4vw,60px);background:transparent;padding:0}
body.hgp-norway-page .hgpn-exhibit-kicker{color:#b6c3bf;border-color:rgba(209,180,143,.22)}
body.hgp-norway-page .hgpn-exhibit-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,4vw,60px);align-items:center;width:min(calc(100% - 48px),1400px);margin-inline:auto}
body.hgp-norway-page .hgpn-exhibit-print{min-width:0;max-width:none;width:100%;display:flex;align-items:center;justify-content:center}
body.hgp-norway-page .hgpn-exhibit-print:nth-child(2){transform:translateY(clamp(0px,2.3vw,38px))}
body.hgp-norway-page .hgpn-exhibit-print .hgpn-work,body.hgp-norway-page .hgpn-exhibit-lead .hgpn-work{height:auto!important;width:100%!important;max-width:100%!important}
body.hgp-norway-page .hgpn-exhibit-print a,body.hgp-norway-page .hgpn-exhibit-lead a{position:relative;display:flex;align-items:center;justify-content:center;background:transparent!important;overflow:hidden;isolation:isolate}
body.hgp-norway-page .hgpn-exhibit-print img,body.hgp-norway-page .hgpn-exhibit-lead img{width:auto!important;height:auto!important;max-width:100%!important;max-height:min(76svh,850px)!important;object-fit:contain!important;box-shadow:0 19px 50px rgba(0,0,0,.16)}
body.hgp-norway-page .hgpn-exhibit-lead{width:min(calc(100% - 48px),1160px);margin:0 auto clamp(20px,3vw,50px)}
body.hgp-norway-page .hgpn-exhibit-lead img{max-height:min(83svh,900px)!important}
body.hgp-norway-page .hgpn-exhibit-v14 .hgpn-img-shade{background:linear-gradient(0deg,rgba(3,9,11,.79),rgba(3,9,11,.03) 54%,transparent 68%);opacity:0;inset:0}
body.hgp-norway-page .hgpn-exhibit-v14 .hgpn-img-label{font-size:clamp(17px,2vw,30px);line-height:1.22;max-width:85%;left:clamp(16px,3vw,38px);bottom:clamp(16px,3vw,38px);right:auto;white-space:normal;overflow-wrap:break-word;transition:opacity .25s,transform .42s cubic-bezier(.2,.8,.3,1)}
body.hgp-norway-page .hgpn-exhibit-v14 .hgpn-work a:focus-visible{outline:2px solid #e2c9a1;outline-offset:4px}
/* Only the actual print moves; captions stay in front, not underneath the images. */
@media(hover:hover){
 body.hgp-norway-page .hgpn-exhibit-v14 .hgpn-work:is(:hover,:focus-within) img{transform:scale(1.028)!important;filter:brightness(.94)!important;transition:transform .75s cubic-bezier(.2,.78,.25,1),filter .35s!important}
 body.hgp-norway-page .hgpn-exhibit-v14 .hgpn-work:is(:hover,:focus-within) .hgpn-img-shade{opacity:1!important}
 body.hgp-norway-page .hgpn-exhibit-v14 .hgpn-work:is(:hover,:focus-within) .hgpn-img-label{opacity:1!important;transform:none!important}
}
/* Scroll to finish viewing the horizontal gallery. The section itself owns the
   scroll distance and the sticky stage — no wheel/touch event hijacking. */
body.hgp-norway-page .hgpn-exhibit-flow{position:relative;overflow:visible}
body.hgp-norway-page .hgpn-exhibit-flow-stage{position:relative;width:100%;min-width:0}
body.hgp-norway-page .hgpn-exhibit-flow.hgpn-flow-pinned{height:var(--hgpn-flow-height,155svh)}
body.hgp-norway-page .hgpn-flow-pinned .hgpn-exhibit-flow-stage{position:sticky;top:var(--hgpn-top,78px);height:calc(100svh - var(--hgpn-top,78px));display:flex;justify-content:center;flex-direction:column;gap:0;min-height:0;overflow:hidden}
body.hgp-norway-page .hgpn-exhibit-flow .hgpn-exhibit-lane{flex-shrink:0;height:clamp(270px,42svh,550px);margin:0 auto 18px;overflow:hidden}
body.hgp-norway-page .hgpn-exhibit-flow.hgpn-exhibit-two-lanes .hgpn-exhibit-lane{height:clamp(175px,31svh,350px);margin-bottom:13px}
body.hgp-norway-page .hgpn-exhibit-flow .hgpn-exhibit-track{transition:none!important;gap:clamp(16px,2vw,28px)}
body.hgp-norway-page .hgpn-exhibit-flow .hgpn-work,body.hgp-norway-page .hgpn-exhibit-flow .hgpn-work a{overflow:hidden}
body.hgp-norway-page .hgpn-exhibit-flow .hgpn-work img{width:100%!important;height:100%!important;max-width:100%!important;max-height:none!important;object-fit:contain!important;background:transparent!important}
body.hgp-norway-page .hgpn-corridor{height:var(--hgpn-corridor-height,200svh);min-height:0;overflow:visible}
body.hgp-norway-page .hgpn-corridor .hgpn-work img{max-height:calc(100svh - var(--hgpn-top) - 115px)}
body.hgp-norway-page .hgpn-corridor .hgpn-work .hgpn-img-shade{background:linear-gradient(0deg,rgba(3,9,11,.75),transparent 58%)}
body.hgp-norway-page .hgpn-chapter{background:#101c1e!important}
body.hgp-norway-page .hgpn-chapter.hgpn-pattern-1{background:#122123!important}
body.hgp-norway-page .hgpn-chapter.hgpn-pattern-2{background:#0c181b!important}
/* Give prose rhythm and a one-time fine gold line on entrance. */
body.hgp-norway-page .hgpn-chapter-title{position:relative;padding-bottom:clamp(14px,2vw,28px)}
body.hgp-norway-page .hgpn-chapter-title:after{content:"";position:absolute;bottom:0;left:0;width:clamp(58px,8vw,118px);height:1px;background:#d9bd95;transform-origin:left;transform:scaleX(.6);opacity:.7;transition:transform 1.1s ease}
body.hgp-norway-page .hgpn-chapter-intro.is-visible .hgpn-chapter-title:after{transform:scaleX(1)}
body.hgp-norway-page .hgpn-chapter-intro.is-visible .hgpn-chapter-title h2{animation:hgpn-15-type 1.05s cubic-bezier(.22,.75,.22,1) both}
@keyframes hgpn-15-type{from{opacity:.64;transform:translateY(17px);letter-spacing:-.072em}to{opacity:1;transform:none;letter-spacing:inherit}}
@media(max-width:900px){
 body.hgp-norway-page .hgpn-ending--portrait .hgpn-ending-layout{width:calc(100% - 36px);min-height:0;grid-template-columns:1fr;gap:clamp(22px,7vw,42px);padding:clamp(56px,10vw,82px) 0 clamp(65px,12vw,90px)}
 body.hgp-norway-page .hgpn-ending--portrait .hgpn-ending-copy{text-align:left}
 body.hgp-norway-page .hgpn-ending h2{font-size:clamp(53px,12vw,80px);margin:22px 0 28px;overflow-wrap:anywhere}
 body.hgp-norway-page .hgpn-ending--portrait .hgpn-ending-photo img{width:auto!important;max-height:min(66svh,690px)!important;max-width:100%!important}
 body.hgp-norway-page .hgpn-ending--portrait .hgpn-ending-photo{margin-top:0}
 body.hgp-norway-page .hgpn-ending-copy>p{font-size:16px;line-height:1.7;margin-bottom:22px}
 body.hgp-norway-page .hgpn-ending--landscape{min-height:clamp(460px,70svh,740px)}
 body.hgp-norway-page .hgpn-exhibit-v14{margin-block:28px 18px!important}
 body.hgp-norway-page .hgpn-exhibit-duo{width:calc(100% - 26px);grid-template-columns:1fr;gap:20px}
 body.hgp-norway-page .hgpn-exhibit-print:nth-child(2){transform:none}
 body.hgp-norway-page .hgpn-exhibit-print img{max-height:68svh!important}
 body.hgp-norway-page .hgpn-exhibit-lead{width:calc(100% - 26px);margin-bottom:16px}
 body.hgp-norway-page .hgpn-exhibit-lead img{max-height:76svh!important}
 body.hgp-norway-page .hgpn-exhibit-flow.hgpn-flow-pinned{height:auto!important}
 body.hgp-norway-page .hgpn-exhibit-flow-stage,body.hgp-norway-page .hgpn-flow-pinned .hgpn-exhibit-flow-stage{position:relative;top:auto;height:auto;display:block;overflow:visible}
 body.hgp-norway-page .hgpn-exhibit-flow .hgpn-exhibit-lane,body.hgp-norway-page .hgpn-exhibit-flow.hgpn-exhibit-two-lanes .hgpn-exhibit-lane{height:clamp(220px,68vw,400px);overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;margin-bottom:13px;scrollbar-width:none}
 body.hgp-norway-page .hgpn-exhibit-flow .hgpn-exhibit-track{transform:none!important;gap:12px}
 body.hgp-norway-page .hgpn-exhibit-flow .hgpn-work{scroll-snap-align:center}
 body.hgp-norway-page .hgpn-corridor{height:auto!important;min-height:0}
 body.hgp-norway-page .hgpn-exhibit-v14 .hgpn-img-label{font-size:clamp(14px,3.9vw,18px)!important;max-width:calc(100% - 32px);left:16px;bottom:14px}
}
@media(hover:none){
 body.hgp-norway-page .hgpn-exhibit-v14 .hgpn-img-label{opacity:1!important;transform:none!important}
 body.hgp-norway-page .hgpn-exhibit-v14 .hgpn-img-shade{opacity:.45!important}
}
@media(prefers-reduced-motion:reduce){
 body.hgp-norway-page .hgpn-exhibit-flow.hgpn-flow-pinned{height:auto!important}
 body.hgp-norway-page .hgpn-flow-pinned .hgpn-exhibit-flow-stage{position:relative!important;top:auto!important;height:auto!important;display:block}
 body.hgp-norway-page .hgpn-exhibit-flow .hgpn-exhibit-lane{overflow-x:auto;scroll-snap-type:x proximity}
 body.hgp-norway-page .hgpn-exhibit-track{transform:none!important}
 body.hgp-norway-page .hgpn-chapter-intro.is-visible .hgpn-chapter-title h2{animation:none!important}
}
/* Homepage: keep portraits complete within their cinematic scene and make sections
   less empty on mobile. No new assets, requests or global JS. */
@media(max-width:600px){
 body.home .hgp-scenes{height:215svh!important}
 body.home .hgp-journey-portal{height:145svh!important}
 body.home .hgp-moment-section{height:135svh!important}
 body.home .hgp-scenes-panel.has-image .hgp-scenes-photo{object-fit:contain!important;object-position:center!important}
 body.home .hgp-journey-portal-frame.has-image .hgp-journey-portal-photo{object-fit:contain!important;object-position:center!important}
}
