/* =====================================================================
   Chapter 4, RC plane (chapters/40-rc-plane.html), one page: the head, then the take-off video
   and the photo of an earlier prototype side by side (stacked on phones). The chapter head itself (.chead,
   .cb-h) is shared and lives in css/ch-simulation.css. Tokens only; everything else comes from
   css/book.css.
   ===================================================================== */

/* the head: numeral, title and sub, and the title block standing at the right, level with the sub */
#rc-plane .rc-head { grid-template-columns: auto minmax(0, 1fr) auto; }
#rc-plane .rc-tb { width: 300px; }

/* the video and the photo side by side; the columns follow their aspect ratios (16:9 and 1600:1066)
   so the two frames come out the same height */
.rc-body { display: grid; grid-template-columns: minmax(0, 1.778fr) minmax(0, 1.501fr); gap: var(--s5) clamp(24px, 3vw, 48px); align-items: start; }
.rc-photo { padding-top: var(--rc-dim, 21px); }   /* level with the video's frame, under its dimension line */

@media (min-width: 761px) and (max-width: 1000px) {
  /* too narrow for three head columns: the title block drops under the sub */
  #rc-plane .rc-head { grid-template-columns: auto minmax(0, 1fr); }
  #rc-plane .rc-tb { grid-column: 2; }
  .rc-body { grid-template-columns: minmax(0, 1fr); }
  .rc-photo { padding-top: 0; width: min(100%, 560px); }
}

/* ------------------------------------------------------------ phone */
@media (max-width: 760px) {
  #rc-plane .rc-head { grid-template-columns: minmax(0, 1fr); }
  #rc-plane .rc-tb { width: auto; }
  .rc-body { grid-template-columns: minmax(0, 1fr); }
  .rc-photo { padding-top: 0; }
}
