/* 全サイト共通の写真ビューア（2026-11-13・static/photo_viewer.js）。色はトークンだけ */
.pv-viewer { position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--pv-ink) 95%, transparent); color: var(--pv-surface);
  touch-action: pan-y pinch-zoom; }
.pv-viewer[hidden] { display: none; }
html.pv-viewer-open, html.pv-viewer-open body { overflow: hidden; }
.pv-viewer-bar { display: flex; align-items: center; justify-content: space-between;
  padding: max(.5rem, env(safe-area-inset-top)) .8rem .4rem; font-family: var(--pv-font-num); font-size: 15px; }
.pv-viewer-close { background: none; border: 0; color: var(--pv-surface); font-size: 30px; line-height: 1;
  width: 44px; height: 44px; cursor: pointer; border-radius: var(--pv-radius); }
.pv-viewer-stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 .4rem; }
.pv-viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.pv-viewer-cap { margin: 0; padding: .5rem 1rem max(.8rem, env(safe-area-inset-bottom)); text-align: center; font-size: 14px; }
.pv-viewer-cap[hidden] { display: none; }
.pv-viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px;
  background: color-mix(in srgb, var(--pv-ink) 55%, transparent); color: var(--pv-surface); border: 0;
  font-size: 34px; line-height: 1; cursor: pointer; border-radius: var(--pv-radius); }
.pv-viewer-nav[hidden] { display: none; }
.pv-viewer-prev { left: .4rem; }
.pv-viewer-next { right: .4rem; }
.pv-viewer-close:focus-visible, .pv-viewer-nav:focus-visible { outline: 2px solid var(--pv-surface); outline-offset: 2px; }
@media (hover: none) { .pv-viewer-nav { background: none; width: 40px; } }
