.photo-preview {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(94%, 68rem);
  max-width: none;
  max-height: 92dvh;
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #4d6a7a;
  border-radius: .9rem;
  background: #172c38;
  color: #f5fafc;
  box-shadow: 0 1rem 4rem #091a24a0;
}
.photo-preview:not([open]) { display: none; }
.photo-preview::backdrop { background: #0a1b25d9; }
.photo-preview-header, .photo-preview-footer { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; }
.photo-preview-header { justify-content: space-between; border-bottom: 1px solid #3c5867; }
.photo-preview-footer { justify-content: end; border-top: 1px solid #3c5867; }
.photo-preview-header h2 { margin: 0; overflow-wrap: anywhere; color: inherit; font: 650 .95rem/1.35 system-ui, sans-serif; }
.photo-preview button, .photo-preview-footer a {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: .35rem .75rem;
  border: 1px solid #bdd4df;
  border-radius: .55rem;
  background: #f5fafc;
  color: #173e51;
  text-decoration: none;
  font: 650 .85rem/1.3 system-ui, sans-serif;
  cursor: pointer;
}
.photo-preview button { flex: none; min-width: 44px; font-size: 1.4rem; }
.photo-preview :is(button, a):hover { background: #e0f1f8; }
.photo-preview :is(button, a):focus-visible { outline: 2px solid #7ac5e6; outline-offset: 2px; }
.photo-preview-stage { display: grid; place-items: center; min-height: min(36dvh, 14rem); background: #0f202a; }
.photo-preview-stage p { margin: 0; padding: .85rem; color: #e0ecf2; text-align: center; font: .9rem/1.5 system-ui, sans-serif; }
.photo-preview-stage p:empty, .photo-preview-stage img[hidden] { display: none; }
.photo-preview-stage img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(92dvh - 8rem); object-fit: contain; }
.marker-photo-preview { display: block; width: 100%; background: transparent; text-align: left; }
.wh-document-preview { min-height: 44px; text-align: left; }
