.carousel-wrapper {
  background-color: white;
  border-radius: 16px;
  padding: 2rem;
  margin-left: -64px;
  margin-right: -64px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

@media (max-width: 900px) {
  .carousel-wrapper {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 12px;
  }
}

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

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: none;
}

.carousel-slide.active {
  opacity: 1;
  display: block;
}

.carousel-media {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: #E0E0E0;
}

.carousel-image,
.carousel-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Placeholder styling for missing media */
.carousel-media:has(img[src=""]),
.carousel-media:has(img:not([src])) {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-subtitle {
  font-family: 'Gambetta', sans-serif;
  font-size: 1rem;
  color: #AEAEB2;
  text-align: left;
  margin: 1rem 0 0 0;
  padding: 0.75rem 1rem 0.75rem 3.25rem;
  background-color: var(--color-bg);
  border-radius: 8px;
  position: relative;
  font-style: italic;
}

.carousel-subtitle::before {
  content: "\f130";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-style: normal;
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-orange);
  font-size: 0.75rem;
  width: 1.75rem;
  height: 1.75rem;
  background-color: rgba(233, 87, 62, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.75rem;
  text-align: center;
}

/* Navigation dots */
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: #D0D0D0;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-dot:hover {
  background-color: #B0B0B0;
}

.carousel-dot.active {
  background-color: var(--color-orange);
  transform: scale(1.2);
}

/* Placeholder for empty images */
.carousel-placeholder {
  width: 100%;
  height: 400px;
  background-color: #E0E0E0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-family: 'Gambetta', sans-serif;
  font-size: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
