@layer components {
  /* How the page works (layouts/_page_guide): narrower than other lightboxes for a few sentences; wider with a video,
     a recording of the whole window (1280 × 800), so its text can still be read */
  #page-guide .lightbox__panel {
    width: min(90vw, 44rem);
  }

  #page-guide:has(.page-guide__video) .lightbox__panel {
    width: min(90vw, 64rem);
  }

  /* As wide as the guide, but at most so high that its sentences and "Got it" still fit in the window below it
     (3.12.: at 1366 × 768 only the video and a line of text showed, the guide looked like a video alone). The room
     below it is about the guide's title, sentences and button; a low window makes the video smaller, its full-screen
     button shows it large. Width and height auto with both limits keep the video's proportions. */
  .page-guide__video {
    display: block;
    inline-size: auto;
    max-inline-size: 100%;
    block-size: auto;
    max-block-size: calc(100dvh - 27rem); /* a value of its own: room for the title, sentences and button */
    margin-inline: auto;
    border: var(--border);
    border-radius: var(--radius-md);
  }

  .page-guide__points {
    padding-inline-start: var(--space-4);
    list-style: disc;
  }
}
