.photo-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: zoom-in;
}
.photo-viewer {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}
.photo-viewer::backdrop { background: rgb(0 0 0 / .94); }
.photo-viewer:modal { position: fixed; inset: 0; margin: auto; }
html:has(.photo-viewer[open]) { overflow: hidden; }
.photo-stage { position: relative; }
.photo-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 1400px);
  max-height: 84dvh;
}
.photo-close {
  position: fixed;
  inset: max(8px, env(safe-area-inset-top)) 10px auto auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: white;
  font: 30px/1 sans-serif;
  cursor: pointer;
}
.photo-lens {
  position: absolute;
  width: clamp(100px, 15vw, 180px);
  aspect-ratio: 1;
  border: 1px solid #fffc;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background-repeat: no-repeat;
  box-shadow: 0 3px 16px #0006;
  pointer-events: none;
  visibility: hidden;
}
.photo-lens.is-visible { visibility: visible; }
