/* Level 3 (mirror trap) figures: keep each diagram near the size its labels were drawn for. */
#l3 .l3-fig-idea { max-width: 27rem; }
#l3 .l3-fig-hands { max-width: 23rem; }
#l3 .l3-fig-flat { max-width: 40rem; }
#l3 .l3-fig-flat .fig-row { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
/* when the two panels stack (phones and narrow tablets), stop them growing past the size their labels were drawn for */
#l3 .l3-fig-flat .fig-row svg.dg { max-width: 21rem; margin-inline: auto; }
/* on wide screens the idea diagram sits beside the text, as on the neighbouring levels, so the activity stays near the top */
@media (min-width: 900px) {
  #l3 .idea { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); grid-template-rows: auto 1fr; column-gap: 28px; align-items: start; }
  #l3 .idea > h3, #l3 .idea > .brief { grid-column: 1; }
  #l3 .idea > .fig { grid-column: 2; grid-row: 1 / span 2; margin: 0; max-width: none; }
}
