/* Override the regular compact dialog: the photo uses the whole viewport. */
dialog.fullscreen-zoom {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
  overscroll-behavior: contain;
}
dialog.fullscreen-zoom::backdrop { background: #fff; }
.fullscreen-zoom__photo {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  user-select: none;
}
.fullscreen-zoom__close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid #d5d5d5;
  border-radius: 50%;
  color: #171717;
  background: rgba(255, 255, 255, .96);
  cursor: pointer;
}
.fullscreen-zoom__close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.fullscreen-zoom__close:focus-visible { outline: 2px solid #171717; outline-offset: 3px; }
.fullscreen-zoom__close:active { transform: scale(.96); }
