.source-figure{margin:28px 0 36px;}
.source-figure>img{display:block;width:100%;height:auto;background:#fff;filter:none;}
.source-figure-open{display:block;position:relative;width:100%;padding:0;border:0;border-radius:0;cursor:zoom-in;background:#fff;}
.source-figure-open img{display:block;width:100%;height:auto;filter:none;}
.source-figure-expand{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:44px;height:44px;color:#203241;background:#fff;opacity:0;box-shadow:0 5px 18px #20324120;border-radius:50%;transition:opacity 160ms ease,transform 160ms ease;}
.source-figure-expand svg{width:21px;height:21px;stroke-width:2;}
.source-figure-open:is(:hover,:focus-visible) .source-figure-expand{opacity:1;transform:translateY(-2px);}
.source-figure figcaption{font-size:14px;line-height:1.6;margin:12px 0 0;color:var(--ink);}
.source-figure .source-figure-credit{margin:5px 0 0;font-size:12px;line-height:1.5;color:var(--muted);}
.source-figure-note{margin:14px 0 0;}
.source-figure-dialog{margin:auto;width:calc(100% - 32px);max-width:1400px;height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);padding:16px;background:var(--paper);color:var(--ink);border:0;border-radius:14px;box-shadow:0 16px 60px #0003;overflow:hidden;}
.source-figure-dialog::backdrop{background:#20324150;backdrop-filter:blur(6px);}
.source-figure-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 12px;}
.source-figure-dialog h2{font-family:var(--headerFont);font-size:24px;line-height:1.3;margin:0;min-width:0;flex:1;}
.source-figure-dialog nav{display:flex;gap:4px;flex:none;}
.source-figure-viewport{height:calc(100% - 56px);width:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;background:var(--light);}
.source-figure-viewport::-webkit-scrollbar{display:none;}
.source-figure-viewport img{display:block;max-width:none;height:auto;background:#fff;filter:none;margin:0 auto;}
@media(max-width:600px){.source-figure-dialog{width:calc(100% - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:12px;}.source-figure-dialog header{gap:4px;}.source-figure-dialog h2{font-size:20px;}.source-figure-dialog nav{gap:0;}}
@media(prefers-reduced-motion:reduce){.source-figure-expand{transition:none;}}

.source-figure-dialog .action-icon svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
@media(max-width:360px){.source-figure-dialog h2{font-size:18px;}}

.source-figure-dialog[open]{display:flex;flex-direction:column;}
.source-figure-dialog .action-icon{box-sizing:border-box;width:44px;height:44px;min-width:44px;flex:0 0 44px;padding:0;display:grid;place-items:center;}
.source-figure-dialog .action-icon svg{display:block;width:21px;height:21px;min-width:21px;flex:none;}
.source-figure-dialog header{flex:none;}
.source-figure-dialog .source-figure-viewport{height:auto;flex:1;min-height:0;}
