/*
 * Images in both colour schemes (ADR 0024, docs/screenshots.md §4).
 *
 * Identical copy in every locale's stylesheets/ folder: each locale is built
 * on its own and serves only its own folder (ADR 0003).
 *
 * Most screenshots are light: worksheet crops with white edges, windows,
 * web pages. In the light theme a thin frame keeps a crop from merging into the
 * page. In the dark theme the same image gets a white backing (so a transparent
 * PNG stays readable), a little less brightness and a shadow, so it reads as a
 * sheet laid on the page rather than a hole cut through it.
 *
 * Paired web screenshots have a dark variant shown with #only-dark (Material
 * hides #only-light in slate and #only-dark in default); a dark image needs
 * none of the backing. { .plain } opts an image out of all of it.
 */

.md-typeset img {
  max-width: 100%;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 2px;
}

[data-md-color-scheme="slate"] .md-typeset img:not([src$="#only-dark"]):not(.plain) {
  background: #fff;
  filter: brightness(0.88);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.md-typeset img.plain {
  border: none;
  border-radius: 0;
  background: none;
  filter: none;
  box-shadow: none;
}
