/* M302.4: the figure (components/figure.html), one picture or one video in a frame with rounded corners, on the fill of a missing picture. square: cut to a square, at most 30 rem wide; map: cut to 40 by 13; the circle over an address not shown; the play button of a video, a dark disc in the middle of its still frame. */
.figure { display: grid; gap: 8px; min-width: 0; margin: 0; }
.figure[hidden], .figure [hidden] { display: none; }
.figure__frame { position: relative; display: block; min-width: 0; }
.figure__media { display: block; width: 100%; height: auto; border-radius: var(--s-border-radius-md); background: var(--c-rest-fill); }
.figure__link { display: block; border-radius: var(--s-border-radius-md); }
.figure--square { max-width: 30rem; }
.figure--square .figure__media { aspect-ratio: 1 / 1; object-fit: cover; object-position: center; }
.figure--map .figure__media { aspect-ratio: 40 / 13; object-fit: cover; }
.figure__circle { position: absolute; top: 50%; left: 50%; width: 18.75%; aspect-ratio: 1; border: 2px solid var(--c-primary); border-radius: 50%; background: color-mix(in srgb, var(--c-primary) 18%, transparent); translate: -50% -50%; pointer-events: none; }
.figure__play { position: relative; display: block; width: 100%; min-height: 160px; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: var(--s-border-radius-md); background: var(--c-rest-fill); cursor: pointer; }
.figure__play .figure__media { border-radius: 0; }
.figure__mark { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 64px; height: 64px; padding-left: 4px; border-radius: 50%; background: var(--c-ink-band); color: var(--c-paper); font-size: 20px; line-height: 1; translate: -50% -50%; }
.figure__play:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.figure__caption { margin: 0; font-size: 14px; line-height: 20px; color: var(--c-base-dark); }
