/* The photo map is isolated from the portal's existing typography and layout. */
.exhibition-photo-map{--map-ink:#203329;--map-green:#237d3c;--map-muted:#728076;--map-line:#dce4dc;--map-paper:#fafbf8;--map-progress:0;--map-dim:0;--map-top:var(--site-header-height);position:relative;padding:var(--space-heading) 0 var(--space-md);background:var(--map-paper);color:var(--map-ink);isolation:isolate;scroll-margin-top:var(--map-top)}
.exhibition-photo-map .map-shell{min-width:0}
.exhibition-photo-map .map-header{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--space-heading);margin-bottom:var(--space-md);min-width:0}
.exhibition-photo-map .map-header>div{min-width:0}
.exhibition-photo-map .map-header .eyebrow{font-size:10px;font-weight:600;line-height:1.5;letter-spacing:.14em;color:var(--map-green);margin:0}
.exhibition-photo-map .map-header h2{font-size:42px;font-weight:500;line-height:1.02;letter-spacing:-.055em;margin:8px 0 0}
.exhibition-photo-map .map-intro{max-width:380px;padding-bottom:2px}
.exhibition-photo-map .map-intro>p{font-size:14px;line-height:1.6;color:#637269;margin:0;text-wrap:pretty}
.exhibition-photo-map .map-canvas{position:relative;isolation:isolate;container-type:inline-size;min-width:0;width:100%;height:auto;overflow:hidden;border:1px solid #e2e8df;border-radius:18px;background:#f0f3ed}
.exhibition-photo-map .map-land{position:relative;z-index:0;aspect-ratio:1000/560;width:100%;pointer-events:none;opacity:1}
.exhibition-photo-map .map-land img{display:block;width:100%;height:100%;max-width:none;object-fit:contain}
.exhibition-photo-map .map-routes,.exhibition-photo-map .map-locations{position:absolute;left:0;top:0;width:100%;height:var(--map-static-land-height,56cqw)}
.exhibition-photo-map .map-routes{z-index:1;pointer-events:none;overflow:hidden;fill:none;stroke:#84a68f;stroke-width:1.2;stroke-linecap:round;opacity:.7}
.exhibition-photo-map .map-routes path{vector-effect:non-scaling-stroke}
.exhibition-photo-map .map-locations{z-index:2;pointer-events:none}
.exhibition-photo-map .map-pin{position:absolute;left:var(--x,50%);top:var(--y,50%);width:26px;height:26px;padding:0;border:0;border-radius:50%;background:transparent;transform:translate(-50%,-50%);pointer-events:auto;outline-offset:5px;font:inherit;cursor:pointer}
.exhibition-photo-map .map-pin-dot{position:absolute;left:50%;top:50%;width:10px;height:10px;border:2px solid #f4f7f1;border-radius:50%;background:#4c7656;box-shadow:0 0 0 1px #577a5b2b;transform:translate(-50%,-50%);transition:background .25s,box-shadow .35s,transform .35s}
.exhibition-photo-map .map-pin-label{position:absolute;left:50%;top:25px;max-width:122px;padding:4px 7px;border:1px solid #dce6d9;border-radius:6px;background:#fafcf7ed;color:#506e57;font-size:11px;font-weight:500;line-height:1.25;white-space:nowrap;transform:translateX(-50%);box-shadow:0 2px 10px #2c4a3405;transition:color .25s,background .25s}
.exhibition-photo-map .map-pin[data-label-side="left"] .map-pin-label{left:-5px;top:50%;transform:translate(-100%,-50%)}
.exhibition-photo-map .map-pin[data-label-side="right"] .map-pin-label{left:31px;top:50%;transform:translate(0,-50%)}
.exhibition-photo-map .map-pin[data-label-side="top"] .map-pin-label{left:50%;top:-6px;transform:translate(-50%,-100%)}
.exhibition-photo-map .map-pin.is-lit .map-pin-dot,.exhibition-photo-map .map-pin:hover .map-pin-dot{background:var(--map-green);transform:translate(-50%,-50%) scale(1.45);box-shadow:0 0 0 7px #287b3d17,0 0 0 15px #287b3d08}
.exhibition-photo-map .map-pin.is-lit .map-pin-label{background:#fff;color:#245e33;border-color:#b4cfb9}
.exhibition-photo-map .map-pin:focus-visible{outline:3px solid var(--map-green);background:#237d3c0d}
/* The normal document flow is also the no-animation and short-screen fallback. */
.exhibition-photo-map .map-photos{position:relative;inset:auto;z-index:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;width:100%;height:auto;padding:11px;pointer-events:none}
.exhibition-photo-map .map-photo{position:relative;inset:auto;display:block;aspect-ratio:3/2;width:100%;height:auto;min-width:0;margin:0;padding:0;border:3px solid #fff;border-radius:10px;overflow:hidden;opacity:1;background:#fff;box-shadow:0 8px 28px #29453212;pointer-events:auto;cursor:zoom-in;color:inherit;font:inherit}
.exhibition-photo-map .map-photo img{display:block;width:100%;height:100%;max-width:none;object-fit:cover}
.exhibition-photo-map .map-photo:nth-child(9):nth-last-child(2),.exhibition-photo-map .map-photo:nth-child(10):last-child{grid-column:span 2;aspect-ratio:3/1}
.exhibition-photo-map .photo-caption{display:none}
.exhibition-photo-map .map-photo:focus-visible{outline:3px solid var(--map-green);outline-offset:-5px}
.exhibition-photo-map .map-footer{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:26px;min-width:0;margin-top:18px}
.exhibition-photo-map .map-status{min-width:0;max-width:680px}
.exhibition-photo-map .map-status strong{display:block;font-size:17px;font-weight:500;line-height:1.3;letter-spacing:-.025em}
.exhibition-photo-map .map-status>span{display:block;font-size:12px;line-height:1.5;color:var(--map-muted);margin-top:4px;text-wrap:pretty}
.exhibition-photo-map .map-hint{font-size:11px;line-height:1.5;color:#8a978c;white-space:nowrap}
.exhibition-photo-map .map-replay{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:36px;padding:8px 17px;border:1px solid #d7e3d5;border-radius:22px;background:transparent;font:inherit;font-size:11px;line-height:1.3;color:#53715a;white-space:nowrap;cursor:pointer}
.exhibition-photo-map .map-replay:hover{background:#edf3e9;border-color:#adc9b2}
.exhibition-photo-map .map-replay:focus-visible{outline:3px solid var(--map-green);outline-offset:4px}
.exhibition-photo-map .map-progress{height:2px;overflow:hidden;width:100%;background:#e4eae0;margin-top:15px}
.exhibition-photo-map .map-progress i{display:block;width:100%;height:100%;background:var(--map-green);transform:scaleX(var(--map-progress,0));transform-origin:left center}
.exhibition-photo-map:not(.is-enhanced) .map-hint,.exhibition-photo-map:not(.is-enhanced) .map-progress,.exhibition-photo-map:not(.is-enhanced) .map-replay{display:none}
.exhibition-photo-map:not(.is-enhanced) .map-footer{grid-template-columns:minmax(0,1fr)}
.exhibition-photo-map + .exhibition-map-end{display:block;scroll-margin-top:88px}
/* The compact history follows the map rather than extending its scroll animation. */
.exhibition-photo-map ~ .map-history-wrap{padding-top:var(--space-md);padding-bottom:var(--space-section-sm)}
.exhibition-photo-map ~ .map-history-wrap .map-history{border-top:1px solid #e0e6df;border-bottom:1px solid #e0e6df;background:#fff}
.exhibition-photo-map ~ .map-history-wrap .map-history>summary{display:flex;align-items:center;gap:24px;min-height:74px;padding:20px 0;list-style:none;font-size:17px;line-height:1.4;font-weight:500;letter-spacing:-.02em;cursor:pointer}
.exhibition-photo-map ~ .map-history-wrap .map-history>summary::-webkit-details-marker{display:none}
.exhibition-photo-map ~ .map-history-wrap .map-history>summary>span{font-size:12px;line-height:1.5;color:#859187;font-weight:400;letter-spacing:0;margin-left:auto}
.exhibition-photo-map ~ .map-history-wrap .map-history>summary:after{content:"+";color:#52795b;font-size:23px;font-weight:300;line-height:1;flex:none}
.exhibition-photo-map ~ .map-history-wrap .map-history[open]>summary:after{content:"−"}
.exhibition-photo-map ~ .map-history-wrap .map-history>summary:focus-visible{outline:3px solid #237d3c;outline-offset:5px}
.exhibition-photo-map ~ .map-history-wrap .map-history-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 44px;list-style:none;padding:0;margin:0}
.exhibition-photo-map ~ .map-history-wrap .map-history-list>li{min-width:0;padding:20px 0;border-top:1px solid #edf0eb}
.exhibition-photo-map ~ .map-history-wrap .map-history-list strong{display:block;font-size:12px;line-height:1.5;font-weight:500;color:#376844;margin-bottom:7px}
.exhibition-photo-map ~ .map-history-wrap .map-history-list span{display:block;font-size:13px;line-height:1.7;color:#748078}
.exhibition-photo-map ~ .map-history-wrap .map-history-note{padding:20px 0 24px;margin:0;border-top:1px solid #edf0eb;font-size:12px;line-height:1.8;color:#748078}
/* Native dialog remains in the browser's top layer even when mounted outside the map. */
dialog.map-photo-dialog{width:min(1120px,calc(100% - 32px));max-width:none;max-height:90svh;box-sizing:border-box;margin:auto;padding:54px 20px 17px;border:0;border-radius:19px;background:#f8faf6;color:#263d2d;box-shadow:0 24px 90px #10231842;overflow:auto}
dialog.map-photo-dialog[open]{display:flex;flex-direction:column;gap:14px}
dialog.map-photo-dialog::backdrop{background:#142219c7;backdrop-filter:blur(6px)}
dialog.map-photo-dialog .map-dialog-close{position:absolute;right:14px;top:11px;display:flex;align-items:center;justify-content:center;width:38px;height:34px;padding:0;border:1px solid #dce5d9;border-radius:18px;background:#fff;color:#395b42;font:inherit;font-size:13px;line-height:1;cursor:pointer}
dialog.map-photo-dialog figure{min-width:0;min-height:0;margin:0}
dialog.map-photo-dialog [data-full-photo]{display:block;width:100%;height:auto;max-width:100%;max-height:min(72svh,calc(90svh - 150px));object-fit:contain;border-radius:9px;background:#eef2eb}
dialog.map-photo-dialog figcaption{padding-top:11px;font-size:12px;line-height:1.5;color:#73816f;text-align:center}
dialog.map-photo-dialog .map-dialog-controls{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:15px}
dialog.map-photo-dialog .map-dialog-controls button{min-height:36px;padding:8px 17px;border:1px solid #d6e2d2;border-radius:22px;background:#fff;color:#3b6345;font:inherit;font-size:12px;line-height:1.4;cursor:pointer}
dialog.map-photo-dialog [data-photo-count]{font-size:11px;line-height:1.5;color:#7f8a7c;text-align:center}
dialog.map-photo-dialog button:hover{background:#eaf2e6}
dialog.map-photo-dialog button:focus-visible{outline:3px solid #237d3c;outline-offset:4px}
@media(min-height:620px) and (prefers-reduced-motion:no-preference){
.exhibition-photo-map.is-enhanced{height:calc(100svh - var(--map-top) + (120svh + var(--map-top)) * .65);padding:0}
.exhibition-photo-map.is-enhanced .map-sticky{position:sticky;top:var(--map-top);height:calc(100svh - var(--map-top));overflow:hidden}
.exhibition-photo-map.is-enhanced .map-shell{display:flex;flex-direction:column;height:100%;padding-top:23px;padding-bottom:19px}
.exhibition-photo-map.is-enhanced .map-header{flex:none}
.exhibition-photo-map.is-enhanced .map-canvas{flex:1;min-height:0}
.exhibition-photo-map.is-enhanced .map-land{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;opacity:calc(1 - var(--map-dim,0))}
.exhibition-photo-map.is-enhanced .map-routes,.exhibition-photo-map.is-enhanced .map-locations{height:100%}
.exhibition-photo-map.is-enhanced .map-routes{opacity:calc(.7 - var(--map-dim,0) * .65)}
.exhibition-photo-map.is-enhanced .map-photos{position:absolute;inset:0;display:block;height:100%;padding:0}
.exhibition-photo-map.is-enhanced .map-photo{position:absolute;left:var(--origin-x,50%);top:var(--origin-y,50%);width:var(--tile-width,20%);height:var(--tile-height,25%);aspect-ratio:auto;opacity:0}
.exhibition-photo-map.is-enhanced .map-footer,.exhibition-photo-map.is-enhanced .map-progress{flex:none}
.exhibition-photo-map.is-enhanced .map-locations.is-covered{opacity:0;visibility:hidden;pointer-events:none}
}
@media(max-width:1000px){
.exhibition-photo-map .map-header{gap:26px}
.exhibition-photo-map .map-header h2{font-size:36px}
.exhibition-photo-map .map-intro{max-width:310px}
.exhibition-photo-map .map-intro>p{font-size:12px}
.exhibition-photo-map .map-footer{gap:18px}
.exhibition-photo-map .map-status strong{font-size:16px}
.exhibition-photo-map .map-hint{font-size:10px}
.exhibition-photo-map .map-pin-label{font-size:11px;padding:4px 6px}
}
@media(max-width:700px){
.exhibition-photo-map{--map-top:var(--site-header-height);padding-top:var(--space-heading);padding-bottom:var(--space-md)}
.exhibition-photo-map .map-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.95fr);align-items:end;gap:15px;margin-bottom:15px}
.exhibition-photo-map .map-header h2{font-size:clamp(24px,6.8vw,30px);line-height:1.05;letter-spacing:-.055em;margin-top:7px}
.exhibition-photo-map .map-header .eyebrow{font-size:8px;letter-spacing:.09em}
.exhibition-photo-map .map-intro{max-width:none;padding-bottom:0}
.exhibition-photo-map .map-intro>p{font-size:11px;line-height:1.5}
.exhibition-photo-map .map-canvas{border-radius:13px}
.exhibition-photo-map .map-pin{width:24px;height:24px}
.exhibition-photo-map .map-pin-dot{width:9px;height:9px}
.exhibition-photo-map .map-pin-label{top:23px;font-size:11px;max-width:100px;padding:3px 5px;border-radius:5px}
.exhibition-photo-map .map-pin[data-location="china"] .map-pin-label{left:50%;top:-6px;transform:translate(-50%,-100%)}
.exhibition-photo-map .map-photo{border-width:2px;border-radius:8px}
.exhibition-photo-map .map-photo:nth-child(9):nth-last-child(2),.exhibition-photo-map .map-photo:nth-child(10):last-child{grid-column:auto;aspect-ratio:3/2}
.exhibition-photo-map .map-photos{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:8px}
.exhibition-photo-map .map-footer{grid-template-columns:minmax(0,1fr) auto;gap:13px;margin-top:14px}
.exhibition-photo-map .map-status strong{font-size:14px;line-height:1.3}
.exhibition-photo-map .map-status>span{font-size:10px;line-height:1.5;margin-top:4px}
.exhibition-photo-map .map-hint{display:none}
.exhibition-photo-map .map-replay{font-size:10px;min-height:33px;padding:7px 12px}
.exhibition-photo-map .map-progress{margin-top:12px}
.exhibition-photo-map ~ .map-history-wrap{padding-top:18px;padding-bottom:42px}
.exhibition-photo-map ~ .map-history-wrap .map-history>summary{min-height:69px;gap:16px;font-size:15px}
.exhibition-photo-map ~ .map-history-wrap .map-history>summary>span{font-size:10px}
.exhibition-photo-map ~ .map-history-wrap .map-history-list{grid-template-columns:minmax(0,1fr)}
.exhibition-photo-map ~ .map-history-wrap .map-history-list>li{padding:17px 0}
.exhibition-photo-map ~ .map-history-wrap .map-history-list span{font-size:12px}
.exhibition-photo-map ~ .map-history-wrap .map-history-note{font-size:11px}
dialog.map-photo-dialog{padding:52px 12px 14px;border-radius:15px}
dialog.map-photo-dialog [data-full-photo]{max-height:min(72svh,calc(90svh - 157px));border-radius:6px}
dialog.map-photo-dialog figcaption{font-size:11px;line-height:1.45}
dialog.map-photo-dialog .map-dialog-controls{gap:10px}
dialog.map-photo-dialog .map-dialog-controls button{min-height:34px;padding:7px 12px;font-size:11px}
}
@media(max-width:350px){
.exhibition-photo-map .map-header{gap:12px;grid-template-columns:minmax(0,1fr) minmax(0,.9fr)}
.exhibition-photo-map .map-header h2{font-size:24px}
.exhibition-photo-map .map-intro>p{font-size:10px;line-height:1.45}
.exhibition-photo-map .map-status strong{font-size:13px}
.exhibition-photo-map .map-status>span{font-size:9px}
}
@media(max-height:740px) and (min-height:620px) and (prefers-reduced-motion:no-preference){
.exhibition-photo-map.is-enhanced .map-shell{padding-top:17px;padding-bottom:14px}
.exhibition-photo-map.is-enhanced .map-header{margin-bottom:13px}
.exhibition-photo-map.is-enhanced .map-header h2{font-size:34px}
.exhibition-photo-map.is-enhanced .map-footer{margin-top:13px}
.exhibition-photo-map.is-enhanced .map-progress{margin-top:11px}
}
@media(max-width:700px) and (max-height:740px) and (min-height:620px) and (prefers-reduced-motion:no-preference){
.exhibition-photo-map.is-enhanced .map-shell{padding-top:15px;padding-bottom:12px}
.exhibition-photo-map.is-enhanced .map-header h2{font-size:26px}
}
@media(prefers-reduced-motion:reduce){
.exhibition-photo-map .map-pin-dot,.exhibition-photo-map .map-pin-label{transition:none}
}
