/* zoomfix-v1, 25 Nov 2026: file viewer zoom stays inside the document area. */
/* The viewer itself never pans or pinches the page; only the doc box scrolls. */
.nc-fv{overscroll-behavior:none;-webkit-text-size-adjust:100%}
.nc-fv-bar{position:relative;z-index:3;touch-action:none;-webkit-user-select:none;user-select:none}
.nc-fv-body{overflow:hidden;touch-action:pan-x pan-y}
/* Doc box: one-finger pan is native scroll; pinch is ours (no native zoom). */
.nc-vz-wrap{position:absolute;inset:0;overflow:auto;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;overscroll-behavior:contain}
.nc-vz-wrap.nc-vz-fit{overflow-x:hidden}
.nc-vz-wrap.nc-vz-live{overflow:hidden}
.nc-vz-sizer{position:relative;margin:0;padding:0}
.nc-vz-layer{position:absolute;left:0;top:0;transform-origin:0 0}
/* Images: the layer is sized to the zoom, the picture fills it. */
.nc-fv-imgwrap.nc-vz-wrap{display:block;background:#0b1522}
.nc-fv-imgwrap .nc-vz-layer img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;-webkit-user-drag:none;user-select:none;-webkit-touch-callout:none}
/* PDF detail tile: only the visible part of a page at full resolution. */
.nc-fv-page canvas.nc-vz-detail{position:absolute;display:block;z-index:1;pointer-events:none}
