        .kg-image-preview { margin: auto; padding: 0; border: 0; width: min(1100px, 94vw); height: 90dvh; max-width: none; max-height: none; background: #111; color: white; overflow: hidden; }
        .kg-image-preview::backdrop { background: rgba(0,0,0,.9); }
        .kg-image-preview-stage { height: 100%; display: flex; align-items: center; justify-content: center; padding: 64px 56px; touch-action: pan-y pinch-zoom; }
        .kg-image-preview-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
        .kg-image-preview button { position: absolute; z-index: 1; min-width: 44px; min-height: 44px; border-radius: 999px; background: rgba(0,0,0,.65); color: white; }
        .kg-image-preview button:focus-visible { outline: 2px solid white; outline-offset: 2px; }
        .kg-image-preview-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
        .kg-image-preview-prev { left: 8px; top: calc(50% - 22px); }
        .kg-image-preview-next { right: 8px; top: calc(50% - 22px); }
        .kg-image-preview-count { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); pointer-events: none; }
        @media(max-width:639px) {
            .kg-image-preview { width: 100vw; height: 100dvh; }
            .kg-image-preview-stage { padding: 64px 0; }
            .kg-image-preview-close { right: auto; left: 12px; }
            .kg-image-preview-count { top: max(24px, env(safe-area-inset-top)); right: 20px; bottom: auto; left: auto; transform: none; }
        }
