.zk-hero-art {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  isolation: isolate;
}

.zk-hero-background {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.zk-garbage-truck {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 1px;
  width: 31%;
  contain: layout paint style;
  transform: translate3d(330%, 0, 0);
  animation: zkTruckDrive 24s linear infinite;
  animation-play-state: paused;
}

.zk-garbage-truck img {
  display: block;
  width: 100%;
  height: auto;
  backface-visibility: hidden;
}

.zk-hero-art.is-in-view .zk-garbage-truck {
  animation-play-state: running;
}

@keyframes zkTruckDrive {
  0%, 12% { transform: translate3d(330%, 0, 0); }
  72% { transform: translate3d(-135%, 0, 0); }
  100% { transform: translate3d(-135%, 0, 0); }
}

@media (max-width: 760px) {
  .zk-hero-art { min-height: 270px; }
  .zk-garbage-truck {
    width: 43%;
    animation-duration: 21s;
  }
  @keyframes zkTruckDrive {
    0%, 12% { transform: translate3d(245%, 0, 0); }
    72% { transform: translate3d(-125%, 0, 0); }
    100% { transform: translate3d(-125%, 0, 0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .zk-garbage-truck {
    animation: none;
    transform: translate3d(210%, 0, 0);
  }
}
