/* Figures with a hard white background (matplotlib output, the animation) sit
   on a dark page as a bright slab; a soft frame makes that look deliberate. */
img.gl-figure {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 1.4rem auto;
    background: #ffffff;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

body[data-theme="dark"] img.gl-figure {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .10);
}

@media (prefers-color-scheme: dark) {
    body:not([data-theme="light"]) img.gl-figure {
        box-shadow: 0 0 0 1px rgba(255, 255, 255, .10);
    }
}
