/* Long per-course navbar dropdowns (50+ notes) overflow the viewport - scroll them instead. */
.navbar .dropdown-menu {
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Figures wider than the content column (e.g. the schemdraw circuit schematic in
   courses/csse2010/week4-lab-lab-7-exercises.qmd) otherwise render at their full
   pixel width and force the page to pan sideways: quarto emits the image with
   explicit width/height attributes and class="figure-img", and bootstrap only
   constrains .img-fluid/.img-thumbnail, never a bare img. Scale to the column and
   let the height follow, so the aspect ratio survives. */
.figure-img,
figure img {
  max-width: 100%;
  height: auto;
}
