/* Screenshots as in the product guide: one frame and one placement for all of them. Each sits
   below the text it illustrates, at its own size (half its pixels, set by the build) and never
   wider than the text column, in a white card with rounded corners and a soft shadow, with a short
   monospace caption underneath. */
.md-typeset figure.mx-shot {
  display: block;
  margin: 1em 0 1.8em;
  max-width: 100%;
  text-align: left;
}
.md-typeset figure.mx-shot > a.glightbox,
.md-typeset figure.mx-shot > p {
  display: block;
  margin: 0;
}
.md-typeset figure.mx-shot img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--mx-line);
  border-radius: 8px;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--mx-bg) 16%, transparent);
}
.md-typeset figure.mx-shot figcaption {
  max-width: none;
  margin: 0.7em 0 0;
  font-family: var(--mx-mono);
  font-size: 0.6rem;
  font-style: normal;
  text-align: left;
  color: var(--mx-ink-muted);
}

/* A dashboard view (assets/javascripts/dashboard-views.js): the same card as a screenshot, holding
   a frame laid out at a desktop width and scaled down to the column. */
.md-typeset figure.mx-shot .mx-view {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid var(--mx-line);
  border-radius: 8px;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--mx-bg) 16%, transparent);
}
.md-typeset figure.mx-shot .mx-view iframe {
  position: absolute;
  top: 0;
  left: 0;
  /* The dashboard is laid out at the frame's own width, never squeezed to the column. */
  width: 1280px;
  max-width: none;
  border: 0;
  transform-origin: 0 0;
  background: #ffffff;
}
.md-typeset figure.mx-shot .mx-view noscript {
  display: block;
  padding: 1em;
  font-size: 0.7rem;
  color: var(--mx-ink-muted);
}
