/* User Provided Stylesheet */

/* Sidebar footer (replaces “Made with MyST”) */
.bd-sidebar-footer img {
height: 24px;
vertical-align: middle;
}

/* Sidebar footer: remove underline and any link “underline” styling */
.bd-sidebar-footer a,
.bd-sidebar-footer a:link,
.bd-sidebar-footer a:visited,
.bd-sidebar-footer a:hover,
.bd-sidebar-footer a:active {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

/* If your LaTeX figure got converted into an HTML table, prevent column collapse */
figure table {
    width: 100% !important;
    table-layout: fixed !important;
  }
  
figure td {
    width: 50% !important;
    vertical-align: top !important;
  }
  
  /* Then make images fill their cells */
figure td img,
figure img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }
  figure table td img {
    height: 320px;          /* choose a height that looks good */
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
  }
figure p:has(> img) {
    display: inline-block !important;
    width: 49% !important;
    margin: 0 !important;
    vertical-align: top !important;
  }
  
figure p:has(> img) img {
    width: 100% !important;
    height: auto !important;
  }
