.carousel {
  position: relative;
  margin-bottom: 2rem;
  width: 100%;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  margin-right: -100%;
  backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
}

.carousel-item video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 80vh;
  object-fit: contain;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
  display: block;
}

.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
  transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
  transform: translateX(-100%);
}

.carousel-item-next.carousel-item-start,
.carousel-item-prev.carousel-item-end {
  transform: translateX(0);
}

.carousel-item.active {
  display: block;
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  padding: 0;
  color: #fff;
  text-align: center;
  background: 0 0;
  border: 0;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.carousel-control-prev {
  left: 0;
}

.carousel-control-next {
  right: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 100% 100%;
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

#LongSplatReconResults .carousel-indicators {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0;
  margin-bottom: 1rem;
  gap: 4px;
}

#LongSplatReconResults .carousel-indicators button {
  box-sizing: content-box;
  width: 30px;
  height: 3px;
  padding: 0;
  margin: 0;
  text-indent: -999px;
  cursor: pointer;
  background-color: #adb5bd;
  background-clip: padding-box;
  border: 0;
  opacity: 0.5;
  transition: all 0.3s ease;
}

#LongSplatReconResults .carousel-indicators button.active {
  background-color: #343a40;
  opacity: 1;
}

#LongSplatReconResults .carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: auto;
  top: 0;
  padding: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
}

#LongSplatReconResults .carousel-caption h5 {
  margin: 0;
  font-size: 1.8rem;
  color: #000;
}

@media (max-width: 768px) {
  #LongSplatReconResults .carousel-indicators {
    max-width: 100%;
    gap: 3px;
    padding: 0 10px;
  }
  
  #LongSplatReconResults .carousel-indicators button {
    width: 20px;
    height: 2px;
  }
  
  #LongSplatReconResults .carousel-caption {
    padding: 0.5rem;
  }
  
  #LongSplatReconResults .carousel-caption h5 {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  #LongSplatReconResults .carousel-indicators {
    max-width: 90%;
    gap: 0.3%;
  }
  
  #LongSplatReconResults .carousel-indicators button {
    height: 3px;
  }
}

@media (max-width: 480px) {
  #LongSplatReconResults .carousel-indicators {
    max-width: 95%;
    gap: 0.2%;
  }
  
  #LongSplatReconResults .carousel-indicators button {
    height: 2px;
  }
}

.carousel-caption {
  position: absolute;
  right: 15%;
  bottom: 1.25rem;
  left: 15%;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  color: #fff;
  text-align: center;
}

.carousel-caption h5 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.2;
  color: #000;
}

.w-100 {
  width: 100% !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.hr {
  margin: 1rem 0;
  color: inherit;
  background-color: currentColor;
  border: 0;
  opacity: 0.25;
  height: 1px;
}

/* Add specific rules for LongSplatReconResults carousel controls */
#LongSplatReconResults .carousel-control-prev {
  left: 0 !important;
  right: auto !important;
}

#LongSplatReconResults .carousel-control-next {
  right: 0 !important;
  left: auto !important;
}

/* Fix control icons positioning */
#LongSplatReconResults .carousel-control-prev-icon,
#LongSplatReconResults .carousel-control-next-icon {
  position: absolute !important;
}

#LongSplatReconResults .carousel-control-prev-icon {
  left: 15% !important;
}

#LongSplatReconResults .carousel-control-next-icon {
  right: 15% !important;
} 