/* The designed out-of-the-workbook screens on two pages: the home page's Basis picture and the Every screen
   page's group of twenty-one. Loaded last on each page. Values are the site's own custom properties. */

/* the "Rests on today" line, on both pages: the caption's quieter partner */
.oow-rest{color:var(--ink-3)}

/* home, the Basis block: the picture, its caption, then the how line and the rests line under it */
.pg-home .bs-fig{min-width:0}
.pg-home .bs-fig .bs-how{margin:1rem 0 0;color:var(--ink-2);font-size:var(--t-ui);line-height:var(--lh-ui)}
.pg-home .bs-fig .oow-rest{margin:.5rem 0 0;font-size:var(--t-cap);line-height:var(--lh-ui)}
/* the picture is the whole still (/img/oow/c02.jpg) at every width, and a press opens it. From 640 px it fills its column. At phone
   width (under 640 px) the second link shows in its place, the same still drawn as the moving window is on a phone
   (assets/oow/oow.css: the same width, --oow-run, so the same scale): its top left on the content edge, running off the screen's right
   edge, cut there by the link's own box, which reaches both edges of the screen; over the picture the same layer in the ground's
   colour, clear across seven tenths of the screen and rising to eight tenths at the right edge, one pixel taller than the picture
   above and below so its ring fades with it (the Basis block stands on the sunk band, --n0, so the layer takes that). The caption
   under it keeps the content column and starts on its left edge, under the picture's own left edge, as the first screen's caption
   does (centred, it sat off the axis of a picture that runs off to the right). The link not in use is display: none. */
.pg-home .bs-fig .bs-pic-phone{display:none}
@media (max-width:39.99em){
  .pg-home .bs-fig .bs-pic:not(.bs-pic-phone){display:none}
  .pg-home .bs-fig .bs-pic-phone{--oow-ground:var(--n0);display:block;position:relative;margin-inline:calc(-1 * var(--gutter));padding-inline:var(--gutter);overflow-x:hidden;overflow-x:clip}
  .pg-home .bs-fig .bs-pic-phone img{width:var(--oow-run);max-width:none}
  .pg-home .bs-fig .bs-pic-phone .cap{text-align:left}
  .pg-home .bs-fig .bs-pic-phone::after{content:"";position:absolute;left:0;top:-1px;width:100%;height:calc(var(--oow-run) * 10 / 16 + 2px);pointer-events:none;opacity:.8;background:linear-gradient(90deg,transparent 70%,var(--oow-ground,var(--bg)))}
}

/* screens, the new group: entries keep the page's own grammar; only the rests line and the two odd pictures differ. Each tile shows
   its close-up (/img/oow/<id>-close.jpg, cut from the same still to the part the screen is about, 16 by 10 like the tile's frame) at
   every width, the two phones included; a press opens the whole still. */
.pg-screens .idx-e .oow-rest{font-size:var(--t-cap);line-height:var(--lh-ui);color:var(--ink-3)}

/* two frames in one picture place (.oow-two): one over the other, each at the tile's full width in a frame of its own (the tile's own
   frame: its border, corner and ground), so each draws as large as a single tile's picture; such a tile is taller than its row */
.pg-screens .idx-e .th.oow-two{display:grid;grid-template-columns:minmax(0,1fr);gap:.5rem;aspect-ratio:auto;padding:0;border:0;border-radius:0;background:none}
.pg-screens .idx-e .th.oow-two a{display:block;aspect-ratio:16/10;overflow:hidden;border-radius:var(--r-frame);border:1px solid var(--line);background:var(--sunk)}
.pg-screens .idx-e .th.oow-two img{width:100%;height:100%;object-fit:cover;object-position:top left}
.pg-screens .idx-e .th.oow-two a:hover img:not([src$="-close.jpg"]){transform:scale(1.03)}

