.main-carousel .carousel-item,
.thumbnail-carousel .carousel-item {
  border-radius: 10px;
  overflow: hidden;
}

.main-carousel .carousel-item img,
.thumbnail-carousel .carousel-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.thumbnail-carousel .carousel-control-prev {
  background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0));
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  width: 10%;
}
.thumbnail-carousel .carousel-control-next {
  background: linear-gradient(to left, rgba(0,0,0,0.8), rgba(0,0,0,0));
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  width: 10%;
}

.thumbnail-carousel .carousel-inner {
  border-radius: 10px;
  overflow: hidden;
}

.thumb-indicator {
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.thumb-indicator img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  opacity: 0.8;
  transform: scale(1.02);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.thumb-indicator:hover img {
  opacity: 1;
  transform: scale(1.04);
}

/* ── Active thumbnail state ── */
.thumb-indicator.active {
  outline: 3px solid var(--bs-primary, #0d6efd);
  outline-offset: -3px;
  border-radius: 10px;
}

.thumb-indicator.active img {
  opacity: 1;
  transform: scale(1);
}

/* ── Mobile carousel navigation ── */
.mobile-carousel-nav {
  padding: .25rem 0;
}

.mobile-carousel-nav .carousel-nav-btn {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.mobile-carousel-nav .carousel-nav-btn:hover,
.mobile-carousel-nav .carousel-nav-btn:focus-visible {
  background: rgba(0, 0, 0, .12);
}

.mobile-carousel-nav .carousel-control-prev-icon,
.mobile-carousel-nav .carousel-control-next-icon {
  width: 14px;
  height: 14px;
  filter: invert(1) grayscale(100) brightness(0);
}

.mobile-carousel-nav .carousel-indicators-wrapper {
  flex: 0 1 auto;
  overflow: hidden;
}

.mobile-carousel-nav .carousel-indicators {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: center;
}

.mobile-carousel-nav .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  margin: 0;
  background-color: rgba(0, 0, 0, .25);
  opacity: 1;
  transition: background-color .2s ease, transform .2s ease;
  flex: 0 0 auto;
  text-indent: -9999px;
}

.mobile-carousel-nav .carousel-indicators button.active {
  background-color: var(--avs-primary);
  transform: scale(1.25);
}

