.people {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping */
  overflow-x: auto !important; /* Enable horizontal scrolling */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  gap: 16px;
  padding: 16px;
  white-space: nowrap; /* Prevent items from breaking into the next line */
}


/* Custom scrollbar */
.people::-webkit-scrollbar {
  height: 8px;
}

.people::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.people::-webkit-scrollbar-thumb:hover {
  background: #615f5f;
}

/* Individual image container */
.imgg {
  display: inline-block; /* Display inline for horizontal scroll */
  flex: 0 0 auto;
  text-align: center;
}
.imgg img {
  width: 100%;
  height: auto;
  max-width: 150px;
  max-height: 180px;
  object-fit: cover;
}

.imgg h5 {
  margin: 12px 0;
  font-size: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 2560px) {
  .imgg {
    flex: 0 0 calc(14% - 16px); /* 7 images per row */
    max-width: calc(14% - 16px);
  }
}

@media (max-width: 1924px) {
  .imgg {
    flex: 0 0 calc(16% - 16px); /* 6 images per row */
    max-width: calc(16% - 16px);
  }
}

@media (max-width: 1441px) {
  .imgg {
    flex: 0 0 calc(20% - 16px); /* 5 images per row */
    max-width: calc(20% - 16px);
  }
}

@media (max-width: 1024px) {
  .imgg {
    flex: 0 0 calc(25% - 16px); /* 4 images per row */
    max-width: calc(25% - 16px);
  }
}

@media (max-width: 769px) {
  .people {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .imgg {
    flex: 0 0 calc(33.33% - 16px); /* 3 images per row */
    max-width: calc(33.33% - 16px);
  }
}

@media (max-width: 426px) {
  .people {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .imgg {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .imgg img {
    max-width: 100px;
    max-height: 120px;
  }

  .imgg h5 {
    font-size: 0.7rem;
  }
}
@media (max-width: 394px) {
  .people {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .imgg {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .imgg img {
    max-width: 100px;
    max-height: 120px;
  }

  .imgg h5 {
    font-size: 0.7rem;
  }
}

@media (max-width: 376px) {
  .people {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .imgg {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .imgg img {
    max-width: 100px;
    max-height: 120px;
  }

  .imgg h5 {
    font-size: 0.7rem;
  }
}

@media (max-width: 321px) {
  .people {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .imgg {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .imgg img {
    max-width: 100px;
    max-height: 120px;
  }

  .imgg h5 {
    font-size: 0.7rem;
  }
}
