/* Carousel Gallery Styles - Mobile design for all screen sizes */
.carousel-gallery {
  position: relative;
  width: 100%;
  margin: 0 auto 30px;
  overflow: hidden;
  background-color: #000;
  border-radius: 15px;
  border: 2px solid hsl(0, 0%, 70%);
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  /* Always show 1 slide at a time */
  position: relative;
  padding: 0;
  height: 20rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  opacity: 0.7;
  transform: scale(1.1);
  /* Prevent blur edges from showing */
  z-index: 0;
}

.carousel-image {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 0;
  transition: transform 0.3s ease;
}

/* Caption styles */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.carousel-nav-button {
  position: absolute;
  top: 85%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
  border: none;
  color: white;
}

.carousel-nav-button:focus {
  outline: none;
}

.carousel-nav-button:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.carousel-nav-button.prev {
  left: 15px;
}

.carousel-nav-button.next {
  right: 15px;
}

.carousel-dots {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background-color: white;
}

@media (min-width: 768px) {
  .carousel-caption {
    font-size: 1.2rem;
    padding: 10px 20px;
  }

  .carousel-slide {
    height: 35rem;
  }
}

@media (max-width: 768px) {
  .carousel-nav-button {
    top: 85%;
    transform: translateY(-100%);
  }
}