/* Vanatex hero slider. Source: includes/hero/render.php */
.vtx-hero {
	--vtx-height: 75vh;
	--vtx-thumb-w: 100px;
	--vtx-thumb-h: 68px;
	--vtx-thumb-gap: 6px;
	--vtx-thumb-radius: 4px;
	--vtx-speed: 0.6s;
	--vtx-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--vtx-overlay: rgba(0, 0, 0, 0.38);

	position: relative;
	width: 100%;
	height: var(--vtx-height);
	overflow: hidden;
	background: #111;
	font-family: inherit;
}

.vtx-hero__track {
	position: relative;
	width: 100%;
	height: 100%;
}

.vtx-hero__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 5% 6%;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity var(--vtx-speed) var(--vtx-ease),
		visibility var(--vtx-speed) var(--vtx-ease);
}

.vtx-hero__slide--active {
	opacity: 1;
	visibility: visible;
}

.vtx-hero__picture,
.vtx-hero__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.vtx-hero__img {
	object-fit: cover;
	object-position: center;
}

.vtx-hero__overlay {
	position: absolute;
	inset: 0;
	background: var(--vtx-overlay);
	pointer-events: none;
}

.vtx-hero__content {
	position: relative;
	z-index: 2;
	max-width: 620px;
	display: flex;
	flex-direction: column;
	gap: 22px;
	transform: translateY(16px);
	opacity: 0;
	transition:
		transform var(--vtx-speed) var(--vtx-ease) 0.15s,
		opacity var(--vtx-speed) var(--vtx-ease) 0.15s;
}

.vtx-hero__slide--active .vtx-hero__content {
	transform: translateY(0);
	opacity: 1;
}

/* Slides use h2. Size and weight match the global Breakdance h1 the hero used before. */
.vtx-hero .vtx-hero__title {
	color: #fff;
	margin: 0;
	padding: 0;
	line-height: 1.15;
	font-size: var(--bde-h1-font-size, 45px);
	font-weight: 600;
}

.vtx-hero__cta {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	text-decoration: none;
	background: #fff;
	color: #111;
	padding: 0.75em 1.75em;
	font-weight: 600;
	font-size: 0.95rem;
	border-radius: 2px;
	letter-spacing: 0.03em;
	transition: background 0.25s ease, color 0.25s ease;
}

.vtx-hero__cta:hover {
	background: #e8e8e8;
	color: #000;
}

.vtx-hero__thumbs {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: var(--vtx-thumb-gap);
}

.vtx-hero__thumb {
	position: relative;
	width: var(--vtx-thumb-w);
	height: var(--vtx-thumb-h);
	border: 2px solid transparent;
	border-radius: var(--vtx-thumb-radius);
	overflow: hidden;
	cursor: pointer;
	padding: 0;
	background: #222;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.vtx-hero__thumb:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.vtx-hero__thumb-img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.35s ease;
}

.vtx-hero__thumb:hover .vtx-hero__thumb-img {
	transform: scale(1.08);
}

.vtx-hero__thumb--active {
	border-color: var(--bde-palette-color-1-ab6115a1-926b-4cab-b65d-f0265af94a06, #e67e00);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.vtx-hero__thumb--active .vtx-hero__thumb-img {
	transform: scale(1.04);
}

@media (max-width: 1024px) {
	.vtx-hero {
		--vtx-height: 70vh;
	}

	.vtx-hero__thumbs {
		right: 12px;
		--vtx-thumb-w: 80px;
		--vtx-thumb-h: 55px;
	}
}

@media (max-width: 768px) {
	.vtx-hero {
		--vtx-height: 60vh;
	}

	.vtx-hero__slide {
		padding: 2rem;
		align-items: flex-end;
	}

	.vtx-hero__content {
		max-width: calc(100% - 80px);
	}

	.vtx-hero__thumbs {
		right: 12px;
		top: auto;
		bottom: 16px;
		transform: none;
		--vtx-thumb-w: 56px;
		--vtx-thumb-h: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vtx-hero__slide,
	.vtx-hero__content,
	.vtx-hero__thumb-img {
		transition: none;
	}
}
