.tpr-slider {
	--tpr-background: #fff;
	--tpr-arrow-color: #000;
	--tpr-caption-color: #333;
	/*
	 * Distance from the viewport edge to the painted edge of the artwork. Every
	 * image has a different aspect ratio, so object-fit: contain pillarboxes each
	 * one by a different amount and layout cannot see it. slider.js measures the
	 * contain-scaled width and overwrites this as an inline style so the caption
	 * lines up with the artwork instead of with the slider. The value below is the
	 * no-JS fallback and matches the pre-1.1.0 fixed inset.
	 */
	--tpr-caption-gap: 50px;
	/* Optional extra breathing room added on top of the measured gap. */
	--tpr-caption-inset: 0px;
	position: relative;
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	color: var(--tpr-caption-color);
	font-family: Arial, Helvetica, sans-serif;
	outline: none;
}

.tpr-slider:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.tpr-slider__viewport {
	position: relative;
	width: 100%;
	aspect-ratio: 1120 / 600;
	overflow: hidden;
	background: var(--tpr-background);
	touch-action: pan-y;
}

.tpr-slider__track {
	display: flex;
	width: 100%;
	height: 100%;
	transform: translate3d(0, 0, 0);
	will-change: transform;
}

.tpr-slider__slide {
	flex: 0 0 100%;
	display: flex;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: var(--tpr-background);
	align-items: center;
	justify-content: center;
}

.tpr-slider__image {
	display: block;
	flex: 0 0 100%;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0;
	padding: 0;
	border: 0;
	object-fit: contain;
	object-position: center;
	user-select: none;
	-webkit-user-drag: none;
}

.tpr-slider__arrow {
	position: absolute;
	z-index: 3;
	top: 50%;
	display: grid;
	width: 52px;
	height: 72px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--tpr-arrow-color) !important;
	cursor: pointer;
	transform: translateY(-50%);
	-webkit-appearance: none;
	appearance: none;
	place-items: center;
}

.tpr-slider__arrow:hover,
.tpr-slider__arrow:focus,
.tpr-slider__arrow:active {
	border-color: transparent !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--tpr-arrow-color) !important;
	outline: none;
}

.tpr-slider__arrow:focus-visible {
	outline: 2px solid currentColor !important;
	outline-offset: 2px;
}

.tpr-slider__dot:focus-visible {
	outline: 2px solid #fff !important;
	outline-offset: 2px;
}

.tpr-slider__arrow--previous {
	left: 0;
}

.tpr-slider__arrow--next {
	right: 0;
}

.tpr-slider__arrow span {
	display: block;
	width: 18px;
	height: 18px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.tpr-slider__arrow--previous span {
	transform: rotate(-135deg);
}

.tpr-slider__arrow--next span {
	transform: rotate(45deg);
}

.tpr-slider__dots {
	position: absolute;
	z-index: 3;
	right: 50%;
	bottom: 16px;
	display: flex;
	gap: 8px;
	align-items: center;
	transform: translateX(50%);
}

.tpr-slider__dot {
	width: 8px;
	height: 8px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.95);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.25);
	cursor: pointer;
	transition: background-color 160ms ease, transform 160ms ease;
}

.tpr-slider__dot:hover,
.tpr-slider__dot.is-active {
	background: #fff;
	transform: scale(1.2);
}

.tpr-slider__caption {
	box-sizing: border-box;
	display: flex;
	min-height: 136px;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding-block: 18px 14px;
	padding-inline: calc(var(--tpr-caption-gap) + var(--tpr-caption-inset));
	text-align: left;
}

.tpr-slider__title {
	margin: 0;
	color: inherit;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(14px, 1.52vw, 17px);
	font-weight: 400;
	line-height: 1.12;
}

.tpr-slider__info {
	min-height: 3em;
	margin: 8px 0 0;
	color: inherit;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(14px, 1.52vw, 17px);
	font-weight: 400;
	line-height: 1.5;
	white-space: pre-line;
}

@media (max-width: 767px) {
	/*
	 * Declared on the root, not on the caption: slider.js publishes the measured
	 * gap as an inline style on the root and inherited values lose to any
	 * declaration made directly on the caption.
	 */
	.tpr-slider {
		--tpr-caption-gap: 30px;
	}

	.tpr-slider__arrow {
		width: 42px;
		height: 58px;
	}

	.tpr-slider__arrow span {
		width: 14px;
		height: 14px;
	}

	.tpr-slider__dots {
		bottom: 10px;
		gap: 6px;
	}

	.tpr-slider__caption {
		min-height: 112px;
		padding-block: 14px 10px;
	}

	.tpr-slider__info {
		margin-top: 5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tpr-slider__track {
		transition-duration: 0.01ms !important;
	}
}
