/* Our Team Section Styles */
.our-team-section {
  position: relative;
}

/* Container for scrolling animation */
.team-photos-container {
  width: 100%;
  position: relative;
}

/* Scrolling wrapper */
.team-photos-scroll {
  display: flex;
  gap: 1rem;
  animation: scroll-horizontal 30s linear infinite;
  width: fit-content;
}

@media (min-width: 640px) {
  .team-photos-scroll {
    gap: 1.5rem;
  }
}

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

/* Team member photo container */
.team-member-photo {
  flex-shrink: 0;
  position: relative;
}

/* Add hover effects */
.team-member-photo:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

/* Pause animation on hover */
.team-photos-container:hover .team-photos-scroll {
  animation-play-state: paused;
}

/* Alternative vertical rhythm for visual interest */
.team-member-photo:nth-child(even) {
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .team-member-photo:nth-child(even) {
    margin-top: 5rem;
  }
}

/* Responsive adjustments */
@media (max-width: 639px) {
  .team-photos-scroll {
    animation-duration: 25s;
  }
}

@media (min-width: 1024px) {
  .team-photos-scroll {
    animation-duration: 35s;
  }
}
