.history-facsimile {
  max-width: 24rem;
  margin: 1rem 0 0;
}
.history-facsimile img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.history-facsimile figcaption { margin-top: .5rem; }
.history-facsimile a:focus-visible,
.history-facsimile-viewer button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.history-facsimile-viewer {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: #202327;
  color: white;
}
.history-facsimile-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: .75rem;
}
.history-facsimile-viewer form { justify-self: end; }
.history-facsimile-viewer button { cursor: pointer; }
.history-facsimile-viewer img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
