.vv-carousel {
  --vv-carousel-ratio: 16 / 9;
  position: relative;
  color: var(--vv-carousel-color, inherit);
}

.vv-carousel--16-9 {
  --vv-carousel-ratio: 16 / 9;
}

.vv-carousel--4-3 {
  --vv-carousel-ratio: 4 / 3;
}

.vv-carousel--3-2 {
  --vv-carousel-ratio: 3 / 2;
}

.vv-carousel--1-1 {
  --vv-carousel-ratio: 1 / 1;
}

.vv-carousel--21-9 {
  --vv-carousel-ratio: 21 / 9;
}

.vv-carousel--auto {
  --vv-carousel-ratio: auto;
  --vv-carousel-media-height: auto;
  --vv-carousel-fit: contain;
}

.vv-carousel__track {
  position: relative;
  display: flex;
  gap: var(--vv-carousel-gap, 0px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--vv-carousel-radius, 0);
}

.vv-carousel__track::-webkit-scrollbar {
  display: none;
}

.vv-carousel__track:focus-visible {
  outline: var(--vv-carousel-focus-width, 2px) solid var(--vv-carousel-focus-color, currentColor);
  outline-offset: var(--vv-carousel-focus-offset, 2px);
}

.vv-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.vv-carousel__figure {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}

.vv-carousel__media {
  position: relative;
  aspect-ratio: var(--vv-carousel-ratio, 16/9);
  overflow: hidden;
  background: var(--vv-carousel-media-bg, #111);
  border-radius: var(--vv-carousel-media-radius, var(--vv-carousel-radius, 0));
}

.vv-carousel__image,
.vv-carousel__video,
.vv-carousel__poster {
  display: block;
  width: 100%;
  height: var(--vv-carousel-media-height, 100%);
  -o-object-fit: var(--vv-carousel-fit, cover);
  object-fit: var(--vv-carousel-fit, cover);
}

.vv-carousel__poster {
  position: absolute;
  inset: 0;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.vv-carousel__embed {
  --vv-carousel-play-scale: 1;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--vv-carousel-media-bg, #111);
  color: var(--vv-carousel-embed-color, #fff);
  font: inherit;
  cursor: pointer;
}

.vv-carousel__embed:hover {
  --vv-carousel-play-scale: 1.08;
}

.vv-carousel__embed:focus-visible {
  outline: var(--vv-carousel-focus-width, 2px) solid var(--vv-carousel-focus-color, currentColor);
  outline-offset: calc(-1 * var(--vv-carousel-focus-width, 2px) - 2px);
}

.vv-carousel__play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--vv-carousel-play-size, 4.5rem);
  height: var(--vv-carousel-play-size, 4.5rem);
  border-radius: var(--vv-carousel-play-radius, 50%);
  background: var(--vv-carousel-play-bg, rgba(0, 0, 0, 0.65));
  color: var(--vv-carousel-play-color, #fff);
  transform: scale(var(--vv-carousel-play-scale, 1));
  transition: transform 0.15s ease;
}

.vv-carousel__notice {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: var(--vv-carousel-notice-padding, 0.5rem 0.75rem);
  background: var(--vv-carousel-notice-bg, rgba(0, 0, 0, 0.62));
  color: var(--vv-carousel-notice-color, #fff);
  font-size: var(--vv-carousel-notice-size, 0.8125rem);
  line-height: 1.35;
  text-align: start;
}

.vv-carousel__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vv-carousel__caption {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: var(--vv-carousel-caption-padding, 0.75rem 0 0);
  color: var(--vv-carousel-caption-color, inherit);
  font-family: var(--vv-carousel-caption-font, inherit);
  font-size: var(--vv-carousel-caption-size, 0.9375rem);
  line-height: var(--vv-carousel-caption-line-height, 1.45);
}

.vv-carousel__caption-title {
  font-weight: var(--vv-carousel-caption-title-weight, 600);
}

.vv-carousel__caption-text {
  color: var(--vv-carousel-caption-text-color, inherit);
}

.vv-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: var(--vv-carousel-controls-justify, center);
  gap: var(--vv-carousel-controls-gap, 0.75rem);
  margin-top: var(--vv-carousel-controls-margin, 1rem);
}

.vv-carousel__controls[hidden] {
  display: none;
}

.vv-carousel__button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--vv-carousel-control-size, 2.75rem);
  height: var(--vv-carousel-control-size, 2.75rem);
  margin: 0;
  padding: 0;
  border: var(--vv-carousel-control-border, 1px solid currentColor);
  border-radius: var(--vv-carousel-control-radius, 50%);
  background: var(--vv-carousel-control-bg, transparent);
  color: var(--vv-carousel-control-color, currentColor);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.vv-carousel__button:hover {
  background: var(--vv-carousel-control-hover-bg, rgba(0, 0, 0, 0.06));
  color: var(--vv-carousel-control-hover-color, var(--vv-carousel-control-color, currentColor));
}

.vv-carousel__button:focus-visible {
  outline: var(--vv-carousel-focus-width, 2px) solid var(--vv-carousel-focus-color, currentColor);
  outline-offset: var(--vv-carousel-focus-offset, 2px);
}

.vv-carousel__button:disabled {
  opacity: 0.4;
  cursor: default;
}

.vv-carousel__button[hidden] {
  display: none;
}

.vv-carousel__icon {
  display: block;
  width: var(--vv-carousel-icon-size, 1.25rem);
  height: var(--vv-carousel-icon-size, 1.25rem);
}

.vv-carousel__toggle-pause,
.vv-carousel__toggle-play {
  display: grid;
  place-items: center;
}

.vv-carousel__toggle-pause[hidden],
.vv-carousel__toggle-play[hidden] {
  display: none;
}

.vv-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--vv-carousel-dot-gap, 0.125rem);
}

.vv-carousel__dot {
  --vv-carousel-dot-opacity: 0.35;
  display: inline-grid;
  place-items: center;
  width: var(--vv-carousel-dot-target, 1.5rem);
  height: var(--vv-carousel-dot-target, 1.5rem);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.vv-carousel__dot::before {
  content: "";
  width: var(--vv-carousel-dot-size, 0.625rem);
  height: var(--vv-carousel-dot-size, 0.625rem);
  border-radius: var(--vv-carousel-dot-radius, 50%);
  background: var(--vv-carousel-dot-color, currentColor);
  opacity: var(--vv-carousel-dot-opacity, 0.35);
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.vv-carousel__dot:hover {
  --vv-carousel-dot-opacity: 0.7;
}

.vv-carousel__dot:focus-visible {
  outline: var(--vv-carousel-focus-width, 2px) solid var(--vv-carousel-focus-color, currentColor);
  outline-offset: 0;
}

.vv-carousel__dot[aria-current=true] {
  --vv-carousel-dot-color: var(--vv-carousel-accent, currentColor);
  --vv-carousel-dot-opacity: 1;
}

.vv-carousel__counter {
  min-width: 4ch;
  margin: 0;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.vv-carousel__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .vv-carousel__track {
    scroll-behavior: auto;
  }
  .vv-carousel__play,
  .vv-carousel__button,
  .vv-carousel__dot::before {
    transition: none;
  }
}