/* A border around the cover image on the welcome page, and as much space
   below it as to its left */
.quarto-cover-image {
  border: 1px solid #adb5bd;
  margin-bottom: 30px;
}

/* Switch the table of contents in the right margin between light and dark
   mode instantly, like the rest of the page (Bootstrap's .nav-link and
   Quarto's TOC fade colors and borders) */
#quarto-margin-sidebar,
#quarto-margin-sidebar * {
  transition: none;
}

/* Figure captions: centered, and no wider than the image above them. The
   image's width is a percentage of the column (the width attribute of the
   image in the .qmd), so give the caption the same maximum width */
figcaption.quarto-float-caption {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
figure:has(img.figure-img[style*="width:90.0%"]) > figcaption { max-width: 90%; }
figure:has(img.figure-img[style*="width:60.0%"]) > figcaption { max-width: 60%; }
figure:has(img.figure-img[style*="width:50.0%"]) > figcaption { max-width: 50%; }

/* More space around figures than between paragraphs (1rem): above the image
   and below the caption */
div.quarto-float.quarto-figure {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
