/* 语境化灯箱（手册 03 卷 §3.3 第二代规范）：
   原始比例 contain + 上一张/下一张 + 元数据说明行 + 三通道关闭 + 键盘；
   移动端 touch-action: pinch-zoom 原生捏合（PAT-MOBILE-FULL-05）。 */
.lb { position: fixed; inset: 0; z-index: 2147482000; display: none; }
.lb.is-open { display: block; }
.lb__backdrop { position: absolute; inset: 0; background: rgba(11, 12, 14, 0.93); }
.lb__stage { position: absolute; inset: 56px 0 92px; display: flex; align-items: center; justify-content: center;
  touch-action: pinch-zoom pan-x pan-y; overflow: auto; }
.lb__img { max-width: min(94vw, 1600px); max-height: 100%; width: auto; height: auto;
  margin: auto; display: block; user-select: none; -webkit-user-drag: none; }
.lb--zoomed .lb__img { max-width: none; max-height: none; width: auto; cursor: zoom-out; }
.lb__btn { position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(225, 221, 218, 0.12); color: #e1ddda; font-size: 18px; line-height: 1; }
.lb__btn:hover { background: rgba(225, 221, 218, 0.24); }
.lb__prev { left: 14px; } .lb__next { right: 14px; }
.lb__close { top: 10px; right: 12px; transform: none; position: absolute; }
.lb__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 20px calc(0px + env(safe-area-inset-bottom)); color: #e1ddda; }
.lb__count { font-size: 13px; opacity: 0.7; font-variant-numeric: tabular-nums; }
.lb__cap { font-size: 14px; opacity: 0.9; text-align: center; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 639px) {
  .lb__stage { inset: 44px 0 84px; }
  .lb__btn { top: auto; bottom: 84px; transform: none; }
  .lb__close { top: 10px; right: 12px; bottom: auto; }
  .lb__cap { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .lb, .lb__img { transition: none !important; }
}
