/* Named important layer owns the presentation viewport above legacy unlayered rules. */
@layer clh-atlas-viewport {
html[data-site-photos="atlas"],html[data-site-photos="atlas"] body { overflow:hidden!important; background:#f3f5fa!important; }
html[data-site-photos="atlas"] body .app,
html[data-site-photos="atlas"] body .workspace,
html[data-site-photos="atlas"] body .map-stage[data-grid-shell] {
 position:fixed!important; inset:0!important; display:block!important; width:100%!important; height:100%!important;
 min-width:0!important; min-height:0!important; max-width:none!important; max-height:none!important;
 margin:0!important; padding:0!important; border:0!important; transform:none!important; contain:none!important;
}
html[data-site-photos="atlas"] body #map {
 position:absolute!important; inset:0!important; width:100%!important; height:100%!important; margin:0!important; border-radius:0!important;
}
html[data-site-photos="atlas"] body .header,
html[data-site-photos="atlas"] body #sidebar,
html[data-site-photos="atlas"] body #profile,
html[data-site-photos="atlas"] body .map-stage > :not(#map),
html[data-site-photos="atlas"] body .grid-condition-float,
html[data-site-photos="atlas"] body .grid-panel-slot,
html[data-site-photos="atlas"] body .grid-panel-restore,
html[data-site-photos="atlas"] body .view-options,
html[data-site-photos="atlas"] body .mobile-map-controls-bar,
html[data-site-photos="atlas"] body .mobile-header-controls-bar,
html[data-site-photos="atlas"] body .outage-overlay-control,
html[data-site-photos="atlas"] body .mobile-grid-status-toolbar,
html[data-site-photos="atlas"] body .mobile-v3-toolbar,
html[data-site-photos="atlas"] body .mapboxgl-ctrl-group,
html[data-site-photos="atlas"] body .mapboxgl-marker,
html[data-site-photos="atlas"] body .mapboxgl-popup { display:none!important; }
}
html[data-site-photos="atlas"] #map canvas { filter:saturate(.46) brightness(1.13); }
#clh-photo-atlas { position:fixed; inset:0; z-index:10000; overflow:hidden; pointer-events:none; isolation:isolate; }
#clh-photo-atlas[hidden],#clh-photo-viewer:not([open]) { display:none!important; }
#clh-photo-atlas .site-photo-world { position:absolute; left:0; top:0; transform-origin:0 0; will-change:transform; opacity:0; transition:opacity .22s ease; }
#clh-photo-atlas.is-ready .site-photo-world { opacity:1; }
#clh-photo-atlas .site-photo-mode-lines { position:absolute; inset:0; overflow:visible; pointer-events:none; }
#clh-photo-atlas .site-photo-mode-lines path { fill:none; stroke:#496482; stroke-width:1.15; stroke-opacity:.68; vector-effect:non-scaling-stroke; }
#clh-photo-atlas .site-photo-mode-lines circle { fill:#f4ba27; stroke:#062354; stroke-width:1; vector-effect:non-scaling-stroke; }
#clh-photo-atlas .site-photo-card {
 all:unset; box-sizing:border-box; position:absolute; display:block; overflow:hidden; border-radius:3px;
 outline:2px solid #062354; background:#062457;
 box-shadow:0 3px 14px rgba(4,30,74,.17),0 1px 3px rgba(4,30,74,.14);
 cursor:grab; pointer-events:auto; touch-action:none; user-select:none;
}
#clh-photo-atlas .site-photo-card:active { cursor:grabbing; }
#clh-photo-atlas .site-photo-card.is-dragging { z-index:50; cursor:grabbing; box-shadow:0 9px 28px rgba(4,30,74,.30),0 2px 6px rgba(4,30,74,.20); }
#clh-photo-atlas .site-photo-card.is-resizing { cursor:nwse-resize; box-shadow:0 9px 28px rgba(4,30,74,.30),0 2px 6px rgba(4,30,74,.20); }
#clh-photo-atlas .site-photo-resize-handle {
 position:absolute; right:2px; bottom:2px; width:18px; height:18px; z-index:3; border-radius:2px;
 cursor:nwse-resize; pointer-events:auto; touch-action:none;
 background:linear-gradient(135deg,transparent 0 46%,#f4ba27 47% 55%,transparent 56% 65%,#f4ba27 66% 74%,transparent 75%);
 filter:drop-shadow(0 0 1px rgba(6,35,84,.7)); opacity:.72;
}
#clh-photo-atlas .site-photo-card:hover .site-photo-resize-handle,
#clh-photo-atlas .site-photo-card:focus-visible .site-photo-resize-handle,
#clh-photo-atlas .site-photo-card.is-resizing .site-photo-resize-handle { opacity:1; }
#clh-photo-atlas .site-photo-card img { display:block!important; position:static!important; width:100%!important; height:100%!important; object-fit:contain!important; padding:0!important; margin:0!important; border:0!important; border-radius:0!important; pointer-events:none; }
#clh-photo-atlas .site-photo-card.is-photo-focus,#clh-photo-atlas .site-photo-card:focus-visible { outline:2px solid #062354; box-shadow:0 0 0 2px #f4ba27,0 5px 20px rgba(4,30,74,.26); }
#clh-photo-atlas.has-photo-focus path { stroke-opacity:.33; }
#clh-photo-atlas path.is-photo-focus { stroke:#00205c; stroke-opacity:1; stroke-width:1.65; }
#clh-photo-atlas circle.is-photo-focus { stroke-width:2; }
#clh-photo-atlas .site-photo-mode-logo {
 all:unset; box-sizing:border-box; position:absolute; left:22px; top:22px; width:215px; padding:8px 10px;
 background:rgba(255,255,255,.97); border-radius:5px; box-shadow:0 2px 10px rgba(0,32,92,.09);
 pointer-events:auto; cursor:pointer;
}
#clh-photo-atlas .site-photo-mode-logo img { display:block; width:100%; height:auto; }
#clh-photo-atlas .site-photo-mode-logo:focus-visible { outline:2px solid #f4ba27; outline-offset:3px; }
#clh-photo-atlas .site-photo-mode-exit {
 all:unset; box-sizing:border-box; position:absolute; top:22px; right:22px; min-width:78px; height:42px; padding:0 14px 0 11px;
 display:flex; align-items:center; justify-content:center; gap:7px; background:rgba(255,255,255,.97); color:#00205c;
 border:1px solid rgba(0,32,92,.16); border-radius:999px; box-shadow:0 2px 10px rgba(0,32,92,.12);
 font:700 13px/1 "Noto Sans",sans-serif; letter-spacing:.01em; pointer-events:auto; cursor:pointer;
}
#clh-photo-atlas .site-photo-mode-exit:hover { background:#fff; box-shadow:0 4px 14px rgba(0,32,92,.17); }
#clh-photo-atlas .site-photo-mode-exit:focus-visible { outline:2px solid #f4ba27; outline-offset:3px; }
#clh-photo-atlas .site-photo-mode-exit-mark { font:400 24px/1 "Noto Sans",sans-serif; margin-top:-2px; }
#clh-photo-viewer {
 box-sizing:border-box; position:fixed; inset:0; margin:auto; border:0; padding:0;
 background:transparent; overflow:visible; width:min(94vw,1700px); max-width:94vw; height:90dvh; max-height:90dvh;
}
#clh-photo-viewer::backdrop { background:rgba(1,15,43,.90); backdrop-filter:blur(5px); }
#clh-photo-viewer > img { display:block; width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 8px 30px rgba(0,0,0,.24)); }
.site-photo-viewer-close { position:fixed; top:14px; right:16px; width:44px; height:44px; border:1px solid rgba(255,255,255,.4); border-radius:50%; background:#fff; color:#00205c; font:28px/1 sans-serif; cursor:pointer; }
.site-photo-option { font-weight:700; }
.site-photo-option input { accent-color:#00205c; }
@media(max-width:600px){
 #clh-photo-atlas .site-photo-mode-logo { left:12px; top:12px; width:155px; padding:6px 8px; }
 #clh-photo-atlas .site-photo-mode-exit { top:12px; right:12px; min-width:70px; height:38px; padding:0 12px 0 9px; gap:6px; font-size:12px; }
 #clh-photo-atlas .site-photo-card { outline-width:1.5px; box-shadow:0 2px 7px rgba(4,30,74,.16); }
 #clh-photo-viewer { width:96vw; max-width:96vw; height:90dvh; }
}
@media(prefers-reduced-motion:reduce){#clh-photo-atlas .site-photo-world{transition:none;}}
