.instagram-scroller {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2rem;
}

.insta-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.insta-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  flex-shrink: 0;
  width: 240px;
  height: 240px;
  cursor: pointer;
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.insta-item:hover img {
  transform: scale(1.1);
}

.insta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  color: white;
  font-size: 2rem;
}

.insta-item:hover .insta-overlay {
  opacity: 1;
}

/* scrolling animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause on hover */
.instagram-scroller:hover .insta-track {
  animation-play-state: paused;
}
