.photo-dialog{position:fixed;inset:0;margin:auto;width:min(960px,calc(100% - 24px));max-height:90dvh;padding:0;border:0;border-radius:18px;background:#fff;color:var(--navy);overflow:auto}.photo-dialog::backdrop{background:rgba(8,16,30,.78)}.detail-close{position:sticky;top:10px;float:right;margin:10px 10px -52px 0;z-index:1;border:0;border-radius:50%;width:42px;height:42px;background:#fff;color:#101549;font-size:26px;cursor:pointer;box-shadow:0 2px 12px #0003}.detail-photo{display:block;width:100%;max-height:70dvh;object-fit:contain;background:#fff}.detail-info{padding:18px 22px;text-align:left;overflow-wrap:anywhere}.detail-info h2{font-size:1rem;margin:0 0 8px}.detail-info p{white-space:pre-wrap;font-size:.85rem;line-height:1.5}.detail-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.diamond-reaction{position:relative;display:inline-flex;width:24px;height:24px;color:#fff;filter:drop-shadow(0 1px 2px #0009)}
.diamond-reaction svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.like-btn[aria-pressed="true"] .diamond-reaction{color:#b9efff}
.like-btn.has-likes .diamond-reaction svg{fill:#1689b0}
.diamond-reaction::after{content:'✦';position:absolute;left:50%;top:0;color:#e5ad27;font-size:17px;opacity:0;pointer-events:none}
.like-btn.sparkle .diamond-reaction{animation:gem-pop .45s ease-out}
.like-btn.sparkle .diamond-reaction::after{animation:gem-sparkle .65s ease-out}
@keyframes gem-pop{0%,100%{transform:scale(1)}40%{transform:scale(1.22)}70%{transform:scale(.95)}}
@keyframes gem-sparkle{0%{opacity:0;transform:translate(-50%,0) scale(.3) rotate(0deg)}25%{opacity:1}65%{opacity:1}100%{opacity:0;transform:translate(-50%,-30px) scale(1.15) rotate(65deg)}}
@media(prefers-reduced-motion:reduce){.like-btn.sparkle .diamond-reaction,.like-btn.sparkle .diamond-reaction::after{animation:none}}
.like-btn:focus-visible{outline:2px solid #7c3aed;outline-offset:4px;border-radius:4px}

#detailName{color:inherit;text-decoration:none}#detailName:hover{text-decoration:underline}
.detail-image-wrap{position:relative}
#detailGem{position:absolute;right:12px;bottom:12px;min-width:44px;min-height:44px;justify-content:center;padding:8px;gap:6px;color:#fff;text-shadow:0 1px 3px #000,0 0 2px #000;background:transparent;border:0;border-radius:6px}
#detailGem:focus-visible{outline:2px solid #1689b0;outline-offset:2px}
.photo-dialog .like-btn{display:inline-flex;align-items:center;font:inherit;font-size:.7rem;font-weight:750;cursor:pointer}.photo-dialog .like-btn:disabled{opacity:.55;cursor:wait}
.photo-dialog .post-date{font-size:.65rem;color:var(--muted)}
.photo-dialog .post-type{display:inline-flex;padding:3px 7px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:.58rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.photo-dialog .detail-photo{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
