/* The Examples gallery and the interactive example pages. Colors are --andrey-* tokens. */

/* A card's thumbnail is an image drawn in the light palette on its paper, the same in both themes,
   like a printed figure. */
.example-gallery .sd-card-img-top {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 0.75rem;
  background: var(--andrey-light-paper);
  border-bottom: 1px solid var(--andrey-line);
}

html[data-theme="dark"] .example-gallery .sd-card-img-top {
  filter: brightness(0.92);
}

.example-gallery .sd-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.example-gallery .sd-card-body p {
  margin: 0;
  color: var(--andrey-muted);
  font-size: 0.92rem;
}

.example-gallery .sd-card-body p:last-child {
  margin-top: auto;
}

.example-gallery .sd-badge {
  font-weight: 500;
}

/* An interactive example fills the article's width; its page reports its own height. */
.example-frame {
  display: block;
  width: 100%;
  height: 760px;
  margin-top: 1.5rem;
  border: 1px solid var(--andrey-line);
  border-radius: var(--andrey-radius-lg);
}
