/*
 * The frame a thumbnail opens into: one photograph, as large as the screen
 * allows, on a dark surround.
 *
 * A native <dialog> rather than a hand-rolled overlay — it brings the backdrop,
 * Escape to close, focus containment and inertness of the page behind it, all
 * of which would otherwise have to be written and kept correct by hand.
 */

.photo-modal {
  border: 0;
  padding: 0;
  margin: auto;
  max-width: none;
  max-height: none;
  overflow: visible;
  background: transparent;
}

.photo-modal::backdrop {
  background: var(--scrim);
}

.photo-modal__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 50%;
  background: var(--on-image-ground);
  color: var(--on-image);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
