.ewp-wheel {
	--ewp-cell-h: 64px;
	--ewp-visible-rows: 7;
	--ewp-tilt: 14deg;
	--ewp-fade: 350ms;
	--ewp-text: rgba(33, 33, 33, 0.55);
	--ewp-active: #111111;
	--ewp-line: rgba(0, 0, 0, 0.08);

	position: relative;
	display: flex;
	align-items: stretch;
	gap: 32px;
	width: 100%;
	font-family: inherit;
}

.ewp-stage-left {
	flex-direction: row-reverse;
}

.ewp-stage-behind {
	display: block;
}

.ewp-wheel__viewport {
	position: relative;
	flex: 1 1 320px;
	min-width: 0;
	height: calc(var(--ewp-cell-h) * var(--ewp-visible-rows));
	overflow: hidden;
	perspective: 1100px;
	cursor: grab;
	touch-action: pan-x;
	-webkit-user-select: none;
	user-select: none;
	z-index: 2;
}

.ewp-wheel__viewport.is-dragging {
	cursor: grabbing;
}

.ewp-wheel__indicator {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: var(--ewp-cell-h);
	transform: translateY(calc(var(--ewp-cell-h) / -2));
	border-top: 1px solid var(--ewp-line);
	border-bottom: 1px solid var(--ewp-line);
	pointer-events: none;
	z-index: 1;
}

.ewp-wheel__list {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	transform-style: preserve-3d;
	will-change: transform;
}

.ewp-wheel__cell {
	position: absolute;
	top: calc(var(--ewp-cell-h) / -2);
	left: 0;
	right: 0;
	height: var(--ewp-cell-h);
	display: flex;
	align-items: center;
	transform-style: preserve-3d;
	backface-visibility: hidden;
	will-change: transform, opacity;
}

.ewp-wheel__link {
	display: block;
	width: 100%;
	padding: 0 4px;
	font-family: inherit;
	font-size: inherit;
	line-height: 1.3;
	color: var(--ewp-text);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.2s ease;
}

.ewp-wheel__cell.is-active .ewp-wheel__link {
	color: var(--ewp-active);
	font-weight: 600;
	white-space: normal;
}

.ewp-wheel__stage {
	position: relative;
	flex: 1 1 320px;
	min-width: 0;
	width: 100%;
	height: 100%;
	align-self: stretch;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.04);
}

.ewp-stage-behind .ewp-wheel__stage {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.ewp-stage-behind .ewp-wheel__viewport {
	background: transparent;
}

.ewp-wheel__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center center;
	opacity: 0;
	transition: opacity var(--ewp-fade) ease;
	pointer-events: none;
}

.ewp-wheel__image.is-active {
	opacity: 1;
}

@media (max-width: 767px) {
	.ewp-wheel,
	.ewp-stage-left {
		flex-direction: column;
	}

	.ewp-wheel__stage {
		aspect-ratio: 16 / 10;
	}
}
