
/* Bildeside – selvstendig tillegg; øvrige sider påvirkes ikke */
.gallery-intro {padding-bottom:70px}
.gallery-highlight{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);margin-top:42px;background:white;border:1px solid var(--line);overflow:hidden}
.gallery-highlight-photo{display:block;padding:0;border:0;cursor:zoom-in;background:#e8eeed;min-height:380px}
.gallery-highlight-photo img{width:100%;height:100%;min-height:380px;object-fit:cover}
.gallery-highlight-copy{padding:clamp(28px,5vw,60px);align-self:center}.gallery-highlight-copy h3{font-size:clamp(1.8rem,3vw,2.9rem)}.gallery-highlight-copy p{margin-bottom:25px}
.gallery-plan-section{background:#e8eef0}.gallery-plans{display:grid;grid-template-columns:1fr 1fr;gap:23px;margin:36px 0 16px}.gallery-plan{padding:0;background:white;border:1px solid var(--line);text-align:left;cursor:zoom-in;border-radius:5px;overflow:hidden;color:var(--text);font:inherit}.gallery-plan img{width:100%;height:300px;object-fit:contain;padding:14px;background:#fafaf9}.gallery-plan span{display:block;padding:19px 23px 23px}.gallery-plan strong{display:block;font-size:1.05rem;color:var(--ink)}.gallery-plan small{display:block;font-size:.85rem;color:#64757b;margin-top:5px}.gallery-caveat{font-size:.86rem;color:#64757b;max-width:850px;margin-top:25px}
.gallery-filters{display:flex;flex-wrap:wrap;gap:10px;margin:36px 0 25px}.gallery-filters button{width:auto;cursor:pointer;background:#fff;border:1px solid #cdd9dd;color:#4d636c;padding:9px 16px;border-radius:4px;font:600 .88rem inherit;font-family:inherit;font-size:.88rem;font-weight:650}.gallery-filters button.is-active,.gallery-filters button:hover{background:var(--pine);color:white;border-color:var(--pine)}
.gallery-v2-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.gallery-item{padding:0;border:1px solid var(--line);border-radius:4px;background:#fff;cursor:zoom-in;text-align:left;overflow:hidden;color:var(--text);font:inherit}.gallery-item img{width:100%;aspect-ratio:7/5;height:auto;object-fit:cover;transition:transform .22s ease}.gallery-item:hover img{transform:scale(1.035)}.gallery-item span{display:block;padding:13px 17px 16px;line-height:1.45;font-size:.88rem}.gallery-item[hidden]{display:none}
.gallery-cta{margin-top:50px;padding:30px 36px;background:#e7edef;display:flex;align-items:center;justify-content:space-between;gap:20px}.gallery-cta h3{margin:0 0 5px}.gallery-cta p{margin:0}
.gallery-modal{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;padding:24px}.gallery-modal[aria-hidden="false"]{display:flex}.gallery-modal-backdrop{position:absolute;inset:0;background:rgba(10,22,27,.91)}.gallery-modal-panel{position:relative;z-index:1;max-width:min(96vw,1450px);max-height:94vh;display:flex;flex-direction:column;align-items:center}.gallery-modal-panel img{display:block;max-width:100%;max-height:calc(94vh - 68px);width:auto;height:auto;object-fit:contain;background:#fff}.gallery-modal-panel p{color:#fff;text-align:center;margin:10px 48px 0;font-size:.92rem}.gallery-modal-close{position:absolute;right:0;top:-47px;border:0;background:transparent;color:white;font-size:38px;cursor:pointer;line-height:1;width:44px;height:44px}
.gallery-item:focus-visible,.gallery-plan:focus-visible,.gallery-highlight-photo:focus-visible,.gallery-filters button:focus-visible,.gallery-modal-close:focus-visible{outline:3px solid #1d718e;outline-offset:3px}
@media(max-width:850px){.gallery-highlight{grid-template-columns:1fr}.gallery-highlight-photo,.gallery-highlight-photo img{min-height:260px}.gallery-v2-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-cta{flex-direction:column;align-items:start}}
@media(max-width:580px){.gallery-plans,.gallery-v2-grid{grid-template-columns:1fr}.gallery-plan img{height:260px}.gallery-cta{padding:24px}.gallery-filters button{font-size:.82rem;padding:9px 12px}}
@media(prefers-reduced-motion:reduce){.gallery-item img{transition:none}}

/* Oppdatert planløsning og bekreftede fasiliteter */
.plan-selector{margin:30px 0 22px}.plan-tabs{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:14px}.plan-tabs button{border:1px solid #9db4bd;background:white;color:#28404a;font:600 15px inherit;font-family:inherit;padding:10px 17px;border-radius:5px;cursor:pointer}.plan-tabs button[aria-selected="true"]{background:#345862;color:white;border-color:#345862}.plan-tabs button:focus-visible{outline:3px solid #357a91;outline-offset:2px}.plan-stage{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(220px,.7fr);align-items:center;background:white;border:1px solid #cad7dc;padding:12px;gap:22px}.plan-stage img{width:100%;height:auto;max-height:620px;object-fit:contain}.plan-stage-copy{padding:24px}.plan-stage-copy h3{font-size:1.4rem;margin:0 0 10px}.plan-stage-copy a{color:#345862;font-weight:700}.gallery-facts{background:#fff}.gallery-factgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:32px 0}.gallery-factgrid>div{padding:22px 20px;background:#eaf0f1;border:1px solid #dde5e7}.gallery-factgrid strong{display:block;font-size:1.4rem;color:#274851;margin-bottom:10px}.gallery-factgrid span{font-size:.9rem;line-height:1.5}.gallery-facilitygrid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.gallery-facilitygrid article{padding:22px 26px;border-left:4px solid #64848a;background:#f7f9f9}.gallery-facilitygrid h3{margin:0 0 7px}.gallery-facilitygrid p{margin:0}@media(max-width:850px){.gallery-factgrid{grid-template-columns:repeat(2,1fr)}.plan-stage{grid-template-columns:1fr}.plan-stage-copy{padding:8px 18px 24px}.gallery-facilitygrid{grid-template-columns:1fr}}@media(max-width:580px){.gallery-factgrid{grid-template-columns:1fr 1fr}.gallery-factgrid strong{font-size:1.1rem}.gallery-factgrid>div{padding:15px}.plan-tabs button{font-size:.85rem;padding:9px 12px}}

.plan-stage-count{display:inline-block;background:#e8f0ed;color:#294b48;border-left:3px solid #597d75;padding:9px 12px;margin:8px 0 16px;font-weight:700}.plan-stage-count[hidden]{display:none}

/* Plantegning: separat lenke og klikkbart bilde */
.plan-stage-count{display:block;width:max-content;max-width:100%;margin:16px 0 18px;}
.plan-stage-copy #plan-stage-open{display:block;width:max-content;max-width:100%;line-height:1.5;margin-top:12px;}
.plan-stage-image-link{display:block;cursor:zoom-in;line-height:0;}
.plan-stage-image-link img{display:block;}
.plan-stage-image-link:focus-visible{outline:3px solid #357a91;outline-offset:3px;}
