.gallery-standalone .gallery-soul-mark{width:76.8px}
.gallery-standalone .gallery-author{font-size:13.2px}
.gallery-standalone .gallery-poet,.gallery-standalone .gallery-first-appearance{font-size:clamp(13.2px,1.5vw,15.6px)}
.gallery-copyright{z-index:4;pointer-events:none;font-size:calc(10px + 1pt)}
/* Small credits need solid strokes; retain the paper-ink effect on poems/titles. */
.gallery-standalone :is(.gallery-copyright,.gallery-poet,.gallery-first-appearance){opacity:1;color:#555;filter:none;mix-blend-mode:normal}
@media(max-width:700px){.gallery-copyright{font-size:calc(9px + 1pt)}}
.gallery-share{position:absolute;bottom:max(10px,env(safe-area-inset-bottom));left:clamp(12px,3vw,45px);z-index:5;width:44px;height:44px;display:grid;place-items:center;background:none;border:0;color:var(--paper-ink);opacity:.52;cursor:pointer}
.gallery-share[hidden]{display:none}.gallery-share:hover,.gallery-share:focus-visible{opacity:1}
.gallery-share svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.share-dialog{width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:18px;border:1px solid #d5d5d5;background:#fff;color:#22282a;overflow:auto;font:14px/1.6 var(--serif)}
.share-dialog::backdrop{background:#20242750}
.share-dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.share-dialog h2{font-size:16px;font-weight:400;margin:0}
.share-close{font-size:24px;width:44px;height:44px;background:none;border:0;color:inherit;cursor:pointer}
.share-preview{display:block;max-width:100%;max-height:55dvh;width:auto;margin:auto;object-fit:contain}
.share-preview[hidden],.share-actions [hidden]{display:none}
.share-status{margin:12px 0;min-height:1.6em;font-size:12px}
.share-actions{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}
.share-actions button,.share-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;border:1px solid #888;background:#fff;color:inherit;font:inherit;text-decoration:none;cursor:pointer}
html[data-contrast=high] .gallery-share,html[data-contrast=high] .gallery-copyright{opacity:1}
@media(forced-colors:active){.gallery-share,.gallery-copyright{opacity:1}.share-dialog{border:1px solid CanvasText}}
