/* Keep Excel teaching content usable on narrow screens. */
main iframe {
  width: min(560px, 100%);
  height: auto;
  aspect-ratio: 16 / 9;
}

main .quarto-video {
  max-width: 100%;
  margin-inline: auto;
}

main .quarto-video video {
  max-width: 100%;
  height: auto;
}

main .quarto-figure-center figcaption {
  text-align: center;
}

main .quarto-float-tbl,
main .quarto-float-fig {
  margin-inline: auto;
}

main .quarto-float-tbl figcaption,
main .quarto-float-fig figcaption {
  text-align: center;
  text-wrap: balance;
}

main .quarto-float-tbl table,
main table.dact-table {
  width: 100%;
}

main .quarto-float-tbl {
  overflow-x: auto;
}

main p code,
main li code {
  overflow-wrap: anywhere;
  white-space: normal;
}

main mjx-container[display="true"] {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
