/* Custom styles - Prevent horizontal scrolling on images and figures */

img, .quarto-figure, .cell-output-display {
  max-width: 100% !important;
  height: auto !important;
  overflow: hidden !important;
}

/* Mermaid diagrams responsive */
.mermaid, .mermaid svg {
  max-width: 100% !important;
  height: auto !important;
  overflow: hidden !important;
}

/* Figure containers */
figure, .figure {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Python matplotlib outputs */
.cell-output img {
  max-width: 100% !important;
  height: auto !important;
  cursor: zoom-in;
}

/* Remove any horizontal overflow */
.quarto-figure-center {
  overflow: hidden !important;
}

pre.mermaid {
  overflow: hidden !important;
}

/* Ensure main content doesn't overflow */
.content {
  overflow-x: hidden !important;
}

body {
  overflow-x: hidden;
}
