.rz-tt {
	--rz-tt-gap: 0;
	--rz-tt-height: min(68vh, 620px);
	--rz-tt-transition: 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
	--rz-tt-font: "AdihausDIN", "AdineuePRO", Arial, Helvetica, sans-serif;
	width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

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

.rz-tt__title {
	margin: 0 0 16px;
	padding: 0;
	font-family: var(--rz-tt-font);
	font-size: clamp(1.35rem, 2.2vw, 1.85rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.05;
	text-transform: uppercase;
	color: #000;
}

.rz-tt__track {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: var(--rz-tt-gap);
	width: 100%;
	height: var(--rz-tt-height);
	overflow: hidden;
	background: #fff;
}

/*
 * Beat Elementor `.elementor img { height:auto; max-width:100% }`
 * and theme link styles that break the accordion fill.
 */
.elementor .rz-tt .rz-tt__panel,
.elementor .rz-tt a.rz-tt__panel,
.rz-tt .rz-tt__panel,
.rz-tt a.rz-tt__panel {
	position: relative !important;
	display: block !important;
	flex: 1 1 0 !important;
	min-width: 0 !important;
	width: auto !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	text-decoration: none !important;
	color: #fff !important;
	background-color: #111;
	background-repeat: no-repeat;
	/*
	 * Always fill the panel (no black gaps), crop anchored center-top
	 * so faces stay visible in the narrow (pre-expand) state.
	 */
	background-position: center top;
	background-size: cover;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none;
	cursor: pointer;
	transition: flex var(--rz-tt-transition);
}

.elementor .rz-tt__track:hover .rz-tt__panel,
.elementor .rz-tt__track:focus-within .rz-tt__panel,
.rz-tt__track:hover .rz-tt__panel,
.rz-tt__track:focus-within .rz-tt__panel {
	flex: 0.65 1 0 !important;
}

.elementor .rz-tt__track:hover .rz-tt__panel:hover,
.elementor .rz-tt__track:focus-within .rz-tt__panel:focus,
.elementor .rz-tt__track:focus-within .rz-tt__panel:focus-within,
.elementor .rz-tt__panel.is-active,
.rz-tt__track:hover .rz-tt__panel:hover,
.rz-tt__track:focus-within .rz-tt__panel:focus,
.rz-tt__track:focus-within .rz-tt__panel:focus-within,
.rz-tt__panel.is-active {
	flex: 2.85 1 0 !important;
}

/* Decorative img kept for a11y; fill is driven by panel background-image. */
.elementor .rz-tt .rz-tt__panel img.rz-tt__image,
.rz-tt .rz-tt__panel img.rz-tt__image {
	position: absolute !important;
	inset: 0 !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	/* Mirror background fill for a11y img (kept invisible). */
	width: auto !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center top !important;
	transform-origin: center top !important;
	pointer-events: none !important;
	opacity: 0 !important;
}

.rz-tt__shade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 38%;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.55) 0%,
		rgba(0, 0, 0, 0.18) 45%,
		rgba(0, 0, 0, 0) 100%
	);
	pointer-events: none;
	z-index: 1;
}

.rz-tt__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	padding: 0 12px 22px;
	text-align: center;
	background: transparent;
	pointer-events: none;
}

.rz-tt__track:hover .rz-tt__panel:hover .rz-tt__content,
.rz-tt__panel.is-active .rz-tt__content {
	align-items: flex-start;
	text-align: left;
	padding: 0 20px 24px;
}

.rz-tt__name {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: var(--rz-tt-font);
	font-size: clamp(0.85rem, 1.15vw, 1.2rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.1;
	text-transform: uppercase;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	background: transparent;
}

.rz-tt__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 118px;
	min-height: 38px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #000;
	font-family: var(--rz-tt-font);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
	pointer-events: none;
	white-space: nowrap;
}

.rz-tt__track:hover .rz-tt__panel:hover .rz-tt__cta,
.rz-tt__panel.is-active .rz-tt__cta {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.rz-tt-empty {
	padding: 16px;
	border: 1px dashed #c3c4c7;
	color: #50575e;
	background: #f6f7f7;
}

@media (max-width: 900px) {
	.rz-tt {
		--rz-tt-height: 420px;
	}

	.rz-tt__track {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		scrollbar-width: thin;
	}

	.elementor .rz-tt .rz-tt__panel,
	.elementor .rz-tt a.rz-tt__panel,
	.elementor .rz-tt__track:hover .rz-tt__panel,
	.elementor .rz-tt__track:hover .rz-tt__panel:hover,
	.elementor .rz-tt__panel.is-active,
	.rz-tt .rz-tt__panel,
	.rz-tt a.rz-tt__panel,
	.rz-tt__track:hover .rz-tt__panel,
	.rz-tt__track:hover .rz-tt__panel:hover,
	.rz-tt__panel.is-active {
		flex: 0 0 70% !important;
		max-width: 300px !important;
		scroll-snap-align: start;
	}

	.rz-tt__content,
	.rz-tt__track:hover .rz-tt__panel:hover .rz-tt__content,
	.rz-tt__panel.is-active .rz-tt__content {
		align-items: flex-start;
		text-align: left;
		padding: 0 16px 18px;
	}

	.rz-tt__cta,
	.rz-tt__track:hover .rz-tt__panel:hover .rz-tt__cta,
	.rz-tt__panel.is-active .rz-tt__cta {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
}

@media (max-width: 600px) {
	.rz-tt {
		--rz-tt-height: 380px;
	}

	.elementor .rz-tt .rz-tt__panel,
	.elementor .rz-tt a.rz-tt__panel,
	.elementor .rz-tt__track:hover .rz-tt__panel,
	.elementor .rz-tt__track:hover .rz-tt__panel:hover,
	.elementor .rz-tt__panel.is-active,
	.rz-tt .rz-tt__panel,
	.rz-tt a.rz-tt__panel,
	.rz-tt__panel.is-active {
		flex: 0 0 78% !important;
		max-width: 280px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rz-tt__panel,
	.rz-tt__cta {
		transition: none;
	}
}
