.bg25-container {
  position: fixed;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #ffffff;
  z-index: -7;
opacity: 1;
}

.infinite-scroll-bg {
  position: absolute;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  transform: perspective(42em) rotateX(30deg);
  transition: transform 0.6s ease-out; 
bottom: -17em;
}

.infinite-scroll-bg img {
  display: block;
  position: absolute;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

.infinite-scroll-bg img:first-child {
  animation: scroll-up-first 50s linear infinite;
}

.infinite-scroll-bg img:nth-child(2) {
  animation: scroll-up-second 50s linear infinite;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 60%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

@keyframes scroll-up-first {
  0% {
    top: -100vh;
  }
  100% {
    top: 0;
  }
}

@keyframes scroll-up-second {
  0% {
    top: 0;
  }
  100% {
    top: 100vh;
  }
}