.carousel,
.carousel * {
  box-sizing: border-box;
}

.carousel {
  position: relative;
  overflow: hidden;
  width: 80%;
}

/* Force-remove bullets/numbers regardless of theme specificity */
.carousel ul,
.carousel ol {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.carousel ul {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel ul li {
  flex-shrink: 0;
  position: relative;
  background-size: cover;
  background-position: center;
  list-style: none !important;
}

.carousel ul li::marker {
  content: none;
}

.carousel ul li img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* was: cover */
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  background: #000; /* fills empty space; change to match your site */
}

.carousel ul li div {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 8px;
  margin: 0;
}

/* Navigation dots */
.carousel ol {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  gap: 8px;
  z-index: 5;
}

.carousel ol li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.carousel ol li::marker {
  content: none;
}

.carousel ol li a {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  text-decoration: none;
}

.carousel ol li a.active {
  background: #fff;
}

/* Prev/Next arrows */
.carousel .prev,
.carousel .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 12px;
  cursor: pointer;
  z-index: 5;
  user-select: none;
}

.carousel .prev { left: 10px; }
.carousel .next { right: 10px; }

.carousel .prev:hover,
.carousel .next:hover {
  background: rgba(0, 0, 0, 0.6);
}