.le-image-ticker {
	--le-ticker-width: 43.625rem;
	--le-ticker-height: 32.75rem;
	--le-ticker-gap: 1.125rem;

	display: flex;
	flex-direction: column;
	gap: 1.125rem;
	padding: 3.75rem 0 1.5rem;
	overflow: hidden;
	color: var(--le-black);
	background: var(--le-white);
}

.le-image-ticker__arrows {
	margin-right: var(--le-gutter);
}

.le-image-ticker__viewport {
	position: relative;
	height: var(--le-ticker-height);
	/* Sideways drags move the row; up-and-down ones still scroll the page. */
	touch-action: pan-y;
	cursor: grab;
}

.le-image-ticker__viewport:active {
	cursor: grabbing;
}

/* Until the script takes over (and if it can't), the images are a plain row you can scroll. */
.le-image-ticker__track {
	display: flex;
	gap: var(--le-ticker-gap);
	height: 100%;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
}

.le-image-ticker__slide {
	flex-shrink: 0;
	width: var(--le-ticker-width);
	height: 100%;
	background: var(--le-100);
}

.le-image-ticker__slide img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	pointer-events: none;
	user-select: none;
}

/* Running: every slide is placed by the script, so the row can loop without an end. */
.le-image-ticker.is-live .le-image-ticker__track {
	display: block;
	overflow: visible;
}

.le-image-ticker.is-live .le-image-ticker__slide {
	position: absolute;
	top: 0;
	left: 0;
	will-change: transform;
}

/* Dark mode: the mockup's charcoal panel. */
.le-image-ticker--dark {
	color: var(--le-100);
	background: var(--le-800);
}

.le-image-ticker--dark .le-image-ticker__slide {
	background: var(--le-black);
}

/* Medium: smaller images, three or so in view, with a deeper gap above the arrows. */
.le-image-ticker--medium {
	--le-ticker-width: 26.375rem;
	--le-ticker-height: 21.125rem;

	padding-top: 7.75rem;
}

@media (max-width: 880px) {
	.le-image-ticker {
		--le-ticker-width: 19rem;
		--le-ticker-height: 14.25rem;
		--le-ticker-gap: 0.75rem;

		padding-top: 0;
	}

	.le-image-ticker--medium {
		--le-ticker-width: 17rem;
		--le-ticker-height: 13.625rem;

		padding-top: 1.5rem;
	}
}
