html.mochi-viewer-open{overflow:hidden}.mochi-viewer{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:16px;margin:auto;border:0;border-radius:12px;background:#fff;color:#333;box-shadow:0 12px 48px #0006;overflow:auto;font-family:Arial,"Meiryo",sans-serif}.mochi-viewer:not([open]){display:none}.mochi-viewer::backdrop{background:rgba(0,0,0,.68)}.mochi-viewer-header{display:flex;align-items:center;gap:16px;margin:0 0 12px}.mochi-viewer-title{flex:1;margin:0;padding:0;font-size:18px;line-height:1.6;font-weight:bold;border:0;background:none;color:#333}.mochi-viewer-close{flex-shrink:0;min-width:88px;min-height:44px;padding:8px 12px;background:#f1eee8;color:#543424;border:0;border-radius:6px;font:inherit;font-size:14px;cursor:pointer}.mochi-viewer-close:hover{background:#e5ded3}.mochi-viewer-close:focus-visible{outline:3px solid #007f99;outline-offset:3px}.mochi-viewer-image{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px);object-fit:contain;margin:0 auto;filter:none;box-shadow:none;background:#fff}.mochi-viewer-error{font-size:14px;line-height:1.6;color:#92321c}

.mochi-viewer-caption{margin:12px 0 0;font-size:16px;line-height:1.7;text-align:center;white-space:pre-line}.mochi-viewer.has-description .mochi-viewer-image{max-height:calc(100vh - 210px);max-height:calc(100dvh - 210px)}
