/* Scoped enhancement: the original image/video always occupies its own layout. */
.oci-direction .o-dither-host:not(.o-hero-media) {
  position: relative;
}

.oci-direction .o-dither-canvas {
  position: absolute;
  display: block;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  border: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  contain: strict;
}

.oci-direction .o-dither-canvas.is-dither-ready {
  opacity: 1;
}

.oci-direction .o-hero-media[data-o-dither-kind] video,
.oci-direction .o-photo-band[data-o-dither-kind] img {
  filter: none;
  opacity: 1;
}

/* Keep headline contrast safe even over a white source frame or pointer reveal. */
.oci-direction .o-home-hero .o-hero-media::after {
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(25, 37, 170, .94) 0%,
    rgba(25, 37, 170, .86) 45%,
    rgba(25, 37, 170, .78) 62%,
    rgba(25, 37, 170, .08) 84%,
    rgba(25, 37, 170, .04) 100%);
}

.oci-direction .o-photo-band[data-o-dither-kind]::after {
  z-index: 2;
  background: rgba(25, 37, 170, .08);
}

@media (max-width: 900px) {
  .oci-direction .o-home-hero .o-hero-media::after {
    background: rgba(25, 37, 170, .08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .oci-direction .o-dither-canvas {
    display: none;
  }
}
