/* CP Homepage Slider — adds to the theme's .cp-slider styles (height, caption, dots stay the theme's). */

.cph .cph-bg {
	overflow: hidden;
	background: var(--ink, #0b0b0b);
}

.cph .cph-bg picture,
.cph .cph-bg .cph-img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
}

/* Fill the slider at every screen size, cropping around the chosen focal point. */
.cph .cph-bg .cph-img {
	object-fit: cover;
	object-position: var(--cph-x, 50%) var(--cph-y, 50%);
}

@media (max-width: 767px) {
	.cph .cph-bg .cph-img {
		object-position: var(--cph-mx, var(--cph-x, 50%)) var(--cph-my, var(--cph-y, 50%));
	}
}

/* Image-only slide: no dark gradient over the picture. */
.cph .cph-notext::after {
	display: none;
}

.cph .cph-ext {
	font-size: 1.1em;
	line-height: 1;
}

/* Fade transition: slides stack, the active one fades in. */
.cph--fade .cph-track {
	position: relative;
	display: block;
	transform: none !important;
	transition: none;
}

.cph--fade .cph-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease, visibility 0s linear 0.9s;
	z-index: 0;
}

.cph--fade .cph-slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.9s ease, visibility 0s;
	z-index: 1;
}

/* Optional pause / play button (Settings → "Show a pause button"). */
.cph .cph-toggle {
	position: absolute;
	right: 20px;
	bottom: 14px;
	z-index: 6;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cph .cph-toggle:hover,
.cph .cph-toggle:focus-visible {
	background: var(--accent, #0036f9);
	border-color: var(--accent, #0036f9);
}

.cph .cph-toggle svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.cph .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.cph .cph-track,
	.cph--fade .cph-slide {
		transition: none !important;
	}
}
