body {
  font-family: sans-serif;
}

.carousel {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-left: 100px;
}

.carousel::-webkit-scrollbar {
  display: none; /* hide scrollbar on mobile */
}

.carousel-item {
  flex: none;
  width: 300px;
  height: fit-content; /* Set a fixed height */
  scroll-snap-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* or 'cover' if you want to crop */
  border-radius: 16px;
  display: block;
}
.carousel-text-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
}

@media (max-width: 600px) {
  .carousel {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    margin-left: 10px;
  }
  .carousel-item {
    scroll-snap-align: center;
    flex: none;
    width: 80vw; /* Optional: make items fit better on mobile */
    max-width: 300px;
  }
  .carousel::-webkit-scrollbar {
    display: none;
  }
}
