/* One fixed guard follows only the image under the pointer. */
.kokil-image-hover-guard {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  display: none;
  z-index: auto;
  background: rgba(0, 0, 0, 0.001);
  cursor: default;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

body.kokil-image-guard-enabled:not(.edit-mode):not(.kokil-image-guard-disabled) .kokil-image-hover-guard.is-active {
  display: block;
}

.kokil-image-hover-guard.is-probing {
  pointer-events: none !important;
}

/* Plain photo cells have no captions or controls that could be covered. */
.kokil-image-hover-guard.is-strong {
  z-index: 10 !important;
}

body.kokil-image-guard-enabled:not(.edit-mode):not(.kokil-image-guard-disabled) main img,
body.kokil-image-guard-enabled:not(.edit-mode):not(.kokil-image-guard-disabled) main video {
  -webkit-user-drag: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

/* The home page keeps its authored crop, but photographs never zoom or shift. */
body.kokil-image-guard-home:not(.edit-mode) main img.kokil-home-static-image {
  transform: var(--kokil-home-image-transform, none) !important;
  transition: none !important;
  animation: none !important;
}
