.moving-img-wrapper {
  background: rgb(245, 248, 245);
  height: 100vh;
  display: flex;
  align-items: center;
  margin: 0;
}

.marquee-wrapper {
  overflow: hidden;
  width: 100%;
}

.marquee {
  display: flex;
  width: 100%;
  animation: scroll 25s linear infinite;
}

/* Pause animation */
.marquee.paused {
  animation-play-state: paused;
}

/* Track */
.marquee-track {
  display: flex;
  gap: 40px;
  padding-right: 40px;
}

/* Images */
.moving-img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Blur others */
.marquee.focused .moving-img {
  filter: blur(4px) brightness(0.6);
}

/* Active image */
.moving-img.active {
  filter: none !important;
  transform: scale(1.35);
  z-index: 5;
}

/* Seamless movement */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

