/* Webbler Video Slider */

.wvs {
	--wvs-slide-width: 844px;
	--wvs-ratio: 16 / 9;
	--wvs-gap: 75px;
	--wvs-radius: 30px;
	--wvs-speed: 500ms;
	--wvs-inactive-opacity: 0.5;
	--wvs-inactive-scale: 1;
	--wvs-play-size: 124px;
	--wvs-play-color: #ffc600;
	--wvs-play-hover-color: var(--wvs-play-color);
	--wvs-play-hover-scale: 1.08;
	--wvs-dot-size: var(--wel-dot-size, 22px);
	--wvs-dot-gap: var(--wel-dot-gap, 18px);
	--wvs-dot-border: var(--wel-dot-border, 2px);
	--wvs-dot-color: var(--wel-dot-color, #ffc600);
	--wvs-dot-active-color: var(--wel-dot-active, #ffc600);
	--wvs-arrow-size: 56px;
	--wvs-arrow-offset: 40px;
	--wvs-arrow-color: #101921;
	--wvs-arrow-bg: #ffc600;

	position: relative;
	display: flow-root;
	width: 100%;
}

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

/* Viewport + track */

.wvs__viewport {
	overflow: hidden;
	width: 100%;
	/* room for the big soft shadow so it is not clipped */
	padding: 100px 0;
	margin: -100px 0;
	/* the padded area must not block clicks on content above/below */
	pointer-events: none;
}

.wvs.is-dragging .wvs__track,
.wvs.is-dragging .wvs__slide {
	cursor: grabbing;
}

.wvs__track {
	position: relative;
	display: flex;
	touch-action: pan-y;
	align-items: flex-start;
	gap: var(--wvs-gap);
	will-change: transform;
	transition: transform var(--wvs-speed) ease;
}

.wvs.is-dragging .wvs__track,
.wvs.no-anim .wvs__track {
	transition: none;
}

/* Slides */

.wvs__slide {
	flex: 0 0 var(--wvs-slide-width);
	width: var(--wvs-slide-width);
	max-width: 100%;
	opacity: var(--wvs-inactive-opacity);
	transform: scale(var(--wvs-inactive-scale));
	transform-origin: center top;
	transition: opacity var(--wvs-speed) ease, transform var(--wvs-speed) ease;
	cursor: pointer;
	pointer-events: auto;
	user-select: none;
	-webkit-user-select: none;
}

.wvs__slide.is-active {
	opacity: 1;
	transform: none;
	cursor: grab;
}

/* Video box */

.wvs__media {
	position: relative;
	width: 100%;
	aspect-ratio: var(--wvs-ratio);
	border-radius: var(--wvs-radius);
	overflow: hidden;
	background: #0b1117;
	isolation: isolate;
}

.wvs__cover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	pointer-events: none;
	-webkit-user-drag: none;
}

.wvs__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.wvs__player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	background: #000;
	z-index: 3;
}

.wvs__media.is-playing .wvs__play,
.wvs__media.is-playing .wvs__overlay {
	display: none;
}

/* Play button */

.wvs__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: var(--wvs-play-size);
	height: auto;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--wvs-play-color);
	line-height: 0;
	cursor: pointer;
	transform: translate(-50%, -50%);
	transition: transform 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.wvs__play:hover,
.wvs__play:focus,
.wvs__play:active {
	background: none;
	box-shadow: none;
}

.wvs__slide.is-active .wvs__play:hover,
.wvs__slide.is-active .wvs__play:focus-visible {
	color: var(--wvs-play-hover-color);
	transform: translate(-50%, -50%) scale(var(--wvs-play-hover-scale));
}

.wvs__play:focus-visible {
	outline: 3px solid var(--wvs-play-color);
	outline-offset: 6px;
	border-radius: 6px;
}

.wvs__play-svg,
.wvs__play-img {
	display: block;
	width: 100%;
	height: auto;
}

/* On side slides the play button only acts as "go to this slide" */
.wvs__slide:not(.is-active) .wvs__play {
	pointer-events: none;
}

/* Text */

.wvs__text {
	margin-top: 39px;
	padding: 0 40px;
}

.wvs__subtitle {
	display: block;
	color: #6bcbc2;
	font-size: 20px;
	line-height: 28px;
	margin: 0 0 6px;
}

.wvs__title {
	color: #fff;
	font-size: 30px;
	line-height: 38px;
	font-weight: 400;
	margin: 0;
	padding: 0;
}

/* Dots */

.wvs__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--wvs-dot-gap);
	margin-top: 80px;
}

.wvs .wvs__dot {
	position: relative;
	width: var(--wvs-dot-size);
	height: var(--wvs-dot-size);
	min-height: 0;
	padding: 0;
	margin: 0;
	border: var(--wvs-dot-border) solid var(--wvs-dot-color);
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.wvs .wvs__dot::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 60%;
	height: 60%;
	border-radius: 50%;
	background: var(--wvs-dot-active-color);
	transform: translate(-50%, -50%) scale(0);
	transition: transform 0.25s ease;
}

.wvs .wvs__dot.is-active::after {
	transform: translate(-50%, -50%) scale(1);
}

.wvs .wvs__dot:hover {
	transform: scale(1.1);
}

.wvs .wvs__dot:focus-visible {
	outline: 2px solid var(--wvs-dot-color);
	outline-offset: 4px;
}

/* Arrows */

.wvs .wvs__arrow {
	position: absolute;
	top: var(--wvs-media-center, 30%);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--wvs-arrow-size);
	height: var(--wvs-arrow-size);
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wvs-arrow-bg);
	color: var(--wvs-arrow-color);
	box-shadow: none;
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.wvs .wvs__arrow svg {
	width: 45%;
	height: 45%;
}

.wvs .wvs__arrow--prev {
	left: var(--wvs-arrow-offset);
}

.wvs .wvs__arrow--next {
	right: var(--wvs-arrow-offset);
}

.wvs .wvs__arrow:hover {
	transform: translateY(-50%) scale(1.06);
}

.wvs .wvs__arrow[disabled] {
	opacity: 0.35;
	cursor: default;
	transform: translateY(-50%);
}

@media (prefers-reduced-motion: reduce) {
	.wvs__track,
	.wvs__slide,
	.wvs__play,
	.wvs .wvs__dot::after {
		transition: none;
	}
}
