/* lockdown.css — pairs with lockdown.js. Loaded last. */

/* no pinch-zoom / double-tap-zoom anywhere (scrolling still works); the old rules that re-allowed pinch-zoom are undone */
html, body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: pan-x pan-y; }
.swipe-track, .lightbox-layer, .kc-snip { touch-action: pan-y !important; }
.lightbox-stage img, .kc-snip-scroll { touch-action: pan-x pan-y !important; }

/* no text selection, no long-press callout */
html.kc-lock, html.kc-lock *, html.kc-lock *::before, html.kc-lock *::after {
  -webkit-touch-callout: none !important; -webkit-user-select: none !important; user-select: none !important;
}
/* ...except where people type */
html.kc-lock input, html.kc-lock textarea, html.kc-lock select,
html.kc-lock [contenteditable]:not([contenteditable="false"]), html.kc-lock [contenteditable]:not([contenteditable="false"]) *,
html.kc-lock .kc-editor-input, html.kc-lock .kc-editor-input *, html.kc-lock .kc-rich-input, html.kc-lock .kc-rich-input *,
html.kc-lock .kc-cell, html.kc-lock .kc-tbl-title, html.kc-lock [data-allow-select], html.kc-lock [data-allow-select] * {
  -webkit-user-select: text !important; user-select: text !important;
}

/* images, avatars, video and canvases can't be dragged out or long-press saved */
html.kc-lock img, html.kc-lock svg, html.kc-lock video, html.kc-lock canvas, html.kc-lock a {
  -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none !important;
}

/* no printing the page to PDF */
@media print { html.kc-lock body { display: none !important; } }
