/* Pan/zoom canvas (app/static/js/pan_zoom.js).

   Shared by the layout preview dialog and the reading editor board. */

/* --- pan/zoom canvas (app/static/js/pan_zoom.js) ------------------- */

.pan-zoom-viewport {
    position: relative;
    overflow: hidden;
    /* The canvas handles every gesture itself; without this the browser
       scrolls the page instead of letting us pan. */
    touch-action: none;
    user-select: none;
    width: 100%;
    height: 100%;
    background: var(--tblr-bg-surface-secondary, #f1f5f9);
}

.pan-zoom-viewport:focus-visible {
    outline: 2px solid var(--tblr-primary, #206bc4);
    outline-offset: -2px;
}

.pan-zoom-canvas {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    will-change: transform;
}
