.figure-box[data-v-c786afd1]{--fig-max-h:calc(min(75svh, 34rem));--fig-max-w:100%;--frame-w:min(100%, var(--fig-max-w), var(--fig-px,100%), var(--fig-max-h) * var(--fig-ratio,99));width:100%;max-width:var(--measure,48rem);margin-inline:auto;container:figure/inline-size}.figure-box[data-layout=upright][data-v-c786afd1]{--fig-max-w:20rem}.figure[data-v-c786afd1]{width:var(--frame-w);flex-direction:column;margin:0;margin-inline:auto;display:flex}.figure__frame[data-v-c786afd1]{width:100%;aspect-ratio:var(--fig-ratio,auto);flex:none}.figure__img[data-v-c786afd1]{-o-object-fit:contain;object-fit:contain;width:100%;height:100%}.figure__caption[data-v-c786afd1]{border-top:1px solid var(--ui-border);flex:1;padding:.625rem .875rem .75rem;font-size:.875rem;line-height:1.45}.figure-box:not([data-has-ratio]) .figure[data-v-c786afd1],.figure-box:not([data-has-ratio]) .figure__frame[data-v-c786afd1]{width:fit-content;max-width:100%}.figure-box:not([data-has-ratio]) .figure__img[data-v-c786afd1]{width:auto;max-width:100%;height:auto;max-height:var(--fig-max-h)}.figure-box[data-layout=tile][data-v-c786afd1]{--frame-w:100%;max-width:none;margin-inline:0;display:flex;container-type:normal}.figure-box[data-layout=tile]>.figure[data-v-c786afd1]{flex:1}.figure-box[data-layout=tile] .figure__caption[data-v-c786afd1]{padding:.5rem .75rem .625rem}
