.cp-home-slider {
	position: relative;
	width: 100%;
	max-width: 980px;
	margin: 0 auto 14px;
	color: #2c2c2c;
	box-sizing: border-box;
}

@media (min-width: 801px) {
	/* Match the reserved space to the fixed desktop header height. */
	body.home #page-wrapper {
		padding-top: 122px;
	}

	body.home.admin-bar #page-wrapper {
		padding-top: 90px;
	}
}

.cp-home-slider *,
.cp-home-slider *::before,
.cp-home-slider *::after {
	box-sizing: border-box;
}

.cp-home-slider__viewport {
	position: relative;
	width: 100%;
	aspect-ratio: 980 / 396;
	overflow: hidden;
	background: #fff;
	touch-action: pan-y;
}

.cp-home-slider__slides,
.cp-home-slider__slide {
	position: absolute;
	inset: 0;
}

.cp-home-slider__slide {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 800ms ease-in-out, visibility 0s linear 800ms;
}

.cp-home-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 800ms ease-in-out, visibility 0s;
}

.cp-home-slider__slide picture {
	display: block;
	width: 100%;
	height: 100%;
}

.cp-home-slider__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.cp-home-slider__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 2;
	display: flex;
	width: 100%;
	height: 84px;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 0 30px;
	background: linear-gradient(0deg, rgba(71, 71, 71, .8) 0%, rgba(106, 106, 106, 0) 100%);
}

@media (min-width: 768px) {
	.cp-home-slider__caption.is-title-hidden {
		justify-content: flex-end;
	}

	.cp-home-slider__caption.is-title-hidden-desktop {
		justify-content: flex-end;
	}

	.cp-home-slider__caption.is-title-hidden-desktop .cp-home-slider__title {
		display: none;
	}
}

.cp-home-slider__title {
	max-width: calc(100% - 130px);
	margin: 0;
	color: #fff;
	font-family: 'Open Sans', Arial, Verdana, sans-serif;
	font-size: 24px;
	font-weight: 300;
	line-height: 1.25;
	text-shadow: 0 0 2px rgba(0, 0, 0, .53);
}

.cp-home-slider__link {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: #fff;
	font-family: 'Open Sans', Arial, Verdana, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.1;
	text-decoration: none;
	transition: opacity 180ms ease;
}

.cp-home-slider__link:hover {
	color: #fff;
	opacity: .82;
}

.cp-home-slider__link:focus-visible,
.cp-home-slider__arrow:focus-visible,
.cp-home-slider__dot:focus-visible {
	outline: 2px solid #661832;
	outline-offset: 3px;
}

.cp-home-slider__link-label--mobile,
.cp-home-slider__dots {
	display: none;
}

.cp-home-slider__link-arrow {
	display: block;
	width: 24px;
	height: 24px;
	transform: rotate(-90deg);
}

.cp-home-slider__navigation {
	display: flex;
	width: 100%;
	height: 56px;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 16px;
	/*background: #faf9f8;*/
}

.cp-home-slider__arrow {
	display: flex;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: color 220ms ease;
}

.cp-home-slider__arrow img {
	display: none;
}

.cp-home-slider__arrow::before {
	display: block;
	width: 22px;
	height: 9px;
	background-color: #777;
	content: "";
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 9'%3E%3Cpath d='M0.75 4.5H19.5M15.5 0.9L20 4.5L15.5 8.1' fill='none' stroke='black' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 9'%3E%3Cpath d='M0.75 4.5H19.5M15.5 0.9L20 4.5L15.5 8.1' fill='none' stroke='black' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
	transition: background-color 220ms ease;
}

.cp-home-slider__arrow--prev::before {
	transform: scaleX(-1);
}

.cp-home-slider__arrow:hover::before,
.cp-home-slider__arrow:focus-visible::before {
	background-color: #661832;
}

.cp-home-slider__counter {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #777;
	font-family: 'Open Sans', Arial, Verdana, sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 27px;
	letter-spacing: .5px;
	white-space: pre;
}

.cp-home-slider__counter-current {
	color: #444;
}

.cp-home-slider [hidden] {
	display: none !important;
}

@media (max-width: 767px) {
	.cp-home-slider {
		margin-bottom: 24px;
	}

	.cp-home-slider__viewport {
		aspect-ratio: 320 / 244;
	}

	.cp-home-slider__caption {
		top: 0;
		bottom: auto;
		height: 100%;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 14px;
		padding: 0 20px 18px;
		background: rgba(0, 0, 0, .4);
		text-align: center;
	}

	.cp-home-slider__caption.is-title-hidden-mobile .cp-home-slider__title {
		display: none;
	}

	.cp-home-slider__title {
		width: 100%;
		max-width: 280px;
		font-size: 20px;
		font-weight: 300;
		line-height: 1.25;
		text-align: center;
	}

	.cp-home-slider__link {
		width: 165px;
		min-height: 46px;
		padding: 12px 16px;
		background: #661832;
		font-size: 14px;
		line-height: 1.1;
	}

	.cp-home-slider__link:hover {
		border: 1px solid #661832;
		outline: 0;
		opacity: 1;
	}

	.cp-home-slider__link-label--desktop,
	.cp-home-slider__link-arrow,
	.cp-home-slider__arrow,
	.cp-home-slider__counter {
		display: none;
	}

	.cp-home-slider__link-label--mobile {
		display: inline;
	}

	.cp-home-slider__navigation {
		position: static;
		height: auto;
		margin-top: 16px;
		background: transparent;
	}

	.cp-home-slider__dots {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 15px;
	}

	.cp-home-slider__dot {
		display: block;
		width: 10px;
		height: 10px;
		flex: 0 0 10px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: #b8b8b8;
		cursor: pointer;
	}

	.cp-home-slider__dot.is-active {
		background: #77042d;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cp-home-slider__slide,
	.cp-home-slider__link {
		transition: none;
	}
}
