/* Native Vertical Scrolling Carousel - Pure CSS */

.home-hero-column._2 {
  overflow: hidden;
  height: 100%;
  position: relative;
}

.home-hero-moving-column {
  display: flex;
  gap: 1rem;
  height: 100%;
}

/* Vertical scrolling containers */
.image-move-top,
.image-move-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

/* Scroll up animation */
.image-move-top {
  animation-name: scrollUp;
  animation-duration: 20s;
}

/* Scroll down animation */
.image-move-bottom {
  animation-name: scrollDown;
  animation-duration: 25s;
}

/* Keyframe animations */
@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes scrollDown {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}

/* Image items */
.image-item {
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.image-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Pause on hover */
.home-hero-moving-column:hover .image-move-top,
.home-hero-moving-column:hover .image-move-bottom {
  animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .image-move-top,
  .image-move-bottom {
    animation-duration: 15s;
  }
}

@media (max-width: 767px) {
  .home-hero-column._2 {
    /* Carousel visible on mobile - horizontal scroll */
    width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
  }
  
  .home-hero-moving-column {
    flex-direction: column; /* Stack rows vertically */
    width: 100%;
    gap: 1rem;
  }
  
  /* Hide only the SECOND occurrence of each row type */
  .image-move-top:nth-of-type(2),
  .image-move-bottom:nth-of-type(2) {
    display: none;
  }
  
  .image-move-top,
  .image-move-bottom {
    flex-direction: row; /* Horizontal scroll */
    animation-duration: 15s;
    width: max-content;
  }
  
  /* First row scrolls LEFT */
  .image-move-top {
    animation-name: scrollLeft;
  }
  
  /* Second row scrolls RIGHT */
  .image-move-bottom {
    animation-name: scrollRight;
  }
  
  /* Horizontal scroll LEFT animation */
  @keyframes scrollLeft {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  
  /* Horizontal scroll RIGHT animation */
  @keyframes scrollRight {
    0% {
      transform: translateX(-50%);
    }
    100% {
      transform: translateX(0);
    }
  }
  
  .image-item {
    border-radius: 8px;
    width: 280px; /* Fixed width for horizontal scroll */
    height: 200px;
    flex-shrink: 0;
  }
  
  .image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

