.ehu-shorts-slider {
	margin-top: 3rem;
}

.ehu-shorts-slider__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	gap: 1rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-bottom: 0.25rem;
}
.ehu-shorts-slider__track::-webkit-scrollbar {
	display: none;
}

.ehu-shorts-slider__slide {
	flex: 0 0 auto;
	scroll-snap-align: center;
	scroll-snap-stop: always;
	/* Slide width is the only size control - the media keeps a fixed 9:16 via the
	   padding-top below, so height follows from this. */
	max-width: 300px;
	width: 100%;
}
@media (max-width: 767px) {
	.ehu-shorts-slider__slide {
		max-width: 180px;
	}
}

.ehu-shorts-slider__media {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	background: #000;
}
.ehu-shorts-slider__media::before {
	content: "";
	display: block;
	padding-top: 177.77%;
}

.ehu-shorts-slider__thumb,
.ehu-shorts-slider__media iframe {
	position: absolute;
	inset: 0;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.ehu-shorts-slider__thumb {
	object-fit: cover;
}

.ehu-shorts-slider__play {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ehu-shorts-slider__play-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
	transition: transform 0.15s ease, filter 0.15s ease;
}
.ehu-shorts-slider__play:hover .ehu-shorts-slider__play-icon,
.ehu-shorts-slider__play:focus-visible .ehu-shorts-slider__play-icon {
	transform: scale(1.05);
	filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
}

.ehu-shorts-slider__caption {
	margin: 0.5rem 0 0;
	text-align: center;
}

.ehu-shorts-slider__scrollbar-track {
	position: relative;
	height: 6px;
	margin-top: 1rem;
	background: rgba(var(--ehu-color-primary-rgb), 0.1);
	border-radius: 3px;
	cursor: pointer;
}
.ehu-shorts-slider__scrollbar-thumb {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	min-width: 24px;
	border-radius: 3px;
	background: var(--ehu-color-primary);
	cursor: grab;
	touch-action: none;
}
.ehu-shorts-slider__scrollbar-thumb.is-dragging {
	cursor: grabbing;
}

@media (prefers-reduced-motion: reduce) {
	.ehu-shorts-slider__track {
		scroll-behavior: auto;
	}
}
