.district-photos[hidden]{display:none!important}
.district-photos{position:relative;box-sizing:border-box;height:160px;min-height:160px;flex:0 0 160px;width:100%;padding:14px 0 16px;color:#292929;min-width:0}
.district-photo-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.district-photo-head h2{font:11px/1.6 'IBM Plex Mono',monospace;letter-spacing:.5px;margin:0}
.district-photo-actions{display:flex;align-items:center;gap:24px;font-size:10px;white-space:nowrap}
.district-photo-actions button{min-height:32px}
.district-photo-count{color:#777773;font-size:10px}
.district-photo-list{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - (var(--district-photo-columns,3) - 1)*24px)/var(--district-photo-columns,3));gap:24px;align-items:start;height:90px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#c5c4bd transparent;padding-bottom:0;box-sizing:border-box;-webkit-overflow-scrolling:touch}
.district-photo-list:focus-visible{outline:1px solid #777773;outline-offset:3px}
.district-photo-list::-webkit-scrollbar{height:3px}
.district-photo-list::-webkit-scrollbar-thumb{background:#c5c4bd}
.district-photo{scroll-snap-align:start;display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px;text-align:left;width:100%;min-width:0}
.district-photo img{display:block;width:110px;height:86px;object-fit:cover;background:#e9e8e2}
.district-photo-copy{display:block;min-width:0;padding-top:2px}
.district-photo-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;gap:8px;font:14px/1.4 Arial,Helvetica,sans-serif;overflow-wrap:anywhere}
.district-photo-caption{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font:11px/1.6 'IBM Plex Sans KR',Arial,sans-serif;color:#777773;margin-top:5px;overflow-wrap:anywhere}
.district-photo-date{display:block;font-size:10px;line-height:1.5;color:#898981;margin-top:9px}
.district-photo-arrow{display:inline-block;position:relative;width:10px;height:10px;flex:none}
.district-photo-arrow:before{content:'';position:absolute;top:5px;left:0;width:11px;border-top:1px solid currentColor;transform:rotate(-45deg)}
.district-photo-arrow:after{content:'';position:absolute;right:0;top:0;width:6px;height:6px;border-top:1px solid currentColor;border-right:1px solid currentColor}
.district-photo-status{position:absolute;left:0;right:0;top:60px;bottom:16px;display:flex;align-items:center;gap:8px;font:12px/1.8 'IBM Plex Sans KR',Arial,sans-serif;color:#777773;padding:16px 0}
.district-photo-status[hidden]{display:none}
.district-photo-status button{min-height:44px;text-decoration:underline;text-underline-offset:5px}
.mobile-result-actions{display:none}
@media(min-width:1001px){
 body[data-page=atlas] .atlas{height:100svh;height:100dvh;min-height:0;max-height:100dvh;overflow:hidden}
 body[data-page=atlas][data-subject] .atlas>.stage{flex:1 1 0;min-height:0;height:auto}
 body[data-district-photos=true] .atlas>.footer{height:56px;min-height:56px;flex-basis:56px;grid-template-rows:44px;padding:6px 0}
 body[data-district-photos=true] .footer .footer-copy{display:block}
 body[data-district-photos=true] .footer .topic{font-size:20px;line-height:32px}
 body[data-district-photos=true] .footer .description,body[data-district-photos=true] .footer .metaphor,body[data-district-photos=true] .footer .hint{display:none}
 body[data-district-photos=true] .footer .depth-value{font-size:10px;line-height:14px;margin-bottom:0}
 body[data-district-photos=true] .footer .utility>div{display:none}
 body[data-district-photos=true] .footer .utility{font-size:0}
 body[data-district-photos=true] .footer .utility button{font-size:10px;min-height:44px}
 body[data-district-photos=true] .footer #read-data,body[data-district-photos=true] .footer .how-to-open{display:none}
}
@media(max-width:1000px){
 body[data-page=atlas][data-subject] .atlas{height:var(--mobile-vh,100svh);min-height:0;max-height:var(--mobile-vh,100svh);overflow:hidden}
 body[data-page=atlas][data-subject] .atlas>.stage,body[data-page=atlas][data-subject][data-mobile-focus=true] .atlas>.stage{min-height:0;transition:none}
 body[data-page=atlas][data-district-photos=true] .atlas>header{height:56px;min-height:56px}
 body[data-page=atlas][data-district-photos=true] .atlas>.footer{display:none!important}
 body[data-page=atlas][data-district-photos=true][data-subject] .atlas>.stage{transition:none}
 .district-photos{height:256px;min-height:256px;flex-basis:256px;padding:10px 0 12px;overflow:visible}
 .district-photo-head{min-height:44px;gap:8px;margin-bottom:6px}
 .district-photo-head h2{font-size:10px;letter-spacing:0}
 .district-photo-actions{gap:0;font-size:10px}
 .district-photo-actions button{min-height:44px}
 .district-photo-count,.district-photo-actions [data-recent-data],.district-photo-actions [data-recent-guide]{display:none}
 .district-photo-list{grid-auto-columns:clamp(156px,44vw,180px);gap:12px;height:182px;scroll-snap-type:x mandatory}
 .district-photo-status{top:61px;bottom:12px;flex-wrap:wrap;align-content:center}
 .district-photo{display:block}
 .district-photo img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;object-position:center}
 .district-photo-copy{padding-top:7px}
 .district-photo-title{font-size:12px;line-height:17px;gap:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
 .district-photo-title .district-photo-arrow{margin-left:6px}
 .district-photo-caption{font-size:11px;line-height:16px;margin-top:3px}
 .district-photo-date{display:none}
 body:is([data-district-photos=true],[data-photo-closing=true]) .mobile-result{max-height:min(27svh,228px);overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;padding-bottom:8px}
 body:is([data-district-photos=true],[data-photo-closing=true]) .mobile-result-districts{grid-column:1/-1;margin-bottom:8px}
 body:is([data-district-photos=true],[data-photo-closing=true]) .mobile-result-content{grid-column:1;align-self:center}
 body:is([data-district-photos=true],[data-photo-closing=true]) .mobile-result-actions{display:flex;gap:12px;grid-column:2;align-self:center;font-size:9px;white-space:nowrap}
 .mobile-result-actions button{min-height:44px}
 body:is([data-district-photos=true],[data-photo-closing=true]) .mobile-result .metric-note,body:is([data-district-photos=true],[data-photo-closing=true]) .mobile-price-state,body:is([data-district-photos=true],[data-photo-closing=true]) .mobile-result-content>p{display:none}
 body:is([data-district-photos=true],[data-photo-closing=true]) .mobile-result[data-subject=price] .metric-district{display:none}
 body:is([data-district-photos=true],[data-photo-closing=true]) .mobile-result[data-subject=price] .metric-number{font-size:32px;line-height:1.1;white-space:nowrap}
 body:is([data-district-photos=true],[data-photo-closing=true]) .mobile-result[data-subject=price] .metric-number span{font-size:10px;margin-left:6px}
 body:is([data-district-photos=true],[data-photo-closing=true]) .mobile-result:not([data-subject=price]) .mobile-result-content{grid-column:1/-1}
 body:is([data-district-photos=true],[data-photo-closing=true]) .mobile-result:not([data-subject=price]) .mobile-result-actions{grid-column:1/-1;justify-self:end}
 body:is([data-district-photos=true],[data-photo-closing=true]) .mobile-result[data-subject=density] .mobile-result-content{grid-template-columns:minmax(0,1fr) 92px}
 body:is([data-district-photos=true],[data-photo-closing=true]) .mobile-density-comparison{width:92px;height:114px}
 body:is([data-district-photos=true],[data-photo-closing=true]) .mobile-result[data-subject=density] .metric-secondary{font-size:10px}
 body:is([data-district-photos=true],[data-photo-closing=true]) .mobile-result[data-subject=transport] .metric-label,body:is([data-district-photos=true],[data-photo-closing=true]) .mobile-result[data-subject=transport] .metric-district{display:none}
 body:is([data-district-photos=true],[data-photo-closing=true]) .mobile-result[data-subject=transport] .metric-secondary b{font-size:22px;line-height:1.2}
 body:is([data-district-photos=true],[data-photo-closing=true]) .mobile-result[data-subject=transport] .metric-modes{font-size:10px;line-height:1.6;margin-top:6px}
 body[data-district-photos=true] .photo-invitation{display:none!important}
}
@media(max-width:370px){body:is([data-district-photos=true],[data-photo-closing=true]) .mobile-result[data-subject=price] .metric-number{font-size:28px}.mobile-result-actions{gap:8px!important}.district-photo-caption{font-size:10px}}


/* Fade the actual decoded image, without staggered movement or resizing. */
.district-photo img{opacity:0;transition:opacity .32s ease-out}
.district-photo img.is-ready{opacity:1}
@media(prefers-reduced-motion:reduce){.district-photo img{transition:none}}
@media(max-width:1000px) and (max-height:740px){
 .district-photos{height:168px;min-height:168px;flex-basis:168px}
 .district-photo-list{height:94px;grid-auto-columns:260px}
 .district-photo{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px}
 .district-photo img{height:60px;width:90px;aspect-ratio:3/2}
 .district-photo-copy{padding-top:0}
}
@media(min-width:1001px){.district-photo-title{-webkit-line-clamp:1}body[data-page=atlas] .stage .subject-metrics{max-height:calc(100% - 72px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}}

/* Keep the tray height fixed. Reserve a separate gutter below photographs for
   macOS overlay scrollbars; desktop navigation uses wheel/trackpad gestures. */
@media(min-width:1001px){
 .district-photos{padding-top:8px;padding-bottom:8px}
 .district-photo-head{margin-bottom:6px}
 .district-photo-list{height:104px;padding-bottom:14px;scroll-snap-type:none;scrollbar-width:none}
 .district-photo-list::-webkit-scrollbar{display:none;height:0}
}
