/* Logical app dimensions, not vh/dvw: the H5 rotates portrait phones. */
#app #reportBackdrop{padding:12px;overflow:hidden}
#app #reportBackdrop .report-dialog{position:relative;min-width:0;overflow-x:hidden}
#app #reportBackdrop .report-dialog[hidden],#app #reportBackdrop .luogang-side[hidden]{display:none!important}
#app #reportBackdrop .report-dialog.report-fit-video,#app #reportBackdrop .luogang-gallery{grid-area:1/1;display:grid;grid-template-rows:auto auto minmax(0,1fr);width:var(--report-panel-width,80%);height:var(--report-panel-height,80%);max-height:none;max-width:none;min-height:0;padding:24px 28px;gap:10px;overflow:visible;box-sizing:border-box}
#app #reportBackdrop .report-fit-video .report-head,#app #reportBackdrop .luogang-gallery .report-head{min-width:0;gap:12px;align-items:center}
#app #reportBackdrop .report-fit-video .report-head h2,#app #reportBackdrop .luogang-gallery .report-head h2{font-size:26px;line-height:1.2;min-width:0}
#app #reportBackdrop .report-close{position:relative;flex:0 0 44px;width:44px;height:44px;min-width:0;min-height:0;padding:0}
#app #reportBackdrop .report-fit-video .report-body{margin:0;min-width:0;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
#app #reportBackdrop .report-fit-video .report-video{min-width:0;min-height:0;display:grid;place-items:center;overflow:hidden;border-radius:10px;background:#132f40}
#app #reportBackdrop .report-fit-video .report-video video{display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;aspect-ratio:auto;object-fit:contain;border-radius:0;background:#132f40}
#app #reportBackdrop .report-fit-video .compare:empty{display:none}
#app #reportBackdrop .luogang-side{position:absolute;left:calc(100% + 12px);top:50%;transform:translateY(-50%);width:var(--report-side-size,62px);padding:0;border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:5px;color:#fff5dd;z-index:3;font:14px/1.2 ZCOOLHappy,'Microsoft YaHei',sans-serif;white-space:nowrap}
#app #reportBackdrop .luogang-side img{display:block;width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 2px 2px #173e5833)}
#app #reportBackdrop .luogang-back img{height:auto;aspect-ratio:320/542}
#app #reportBackdrop .luogang-back{left:auto;right:calc(100% + 12px)}
#app #reportBackdrop .luogang-gallery{grid-template-rows:auto auto minmax(0,1fr) auto auto;background:#fff5dd;border:2px solid #d1ae62;color:#173e58}
.album-intro{margin:0;font-size:13px;color:#356b7e;line-height:1.2}
.album-stage{position:relative;min-height:0;min-width:0;overflow:hidden;background:#e8eee4;border:1px solid #d6c18d;border-radius:8px;touch-action:none;user-select:none;outline-offset:2px}
.album-card{position:absolute;inset:0;margin:0;display:grid;grid-template-rows:minmax(0,1fr) var(--album-caption-height);min-height:0;padding:8px;background:#fff9e9;transform-origin:center}
.album-card>img{width:100%;height:100%;min-height:0;min-width:0;object-fit:contain;display:block;pointer-events:none}
.album-card figcaption{display:grid;gap:3px;padding:5px;line-height:1.3;text-align:center;align-content:center}
.album-card figcaption strong{font-size:18px;font-family:ZCOOLHappy,'Microsoft YaHei',sans-serif}
.album-card figcaption span{font-size:13px;color:#446a76}
.album-footer{display:flex;align-items:center;justify-content:center;gap:18px}
.album-view>button{width:44px;height:44px;border:1px solid #c7a75e;border-radius:8px;background:#ffdf87;color:#173e58;font:26px/1 sans-serif}
.album-view>button:disabled,.album-footer button:disabled{opacity:.4;cursor:default}
.album-timeline{display:flex;align-items:center;gap:16px;position:relative}
.album-timeline:before{content:'';position:absolute;left:0;right:0;height:2px;top:50%;background:#cfb572;pointer-events:none}
.album-timeline button{z-index:1;position:relative;border:1px solid #c6a65d;border-radius:50%;width:32px;height:32px;background:#fff5dd;color:#173e58;font-size:12px;padding:0}
.album-timeline button[aria-pressed=true]{background:#173e58;color:#fff5dd;border-color:#173e58}
.album-source{margin:0;text-align:center;color:#667c80;font-size:11px;line-height:1.2}
#app #reportBackdrop.report-small .report-dialog.report-fit-video,#app #reportBackdrop.report-small .luogang-gallery{padding:10px 16px;gap:6px;border-radius:14px}
#app #reportBackdrop.report-small .report-head h2{font-size:19px}
#app #reportBackdrop.report-small .report-close{width:34px;height:34px;flex-basis:34px}
#app #reportBackdrop.report-small .report-body{font-size:11px;line-height:1.3}
#app #reportBackdrop.report-small .album-intro{font-size:11px}
#app #reportBackdrop.report-small .album-card{padding:4px}
#app #reportBackdrop.report-small .album-card figcaption{padding-top:4px;gap:1px}
#app #reportBackdrop.report-small .album-card figcaption strong{font-size:14px}
#app #reportBackdrop.report-small .album-card figcaption span{font-size:11px}
#app #reportBackdrop.report-small .album-intro{display:none}
#app #reportBackdrop.report-small .luogang-gallery{grid-template-rows:auto minmax(0,1fr) auto auto}
#app #reportBackdrop.report-small .album-source:before{content:'右滑下一张 · '}
#app #reportBackdrop.report-small .album-timeline{gap:12px}
#app #reportBackdrop.report-small .album-timeline button{width:25px;height:25px;font-size:10px}
#app #reportBackdrop.report-small .album-footer{gap:12px}
#app #reportBackdrop.report-small .album-source{font-size:9px}
#app #reportBackdrop.report-small .luogang-side{font-size:11px}
/* Topmost photo timeline; the photo owns all remaining vertical space. */
#app #reportBackdrop .luogang-gallery,#app #reportBackdrop.report-small .luogang-gallery{grid-template-rows:auto minmax(0,1fr)}
#app #reportBackdrop .luogang-gallery .album-intro{display:none}
#app #reportBackdrop .luogang-gallery .report-head h2{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#app #reportBackdrop .luogang-gallery .report-head .album-footer{flex:1;min-width:0}
#app #reportBackdrop .luogang-gallery .album-source:before{content:'右滑下一张 · '}
/* Two chapters distinguish airport archives from today's park, without inventing years. */
#app #reportBackdrop .luogang-gallery .album-footer{display:grid;grid-template-columns:minmax(0,auto);justify-content:center;gap:6px}
.album-era-label{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:12px;font:13px/1.2 'Microsoft YaHei',sans-serif;color:#77878a}
.album-era-label i{font-style:normal;color:#b18e3d}
.album-era-label .current-era{color:#173e58;font-weight:700}
#app #reportBackdrop.report-small .luogang-gallery .album-footer{gap:4px 12px}
#app #reportBackdrop.report-small .album-era-label{font-size:11px}
#app #reportBackdrop .luogang-gallery .report-head>.report-close{align-self:start}


/* Full-frame media, with close controls outside the panel but inside reserved space. */
#app #reportBackdrop .report-dialog.report-fit-video { grid-template-rows:minmax(0,1fr); padding:8px; gap:0; }
#app #reportBackdrop .report-fit-video .report-head h2 {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#app #reportBackdrop .report-fit-video .report-body {display:none}
#app #reportBackdrop .report-fit-video .report-head {position:static;display:contents}
#app #reportBackdrop .report-fit-video .report-video {position:relative;width:100%;height:100%}
#app #reportBackdrop .report-fit-video .report-close,#app #reportBackdrop .luogang-gallery .report-close {position:absolute;left:calc(100% + 10px);right:auto;top:0;width:44px;height:44px;z-index:5}
#app #reportBackdrop.report-small .report-fit-video .report-close,#app #reportBackdrop.report-small .luogang-gallery .report-close {width:38px;height:38px}
#app #reportBackdrop .video-play-fallback {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;border:1px solid #f0c264;border-radius:999px;background:#173e58e8;color:#fff5dd;padding:12px 20px;white-space:nowrap}
/* Close controls remain inside the panel, as requested. */
#app #reportBackdrop .report-fit-video .report-close {position:absolute;left:auto;right:12px;top:12px;z-index:5}
#app #reportBackdrop .luogang-gallery .report-close {position:relative;left:auto;right:auto;top:auto;z-index:5;flex:0 0 44px}
#app #reportBackdrop.report-small .luogang-gallery .report-close {flex-basis:38px}
/* Reserve a logical gutter on each side, centered on the photo row. */
.album-view{--album-caption-height:58px;display:grid;grid-template-columns:48px minmax(0,1fr) 48px;grid-template-rows:minmax(0,1fr) var(--album-caption-height);column-gap:12px;min-width:0;min-height:0}
.album-view>.album-prev,.album-view>.album-next{grid-row:1;place-self:center;touch-action:manipulation}
.album-view>.album-prev{grid-column:1}
.album-view>.album-next{grid-column:3}
.album-view>.album-stage{grid-column:2;grid-row:1/-1}
#app #reportBackdrop.report-small .album-view{--album-caption-height:46px;grid-template-columns:44px minmax(0,1fr) 44px;column-gap:8px}
#app #reportBackdrop.report-small .album-view>button{font-size:22px}

#reportBackdrop .album-era-label[hidden]{display:none}
