/* ==========================================================================
   photo_viewer.css — full-screen in-app photo viewer (photo_viewer.js).
   ========================================================================== */

.pv {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  background: rgba(8, 14, 24, 0.96);
  color: #fff;
}
.pv[hidden] { display: none; }
html.pv-open, html.pv-open body { overflow: hidden; }

.pv-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px;
}
.pv-close, .pv-share {
  min-height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
}
.pv-close { background: #fff; color: var(--navy, #0f2a4a); }
.pv-share { background: rgba(255, 255, 255, 0.16); color: #fff; }
.pv-count { flex: 1; text-align: center; font-weight: 700; font-size: 14px; opacity: 0.8; }

.pv-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
.pv-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  touch-action: pinch-zoom;
}
.pv-caption {
  margin: 0;
  min-height: 20px;
  padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 14px);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.85;
}

.pv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 64px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
.pv-nav[hidden] { display: none; }
.pv-prev { left: 8px; }
.pv-next { right: 8px; }
