/**
 * AnimateBox.dev — Print Dot Scatter
 * https://animatebox.dev
 *
 * Print-style dot screen image hover.
 */

.ab-print-dot-scatter {
  --ab-pds-font: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  --ab-pds-bg: #0b0b0c;
  --ab-pds-fg: #f3f1ec;
  --ab-pds-cursor: crosshair;

  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 160px;
  overflow: hidden;
  background: var(--ab-pds-bg);
  color: var(--ab-pds-fg);
  font-family: var(--ab-pds-font);
  -webkit-font-smoothing: antialiased;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: var(--ab-pds-cursor);
}

.ab-print-dot-scatter__canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ab-print-dot-scatter__fallback {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.ab-print-dot-scatter.is-static .ab-print-dot-scatter__canvas {
  display: none;
}

.ab-print-dot-scatter.is-static .ab-print-dot-scatter__fallback {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .ab-print-dot-scatter:not([data-ab-force-motion="true"])
    .ab-print-dot-scatter__canvas {
    /* Keep canvas visible — reduced motion freezes scatter, not the image. */
  }
}

.ab-print-dot-scatter-host {
  position: relative;
  overflow: hidden;
}
