/* The simulation clips: a grid of <video> with a caption each. Linked from
   <head> next to subscribe.css and lists.css, and for the same reason -- the
   same gallery is shown inside a dialog a design paints and on a study page
   that is not a design -- so it sets no color of its own and mixes the quiet
   one out of currentColor.

   Doubly qualified for the lists.css reason: this file is linked from <head>
   and a design's own stylesheet loads after it, so a rule of equal weight
   there wins. Two classes beat one class and one element.

   The column minimum is min(16rem, 100%) and not a bare 16rem: a track whose
   minimum is wider than the container does not shrink, it overflows -- which
   is 16px past the right edge of a 320px screen, the one mobile fault
   `make shots` can see. 16rem is chosen against the dialog rather than the
   page: a modal is 40rem wide less its padding, so this is what puts two
   clips in a row there instead of nine down one column. */
.clips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
         gap: .3rem 1.2rem; align-items: start; margin: 1.2rem 0; }
.clips .clip { margin: .9rem 0; }

/* width and height are on every video, so max-width keeps the aspect ratio
   while letting the cell shrink it, and the box is the right shape before the
   poster has arrived -- without that the gallery reflows once per clip.
   Nothing is scaled up past its own pixels: stretching a 320x240 recording of
   an experiment to fill a cell is how a sharp video is made to look like a bad
   one, so the odd clip sits narrower than its cell, which is the honest
   answer. display:block removes the descender gap under an inline replaced
   element, which otherwise shows as a 4px strip between clip and caption. */
.clips .clip video { display: block; max-width: 100%; height: auto; }
.clips .clip figcaption { margin-top: .4rem; font-size: .82rem; line-height: 1.4;
                          text-align: left; hyphens: none;
                          color: color-mix(in srgb, currentColor 72%, transparent); }
