.flex {
  display: flex;
}

.justify-center {
  justify-content: center;
}

/* Hero screenshot shown directly under a page's H1.
   Usage: ![Alt text](../assets/screenshots/<section>/<name>-light.png){ .hero loading=lazy }
   The border and shadow frame light-theme captures so they also sit well on the dark (slate) theme.
   To add a dark variant later, use two images with #only-light / #only-dark on the URLs (see README). */
.md-typeset img.hero {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.5rem 0 1.5rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.4rem;
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.12);
}

[data-md-color-scheme="slate"] .md-typeset img.hero {
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.45);
}

/* Smaller inline screenshot (e.g. a single modal) inside a step. */
.md-typeset img.screenshot {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.3rem;
}

/* Home page: quadrant cards in a 2x2 grid on wide screens. */
@media screen and (min-width: 45em) {
  .md-typeset .grid.cards.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
