.vtx-carousel {
	--vtx-carousel-control-bg: color-mix(in srgb, var(--md-sys-color-scrim) 72%, transparent);
	--vtx-carousel-control-bg-hover: color-mix(in srgb, var(--md-sys-color-scrim) 90%, transparent);
	--vtx-carousel-control-color: var(--md-sys-color-on-surface);
	--vtx-carousel-dot: color-mix(in srgb, var(--md-sys-color-on-surface) 46%, transparent);
	--vtx-carousel-dot-active: var(--md-sys-color-primary);
	display: block;
	line-height: 0;
	margin: 0 !important;
	overflow: hidden;
	padding: 0 !important;
	position: relative;
	width: 100%;
}

.vtx-carousel *,
.vtx-carousel *::before,
.vtx-carousel *::after {
	box-sizing: border-box;
}

.vtx-carousel p {
	display: contents !important;
	line-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.vtx-carousel br {
	display: none !important;
}

.vtx-carousel__viewport {
	line-height: 0;
	margin: 0 !important;
	overflow: hidden;
	padding: 0 !important;
	position: relative;
	touch-action: pan-y;
	width: 100%;
}

.vtx-carousel__track {
	display: flex;
	margin: 0 !important;
	padding: 0 !important;
	transform: translate3d(0, 0, 0);
	transition: transform 360ms ease;
	will-change: transform;
}

.vtx-carousel__slide {
	flex: 0 0 100%;
	line-height: 0;
	margin: 0 !important;
	min-width: 0;
	padding: 0 !important;
}

.vtx-carousel__media {
	aspect-ratio: 32 / 10;
	background: var(--md-sys-color-surface-container-lowest);
	display: block;
	line-height: 0;
	margin: 0 !important;
	overflow: hidden;
	padding: 0 !important;
	position: relative;
	text-decoration: none;
	width: 100%;
}

.vtx-carousel__image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.vtx-carousel__picture {
	display: block;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
}

.vtx-carousel__arrow {
	align-items: center;
	background: var(--vtx-carousel-control-bg);
	border: 0;
	border-radius: 999px;
	color: var(--vtx-carousel-control-color);
	cursor: pointer;
	display: inline-flex;
	height: 42px;
	justify-content: center;
	margin: 0;
	opacity: 0;
	padding: 0;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%) scale(1);
	transition: background-color 90ms ease, opacity 120ms ease, transform 90ms ease;
	width: 42px;
	z-index: 2;
}

.vtx-carousel__viewport:hover .vtx-carousel__arrow,
.vtx-carousel__viewport:focus-within .vtx-carousel__arrow {
	opacity: 1;
	pointer-events: auto;
}

.vtx-carousel__arrow:hover,
.vtx-carousel__arrow:focus-visible {
	background: var(--vtx-carousel-control-bg-hover);
	transform: translateY(-50%) scale(1.08);
}

.vtx-carousel__arrow:active,
.vtx-carousel__arrow.is-pressed {
	transform: translateY(-50%) scale(0.92);
}

.vtx-carousel__arrow-icon {
	display: block;
	fill: currentColor;
	height: 24px;
	transition: transform 90ms ease;
	width: 24px;
}

.vtx-carousel__arrow--prev {
	left: 16px;
}

.vtx-carousel__arrow--prev .vtx-carousel__arrow-icon {
	transform: scaleX(-1) scale(1);
}

.vtx-carousel__arrow--next .vtx-carousel__arrow-icon {
	transform: scale(1);
}

.vtx-carousel__arrow--prev:hover .vtx-carousel__arrow-icon,
.vtx-carousel__arrow--prev:focus-visible .vtx-carousel__arrow-icon {
	transform: scaleX(-1) scale(1.08);
}

.vtx-carousel__arrow--next:hover .vtx-carousel__arrow-icon,
.vtx-carousel__arrow--next:focus-visible .vtx-carousel__arrow-icon {
	transform: scale(1.08);
}

.vtx-carousel__arrow--prev:active .vtx-carousel__arrow-icon,
.vtx-carousel__arrow--prev.is-pressed .vtx-carousel__arrow-icon {
	transform: scaleX(-1) scale(0.9);
}

.vtx-carousel__arrow--next:active .vtx-carousel__arrow-icon,
.vtx-carousel__arrow--next.is-pressed .vtx-carousel__arrow-icon {
	transform: scale(0.9);
}

.vtx-carousel__arrow--next {
	right: 16px;
}

.vtx-carousel .vtx-carousel__dots {
	align-items: center;
	bottom: 14px;
	display: flex;
	gap: 8px;
	justify-content: center;
	left: 50%;
	line-height: 1;
	margin: 0 !important;
	opacity: 0;
	padding: 0;
	pointer-events: none;
	position: absolute;
	transform: translateX(-50%);
	transition: opacity 180ms ease;
	z-index: 2;
}

.vtx-carousel__viewport:hover .vtx-carousel__dots,
.vtx-carousel__viewport:focus-within .vtx-carousel__dots {
	opacity: 1;
	pointer-events: auto;
}

.vtx-carousel__dot {
	background: var(--vtx-carousel-dot);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	height: 12px;
	margin: 0;
	padding: 0;
	transition: background-color 180ms ease, width 180ms ease;
	width: 12px;
}

.vtx-carousel__dot.is-active {
	background: var(--vtx-carousel-dot-active);
	width: 36px;
}

@media (max-width: 700px) {
	.vtx-carousel__arrow {
		height: 36px;
		width: 36px;
	}

	.vtx-carousel__arrow--prev {
		left: 8px;
	}

	.vtx-carousel__arrow--next {
		right: 8px;
	}

	.vtx-carousel .vtx-carousel__dots {
		bottom: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vtx-carousel__track {
		transition: none;
	}
}
