/* Shared photo-focused dialog on the main site and anniversary exhibition. */
#detail{--sub:#c2c0b9;--ink:#fff;position:fixed;inset:0;margin:auto;border:0;padding:0;background:transparent;color:#c2c0b9;width:min(1100px,92vw);max-width:92vw;max-height:92svh;overflow:auto;box-shadow:none}
#detail[open]{display:block}
#detail::backdrop{background:rgba(33,31,28,.88);backdrop-filter:none}
#detail-photo{display:block;width:100%;height:auto;max-height:70svh;object-fit:contain;background:transparent}
#detail .detail-caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#detail .social-actions{display:flex;align-items:center;gap:12px;padding:6px 20px 0}
#detail .social-actions button,#detail .social-actions a{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;padding:0 8px;background:none;border:0;color:#c2c0b9;text-decoration:none;font:11px var(--sans,sans-serif);cursor:pointer}
#detail .social-actions svg{width:16px;height:16px;fill:currentColor}
#detail #heart{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round}
#detail #like[aria-pressed=true] #heart{fill:currentColor}
#detail #like:disabled{cursor:default}#detail #like:disabled:not([aria-pressed=true]),#detail #share[aria-disabled=true]{opacity:.5}
#detail #like-count{font-variant-numeric:tabular-nums}
#detail #social-status{font-size:12px;margin:4px 28px 8px;color:#c2c0b9}#detail #social-status:empty{display:none}
#detail #retry-likes{margin:0 28px 8px;background:none;border:0;color:#c2c0b9;font-size:12px;text-decoration:underline}
#detail .detail-navigation{display:flex;justify-content:space-between;padding:0 16px 8px}
#detail .detail-navigation button{min-height:44px;padding:10px 12px;background:none;border:0;font:12px var(--sans,sans-serif);color:#c2c0b9;cursor:pointer}
#detail a:focus-visible,#detail button:focus-visible{outline:1px solid #eee;outline-offset:2px}
#detail button:hover:enabled,#detail a[href]:hover{color:#fff}
@media(max-width:600px){#detail-photo{max-height:65svh}#detail .social-actions{padding-inline:10px}#detail .detail-navigation{padding-inline:6px}}
@media(max-height:500px){#detail-photo{max-height:58svh}}

#detail .close-detail svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round}

#detail-photo:focus{outline:none}

/* Keep the image and its close control together; one quiet toolbar below. */
#detail .photo-frame{position:relative;width:fit-content;max-width:100%;margin:0 auto}
#detail .photo-frame #detail-photo{width:auto;max-width:100%;height:auto}
#detail .photo-frame .close-detail{position:absolute;top:4px;right:4px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;margin:0;border:0;background:transparent;color:#716e65;cursor:pointer;z-index:1}
#detail .photo-frame .close-detail:hover{color:#211f1c}
#detail .photo-frame .close-detail:focus-visible{outline-color:#716e65;outline-offset:-4px}
#detail .close-detail svg{width:14px;height:14px}
#detail .detail-tools{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:8px 12px 4px}
#detail .detail-tools .social-actions{grid-column:1;padding:0;gap:6px;justify-self:start}
#detail .detail-tools .detail-navigation{grid-column:2;display:flex;align-items:center;justify-content:center;gap:12px;padding:0}
#detail .detail-navigation button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0}
#detail .detail-navigation svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:600px){#detail .detail-tools{padding:6px 0 2px}#detail .detail-tools .detail-navigation{gap:4px}#detail .detail-tools .social-actions{gap:0}}
