.poster-share-card{color:var(--ink)}
.poster-card-actions .event-join{border:0;cursor:pointer}
.poster-thumbnail{width:128px;padding:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--paper);cursor:pointer;align-self:center}
.poster-thumbnail img{display:block;width:100%;height:auto}
.poster-share-copy{flex:1;min-width:0}
.poster-share-copy h3{font-family:var(--font-content);font-size:1.2rem;font-weight:500;line-height:1.25;margin:3px 0;color:var(--ink)}
.poster-share-copy p{font-size:1rem;color:var(--muted);margin:0;max-width:36rem}
.poster-share-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px}
.poster-share-actions .primary-button{width:auto;margin:0;white-space:normal;min-height:44px}
.poster-share-actions .text-button{margin:0;min-height:44px;font-size:.875rem}
.poster-dialog{width:min(860px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--line);border-radius:20px;background:var(--card);color:var(--ink);overflow:auto}
.poster-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--line)}
.poster-dialog-header h2{font-family:"Newsreader",serif;font-size:1.5rem;line-height:1.2;margin:0}
.poster-dialog-close{width:44px;height:44px;flex-shrink:0;border:1px solid var(--line);border-radius:50%;background:var(--card);color:var(--ink);cursor:pointer;font-size:1.75rem}
.poster-viewport{max-height:60dvh;overflow:auto;overscroll-behavior:contain;padding:12px;background:var(--paper)}
.poster-viewport img{display:block;width:auto;max-width:100%;max-height:56dvh;height:auto;margin:auto}
.poster-viewport.zoomed img{width:160%;max-width:none;max-height:none;margin:0}
.poster-dialog-footer{padding:16px 20px;border-top:1px solid var(--line)}
.poster-dialog-footer p{font-size:1rem;color:var(--muted);margin:0 0 12px}
@media(max-width:480px){.poster-share-actions{gap:4px 14px}.poster-share-actions .primary-button{padding:12px 18px}.poster-dialog-header,.poster-dialog-footer{padding:14px 16px}}

@media(max-width:900px){.poster-share-card{grid-template-columns:128px minmax(0,1fr)}.poster-card-actions{grid-column:1/-1}}
@media(max-width:720px){.poster-share-card{grid-template-columns:112px minmax(0,1fr);gap:14px}.poster-thumbnail{width:112px;grid-column:1;grid-row:2}.poster-share-copy{display:contents}.poster-share-copy h3{grid-column:1/-1;grid-row:1;font-size:1.15rem;margin:0}.poster-share-copy p{grid-column:2;grid-row:2}.poster-card-actions{grid-column:1/-1;grid-row:3}}

/* Match the compact meeting actions. */
.poster-action-icon{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.poster-card-actions,.poster-dialog-footer .poster-share-actions{display:flex;align-items:center;flex-direction:row;flex-wrap:wrap;gap:8px}
.poster-card-actions>button,.poster-dialog-footer .poster-share-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;width:auto;flex:0 1 auto;padding:10px 14px;border-radius:999px;font-size:.875rem;text-decoration:none}
.poster-card-actions .event-secondary,.poster-dialog-footer .text-button{border:1px solid var(--line);background:var(--card);color:var(--terracotta)}
.poster-card-actions button:hover,.poster-dialog-footer button:hover{filter:brightness(.96)}
.poster-card-actions button:focus-visible,.poster-dialog-footer button:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.poster-dialog-footer .text-button span{margin-left:0}
@media(max-width:460px){.poster-card-actions>button{width:auto;flex:1}}

/* Larger invitation preview with the requested sanctuary message. */
.poster-thumbnail{width:152px}.poster-share-copy p{color:var(--ink)}.poster-share-copy p strong{font:500 1.125rem/1.45 var(--font-content)}
@media(max-width:900px){.poster-share-card{grid-template-columns:152px minmax(0,1fr)}}
@media(max-width:720px){.poster-share-card{grid-template-columns:132px minmax(0,1fr)}.poster-thumbnail{width:132px;grid-row:1}.poster-share-copy p{grid-row:1}.poster-card-actions{grid-row:2}}
@media(max-width:360px){.poster-share-card{grid-template-columns:1fr}.poster-thumbnail{width:160px;justify-self:center}.poster-share-copy p{grid-column:1;grid-row:2;text-align:center}.poster-card-actions{grid-row:3}}

/* Compact poster viewer toolbar. */
.poster-dialog-header{padding:10px 16px}
.poster-toolbar{display:flex;align-items:center;gap:8px}
.poster-toolbar-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--card);color:var(--ink);cursor:pointer}
.poster-toolbar-button .poster-action-icon{width:20px;height:20px;flex-basis:20px}
.poster-toolbar-button:hover{filter:brightness(.96)}
.poster-toolbar-button[aria-pressed="true"]{background:var(--paper);color:var(--terracotta)}
.poster-toolbar-button:focus-visible{outline:3px solid var(--focus);outline-offset:3px}

.poster-dialog-footer .poster-share-actions{justify-content:center}

.poster-dialog-close{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:0;line-height:1;appearance:none}
.poster-dialog-close .poster-action-icon{width:20px;height:20px;flex-basis:20px}
.poster-dialog-close:hover{filter:brightness(.96)}
.poster-dialog-close:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.poster-share-section .section-heading h2{font-size:clamp(1.125rem,5.1vw,1.65rem);letter-spacing:-.02em;text-wrap:nowrap;line-height:1.2}
@media(max-width:319px){.poster-share-section .section-heading h2{text-wrap:wrap}}

/* Expanded poster: one icon toolbar stays beneath the image. */
#posterDialog[open]{display:flex;flex-direction:column;overflow:hidden}
#posterDialog .poster-viewport{flex:1;min-height:0;max-height:calc(100dvh - 120px)}
#posterDialog .poster-viewport img{max-height:calc(100dvh - 144px)}
#posterDialog .poster-viewport.zoomed img{max-height:none}
#posterDialog .poster-dialog-footer{flex:0 0 auto;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:var(--card)}
#posterDialog .poster-toolbar{justify-content:center;gap:12px;flex-wrap:nowrap}
#posterDialog .poster-toolbar-button,#posterDialog .poster-dialog-close{width:44px;min-width:44px;height:44px;padding:0;flex:0 0 44px;color:var(--terracotta);background:var(--card)}
