/* Header and share styling copied from Israel Workplan's StoryCards header, scoped to this project. */
:root{--header-height:100px;--visible-view:calc(100dvh - var(--header-height))}
body{padding-top:var(--header-height)}
html{scroll-padding-top:var(--header-height)}
.project-nav{position:fixed;inset:0 0 auto;z-index:50;height:var(--header-height);background:#0b1216;color:#fff6e8}
.project-nav .nav-inner{width:100%;max-width:1152px;height:100%;padding-inline:20px;margin-inline:auto;display:flex;direction:ltr;justify-content:space-between;align-items:center;gap:12px}
.project-nav .nav-actions{display:flex;direction:ltr;align-items:center;gap:10px}
.project-nav .brand{display:flex;flex:none;width:97px;height:36px;line-height:0}
.project-nav .brand img{display:block;width:100%;height:100%;object-fit:contain}
.project-nav button{font:800 16px 'Noto Sans Hebrew',sans-serif;cursor:pointer;flex-shrink:0}
.project-nav .topics-toggle{height:44px;padding:8px 18px;border:1px solid #ff6845;border-radius:24px;background:#ff6845;color:#fff9ee}
.project-nav .share-toggle{display:grid;place-items:center;width:44px;height:44px;border:1px solid #ff6845;border-radius:22px;background:#0b1216;color:#ff6845;padding:0}
.project-nav .share-toggle[aria-expanded=true]{background:#ff6845;color:#12191d}
.project-nav .share-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.project-nav button:focus-visible{outline:2px solid currentColor;outline-offset:-4px}
.restored-hero #share{display:none}
.stage{top:var(--header-height)}
.restored-hero{height:var(--view)!important;min-height:0}
.photo-index{position:fixed;inset:var(--header-height) 0 0;z-index:49;overflow:auto;overscroll-behavior:contain;background:#0b1216;color:#fff6e8;padding:32px 20px 48px;max-height:var(--visible-view)}
.photo-index .mosaic-grid{max-width:1112px;margin:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.photo-index a{display:block;text-decoration:none;color:inherit;text-align:right}
.photo-index strong{display:block;font-size:20px;margin-top:12px}
.index-preview{position:relative;aspect-ratio:1.5;overflow:hidden;background:#0b1216}
.index-preview img{position:absolute;width:100%;height:100%;object-fit:contain;inset:0}
.index-preview img+img{clip-path:inset(0 0 0 50%);animation:index-wipe 5s ease-in-out infinite alternate}
@keyframes index-wipe{0%,15%{clip-path:inset(0 0 0 100%)}85%,100%{clip-path:inset(0)}}
.index-close{display:block;margin:0 auto 24px 0;color:#fff6e8;font-size:30px;width:44px;height:44px}
#share-dialog.share-menu{position:fixed;inset:auto;z-index:60;width:206px;max-width:calc(100vw - 24px);padding:8px;margin:0;border:1px solid #ff684540;border-radius:15px;box-shadow:0 8px 22px #0004;background:#1d2428;color:white;direction:rtl}
.share-menu .share-options{display:flex;flex-direction:column;gap:0;margin:0}
.share-menu .share-options a,.share-menu .share-options button{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:12px;width:100%;min-height:43px;padding:8px 12px;border:0;border-radius:8px;background:transparent;color:white;font-size:15px;text-align:right;margin:0;font-weight:600;text-decoration:none}
.share-menu .share-options a:hover,.share-menu .share-options button:hover{background:#ffffff0d;color:#ff6845}
.share-menu svg{width:22px;height:22px;flex:none;fill:none;stroke:#ff6845;stroke-width:1.65;stroke-linejoin:round;stroke-linecap:round}
.share-menu .share-status{font-size:11px;line-height:1.4;padding:0 10px;margin:5px 0}
.share-menu .share-status:empty{display:none}
.share-menu input{max-width:100%;color:#12191d;background:white}
[hidden]{display:none!important}
.photo-scene .photo-area .photo-meta{top:calc(100% + 10px)}
.photo-area{margin-bottom:34px}.main-photo-corners{bottom:-34px}
#up{bottom:calc(12px + env(safe-area-inset-bottom,0px) + var(--bottom-covered,0px))}
@media(max-width:650px){
 :root{--header-height:70px}
 .project-nav .nav-inner{padding-inline:12px}
 .project-nav .brand{width:104px;height:38.6px}
 .project-nav .topics-toggle{padding-inline:10px;border-radius:22px}
 .photo-index .mosaic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px}
 .photo-index strong{font-size:16px}
 .photo-scene .photo-area .photo-meta{top:calc(100% + 8px)}
 .photo-area{margin-bottom:32px}.main-photo-corners{bottom:-32px}
}

/* The copied white logo includes its original navy matte; remove that matte in CSS only. */
.project-nav .brand img{filter:grayscale(1) contrast(1.3);mix-blend-mode:screen}

.photo-index{direction:rtl}
/* Compact landscape/short browser windows still keep the complete hero in view. */
@media(max-height:550px){
 :root{--header-height:70px}
 .hero-content{padding:12px 20px 16px}
 .restored-hero .edition{font-size:11px;margin-bottom:8px;padding:3px 10px}
 .restored-hero h1{font-size:80px}
 .restored-opening{margin-top:22px}
 .restored-opening h2{font-size:20px;margin-bottom:8px;line-height:1.12}
 .restored-opening p{font-size:12px;line-height:1.3;margin-bottom:8px}
 .restored-opening a{font-size:14px}
 .restored-opening a span{font-size:22px;line-height:1}
}
.project-nav{transform:translateZ(0);backface-visibility:hidden;will-change:transform}

/* Unified page surface; preserve the map's geographic colors and photo labels. */
:root{--project-background:#0b1216}
html,body,main,.restored-hero,.hero-art,.stage,.story,.end,.repeat-journey,.photo-scene,.type-bridge,
.compact-story .photo-scene .story,.frame-study+.story{background-color:var(--project-background)}
.hero-art:after{background:linear-gradient(180deg,#0b1216a0,transparent 45%,#0b1216 100%)}
html{scrollbar-color:#ff6845 var(--project-background)}
html::-webkit-scrollbar-track{background:var(--project-background)}
@media(min-width:651px){
 :root{--header-height:64px}
 .project-nav .nav-inner{width:var(--gallery-width,calc(100% - 48px));max-width:none;padding-inline:0}
}
@media(max-width:650px){
 .project-nav .topics-toggle{padding-inline:18px;font-weight:600;word-spacing:2px;white-space:nowrap}
}

/* A content-sized popover leaves the page and its scrollbar in place. */
.photo-index{inset:calc(var(--header-height) + 8px) auto auto;width:min(660px,calc(100% - 24px));max-height:calc(var(--visible-view) - 20px);padding:12px 20px 24px;background:#05090c;border:1px solid #ffffff20;box-shadow:0 12px 32px #0008}
.photo-index .mosaic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.photo-index .index-close{margin:0 auto 8px 0;width:32px;height:32px;line-height:1}
@media(max-width:650px){.photo-index{padding-inline:14px}.photo-index .mosaic-grid{gap:16px}.photo-index strong{font-size:15px;line-height:1.5}}

/* Compact desktop index and an orange interaction state without a white ring. */
.project-nav .topics-toggle:focus,.project-nav .topics-toggle:focus-visible{outline:none;box-shadow:none}
.project-nav .topics-toggle:active,.project-nav .topics-toggle[aria-expanded="true"]{background:#e95332;border-color:#e95332}
@media(hover:hover){.project-nav .topics-toggle:hover{background:#e95332;border-color:#e95332}}
@media(min-width:651px){
 .photo-index{width:min(440px,calc(100% - 24px));padding:10px 16px 18px}
 .photo-index .mosaic-grid{gap:16px}
 .photo-index strong{font-size:14px;line-height:1.5;margin-top:8px}
}

/* Mobile 23: quieter control height with a more legible label. */
@media(max-width:650px){.project-nav .topics-toggle{height:40px;padding-block:6px;font-weight:700}.project-nav .share-toggle{width:40px;height:40px;border-radius:50%}.project-nav .share-toggle svg{width:20px;height:20px}}
