/* Core carousel container */
.carousel {
  position: relative;
}

/* Slide container */
.carousel ul {
  overflow: auto;
  display: flex;
  flex-wrap: nowrap;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  background: gray;
  -ms-overflow-style: none;
  scrollbar-width: none;
  margin: 0;
  padding: 0;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.carousel ul::-webkit-scrollbar {
  display: none;
}

/* Individual slide */
.carousel ul li {
  position: relative;
  min-width: 100%;
  list-style: none;
  background: url() center center / cover no-repeat;
  scroll-snap-align: start;
}

/* Image inside the slide */
.carousel ul li > * {
  position: absolute;
  left: 0;
  top: 0;
  width: 1000%;
  height: 100%;
}

.carousel ul li > img {
  object-fit: cover;
}

/* Slide content/text area */
.carousel ul li > div {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
}

/* Dot navigation container */
.carousel ol {
  position: absolute;
  bottom: 15px;
  display: flex;
  justify-content: center;
  left: 45%;
  transform: translateX(-50%);
  z-index: 9;
  width: 100%; /* New: Ensures the dot container spans the full width of the carousel */
}

/* Dot list item */
.carousel ol li {
  list-style: none;
  padding: 0;
  margin: 0; /* Ensures no default margin is interfering */
}

/* Individual dot */
.carousel ol li a {
  display: flex;
  height: 10px;
  width: 10px;
  border: 2px solid white;
  background: transparent;
  border-radius: 100%;
  margin: 0 5px; /* Adds space between dots */
}

/* Selected dot */
.carousel ol li.selected a {
  background: white;
}

/* Previous/Next arrows */
.carousel .prev, .carousel .next {
  display: none;
  user-select: none;
  cursor: pointer;
  font-size: 50px;
  color: white;
  position: absolute;
  left: 0;
  padding: 15px 15px 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  line-height: 0;
}

.carousel .next {
  left: auto;
  right: 0;
}

/* Mobile styles */
@media (max-width: 768px) {
  .carousel ol {
    bottom: 10px;
  }

  .carousel ol li a {
    height: 8px;
    width: 8px;
    margin: 0 4px;
  }
}
