.image-modal{z-index:1000;box-sizing:border-box;background:#000000e0;justify-content:center;align-items:center;padding:48px 56px;display:flex;position:fixed;inset:0}.image-modal-close{color:#f9fafb;width:40px;height:40px;font:inherit;cursor:pointer;background:#111827d9;border:1px solid #ffffff4d;border-radius:50%;font-size:24px;line-height:1;position:absolute;top:10px;right:12px}.image-modal-figure{flex-direction:column;align-items:center;gap:8px;min-width:0;max-width:100%;max-height:100%;margin:0;display:flex}.image-modal-figure img{object-fit:contain;max-width:calc(100vw - 112px);max-height:calc(100dvh - 140px);display:block}.image-modal-figure figcaption{color:#d1d5db;flex-wrap:wrap;justify-content:center;gap:6px 14px;font-size:13px;display:flex}.image-modal-figure figcaption a{color:#93c5fd}.image-modal-name{text-overflow:ellipsis;white-space:nowrap;max-width:60vw;overflow:hidden}.image-modal-count{font-variant-numeric:tabular-nums;color:#f9fafb}.image-modal-step{color:#f9fafb;width:44px;height:44px;font:inherit;cursor:pointer;background:#111827d9;border:1px solid #ffffff4d;border-radius:50%;font-size:28px;line-height:1;position:absolute;top:50%;transform:translateY(-50%)}.image-modal-step.prev{left:8px}.image-modal-step.next{right:8px}.image-modal button:focus-visible,.image-modal a:focus-visible{outline-offset:2px;outline:2px solid #93c5fd}@media (width<=600px){.image-modal{padding:56px 8px 72px}.image-modal-figure img{max-width:calc(100vw - 16px);max-height:calc(100dvh - 150px)}.image-modal-step{top:auto;bottom:12px;transform:none}.image-modal-name{max-width:80vw}}.image-preview{box-sizing:border-box;border:1px solid var(--border,#d1d5db);background:var(--bg,transparent);border-radius:6px;flex:none;max-width:min(320px,100%);max-height:240px;display:block;overflow:hidden}.image-preview.chat-thumb{max-width:min(320px,100%);max-height:240px}.image-preview a,.image-preview img{width:100%;height:100%;display:block}.image-preview a{cursor:zoom-in}.image-preview img{object-fit:contain}.image-preview-retry{width:100%;height:100%;color:var(--text-dim,#6b7280);cursor:pointer;background:0 0;border:0;font-size:11px}
