/* Two images side by side, with room between them. Markdown wraps the pair
   of images in one <p>, so that paragraph is the flex container. */
figure.pair {
  margin: 1.5rem 0;
}
figure.pair > p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 0;
}
figure.pair img {
  width: min(300px, calc(50% - 0.75rem));
  height: auto;
  margin: 0;
}
figure.pair figcaption {
  text-align: center;
  margin-top: 0.75rem;
}

/* Rendered pages are white on white: a hairline and a little lift so each
   reads as a page rather than the two bleeding into one. */
.md-typeset img.page {
  border: 1px solid var(--md-default-fg-color--lighter);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 2px;
}
