/* A picture opened on a phone (public/js/photoview.js). Its own layer, so no
   other stylesheet is edited for it. */
.pv-box {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 0, 0, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
.pv-stage {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: auto; touch-action: pinch-zoom pan-x pan-y;
}
.pv-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.pv-close {
  position: absolute; z-index: 1;
  top: calc(env(safe-area-inset-top, 0px) + 12px); right: calc(env(safe-area-inset-right, 0px) + 12px);
  min-width: 44px; min-height: 44px; padding: 10px 16px;
  border: 0; border-radius: 22px;
  background: rgba(255, 255, 255, 0.92); color: #111;
  font: 600 15px/1 system-ui, sans-serif;
}
html.pv-open, html.pv-open body { overflow: hidden; }
