.article-linked-gallery{margin-block:32px;padding-block:24px;border-block:1px solid var(--color-border,#dce1e7)}
.article-linked-gallery>header{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}.article-linked-gallery>header h2{font-size:21px;margin:0}.article-linked-gallery>header>span{font-size:13px;color:var(--color-text-muted,#647084)}
.article-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.article-gallery-grid figure{margin:0;min-width:0}.article-gallery-grid a{display:block;background:var(--color-surface-alt,#f4f5f8);aspect-ratio:4/3}.article-gallery-grid img{width:100%;height:100%;display:block;object-fit:contain}.article-gallery-grid figcaption{font-size:13px;line-height:1.6;margin-top:8px;overflow-wrap:anywhere}.article-linked-gallery .author-read{display:inline-flex;align-items:center;gap:8px;min-height:44px}
.article-gallery-dialog{box-sizing:border-box;border:0;border-radius:6px;width:min(1200px,calc(100vw - 32px));height:90dvh;max-width:100%;max-height:90dvh;padding:0;background:#111318;color:#fff;overflow:hidden}.article-gallery-dialog[open]{display:flex;flex-direction:column}.article-gallery-dialog::backdrop{background:#000c}.article-gallery-dialog :is(button){width:44px;height:44px;flex:none;display:inline-flex;align-items:center;justify-content:center;background:#262b33;color:#fff;border:1px solid #46505c;border-radius:4px}.article-gallery-dialog button:focus-visible{outline:3px solid #80c5ff;outline-offset:2px}.article-gallery-dialog button:disabled{opacity:.4}
.article-gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;flex:none}.article-gallery-toolbar strong{font-size:16px;line-height:1.5;overflow-wrap:anywhere;max-height:90px;overflow:auto}.article-gallery-dialog figure{margin:0;flex:1;min-height:0;display:flex;flex-direction:column}.article-gallery-dialog figure>img{width:100%;height:100%;min-height:0;object-fit:contain;flex:1}.article-gallery-dialog figcaption{padding:12px 20px;font-size:14px;line-height:1.6;max-height:15dvh;overflow:auto;flex:none}.article-gallery-dialog footer{display:flex;align-items:center;justify-content:space-between;padding:8px 16px 16px;gap:20px;flex:none}.article-gallery-dialog [data-gallery-error]{padding:8px 16px;margin:0;background:#702d37;color:white;font-size:13px}.article-gallery-dialog [hidden]{display:none!important}body:has(.article-gallery-dialog[open]){overflow:hidden}
@media(max-width:600px){.article-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.article-gallery-dialog{inset:0;margin:0;width:100%;height:100dvh;max-height:100dvh;border-radius:0}.article-gallery-dialog footer{padding-bottom:max(16px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.article-gallery-dialog *{scroll-behavior:auto!important}}
