/* Pictures to post: the share dialog. Uses the page's colour variables. */
.share-dlg{border:0;border-radius:18px;padding:0;width:min(94vw,460px);max-height:94dvh;background:var(--bg);color:var(--ink);box-shadow:0 20px 60px rgba(0,0,0,.35)}
.share-dlg::backdrop{background:rgba(0,0,0,.55)}
.share-form{position:relative;display:flex;flex-direction:column;gap:6px;padding:18px 18px 16px}
.share-form h2{font-family:Fraunces,Georgia,serif;font-size:22px;margin:0 40px 6px 0}
.share-fmt{display:flex;gap:6px}
.share-fmt button{flex:1;min-height:44px;border-radius:999px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;font-size:15px;cursor:pointer}
.share-fmt button span{color:var(--mute);font-size:13px}
.share-fmt button[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:var(--onblue)}
.share-fmt button[aria-pressed=true] span{color:inherit;opacity:.85}
.share-prev{display:grid;place-items:center;background:#060914;border-radius:12px;padding:8px;margin:4px 0}
.share-prev img{display:block;max-width:100%;height:auto;max-height:42dvh;border-radius:6px;aspect-ratio:1/1;object-fit:contain}
.share-prev img.story{aspect-ratio:9/16}
.share-prev img:not([src]){visibility:hidden}
.share-form label{font-size:13.5px;color:var(--mute);margin-top:2px}
.share-form select{width:100%;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:var(--panel);font:inherit;color:var(--ink)}
.share-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.share-btns>*{flex:1 1 auto;min-height:44px;border-radius:10px;border:1px solid var(--line);background:var(--bg);color:var(--ink);display:grid;place-items:center;padding:0 14px;cursor:pointer;text-decoration:none;font:inherit;font-size:14.5px}
.share-btns>[hidden]{display:none}
.share-btns .pri{background:var(--blue);border-color:var(--blue);color:var(--onblue)}
.share-btns>:disabled,.share-btns>[aria-disabled=true]{opacity:.55;pointer-events:none}
.share-status{min-height:1.2em;margin:4px 0 0;font-size:13.5px}
.share-fine{margin:2px 0 0;font-size:12.5px;color:var(--mute)}
.share-close{position:absolute;top:12px;right:12px;width:38px;height:38px;border-radius:999px;border:1px solid var(--line);background:var(--bg);color:var(--ink);cursor:pointer;font-size:15px}
.share-dlg :focus-visible{outline:2px solid var(--blue);outline-offset:2px}
