.cp-image-trigger { cursor: zoom-in; }
html.cp-image-viewer-open { overflow: hidden; }
.cp-image-viewer { box-sizing: border-box; position: fixed; inset: 0; width: min(1200px, calc(100vw - 48px)); height: min(900px, calc(100dvh - 48px)); max-width: none; max-height: none; padding: 0; margin: auto; border: 1px solid #ffffff24; border-radius: 16px; background: #101722; color: #fff; box-shadow: 0 24px 100px #0008; overflow: hidden; }
.cp-image-viewer::backdrop { background: #080d17c9; }
.cp-image-viewer[open] { display: flex; flex-direction: column; }
.cp-image-viewer__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; flex: 0 0 auto; }
.cp-image-viewer__bar [data-count] { margin-right: auto; font-size: 14px; }
.cp-image-viewer button { appearance: none; border: 0; border-radius: 8px; color: #fff; background: #ffffff20; cursor: pointer; font: inherit; min-height: 44px; padding: 8px 14px; }
.cp-image-viewer button:hover { background: #ffffff38; }
.cp-image-viewer button:focus-visible { outline: 2px solid #c6f36b; outline-offset: 2px; }
.cp-image-viewer__stage { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; min-height: 0; padding: 10px 64px 20px; overflow: auto; }
.cp-image-viewer__stage img { display: block; max-width: 100%; max-height: calc(100% - 46px); object-fit: contain; flex: 0 1 auto; min-height: 0; }
.cp-image-viewer__stage p { margin: 12px 0 0; flex: 0 0 auto; text-align: center; font-size: 14px; word-break: keep-all; overflow-wrap: anywhere; }
.cp-image-viewer.is-zoomed .cp-image-viewer__stage { display: block; }
.cp-image-viewer.is-zoomed img { max-width: none; max-height: none; margin: auto; }
.cp-image-viewer__prev, .cp-image-viewer__next { position: absolute; top: 50%; font-size: 28px !important; }
.cp-image-viewer__prev { left: 10px; }.cp-image-viewer__next { right: 10px; }
.cp-image-viewer [hidden] { display: none !important; }
.cp-image-viewer__error { position: absolute; bottom: 20px; left: 20px; right: 20px; padding: 12px; background: #101722; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 600px) { .cp-image-viewer { width: calc(100vw - 16px); height: calc(100dvh - 24px); border-radius: 10px; }.cp-image-viewer__stage { padding: 8px 12px 68px; }.cp-image-viewer__prev, .cp-image-viewer__next { top: auto; bottom: 12px; }.cp-image-viewer__bar { gap: 6px; padding: 8px; } }
