<figureclass="{{ if $widthish }} d-flex {{ end }} {{ with $float }} float-{{ . }} {{ end }} {{ if $widthish }} justify-content-{{ $horizontal }} {{ end }} {{ if $compact }} mb-0 {{ end }} {{ if $float }} {{ $sidemargin }} {{ end }} paige-figure {{ if $numbered }} paige-figure-numbered {{ end }}"{{ifand$float$style}}style="{{ $style | safeCSS }}"{{end}}>
<divclass="align-items-{{ $vertical }} d-flex {{ with $float }} float-{{ . }} {{ end }} justify-content-{{ $horizontal }} {{ if $compact }} mb-0 {{ else }} mb-3 {{ end }} {{ with $sidemargin }} {{ . }} {{ end }} overflow-auto paige-figure {{ if $numbered }} paige-figure-numbered {{ end }}"{{with$heights}}style="{{ . | safeCSS }}"{{end}}>
{{ if or $heightish $widthish (and (not $float) $style) }}
<figureclass="{{ if $table }} d-table {{ end }} mb-0"{{with$widths}}style="{{ . | safeCSS }}"{{end}}>
<div{{ifor$heightish$widthish}}class="{{ if $height }} d-flex flex-column justify-content-{{ $vertical }} {{ end }} overflow-auto"{{end}}{{ifand(not$float)$style}}style="{{ $style | safeCSS }}"{{end}}>