/* Set the maximum width for the article content */
.bd-main .bd-content .bd-article-container {
  max-width: 100%; /* Default is 60em */
}

/* Set the maximum width for the overall page layout */
.bd-page-width {
  max-width: 100%; /* Default is 88rem */
}

/* Avoid desktop wheel/trackpad scrolling getting trapped on display equations.
   MathJax makes block equations horizontally scrollable by default, which is
   helpful on narrow screens but frustrating on wide desktop layouts. */
@media (min-width: 768px) {
  .bd-content div.math,
  .bd-content mjx-container[display="true"] {
    overflow-x: visible !important;
    overflow-y: visible !important;
  }
}
