/* Figures added to the Dynamic Proof experiment cards and reports. */
.dp-experiment[data-experiment] {
  --dp-figure-inset: clamp(17px, 2.8vw, 32px);
  padding: 0 0 var(--dp-figure-inset);
  overflow: hidden;
}

.dp-experiment[data-experiment] > :not(.dp-study-figure) {
  margin-inline: var(--dp-figure-inset);
}

.dp-experiment[data-experiment] > .labs-eyebrow { margin-block-start: 1rem; }
.dp-experiment[data-experiment] > .dp-metric { align-self: stretch; width: auto; }

.dp-experiment > .dp-study-figure { width: 100%; margin: 0; }

.dp-study-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.dp-study-figure figcaption {
  padding: .6rem var(--dp-figure-inset, 1rem) .65rem;
  border-block-end: 1px solid var(--satin-line);
  color: var(--satin-muted);
  font-size: .84rem;
  line-height: 1.45;
}

.dp-study-figure-report {
  border: 1px solid var(--satin-line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--dp-panel);
}

.dp-study-figure-report figcaption { border-block-end: 0; }

.dp-study-zoom {
  display: block;
  width: fit-content;
  margin-block-start: .3rem;
  color: var(--satin-ink);
  text-decoration: underline;
  text-underline-offset: .16em;
}
