/* Creative Cutouts slider: no libraries, first photo is plain HTML. */
.cc-slider {
	--pad: 5px;
	position: relative;
	width: 98%;
	margin: 0 auto;
	padding: var(--pad);
	box-sizing: border-box;
	background: #E9E9E9;
	-webkit-tap-highlight-color: transparent;
}
.cc-stage {
	position: relative;
	margin: 0 auto;
	max-width: calc(var(--w) * 1px);
	aspect-ratio: var(--w) / var(--h);
	overflow: hidden;
	container-type: inline-size;
	touch-action: pan-y;
}
.cc-slide {
	position: absolute; inset: 0; margin: 0;
	opacity: 0; visibility: hidden;
	transition: opacity .6s ease, visibility 0s linear .6s;
}
.cc-slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; z-index: 1; }
.cc-slide img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }

/* "Before..." / "...after" captions, positioned and sized relative to the slide */
.cc-cap {
	position: absolute; z-index: 2; white-space: nowrap; color: #fff; line-height: 1.1;
	left: calc(var(--x) / var(--w) * 100%); top: calc(var(--y) / var(--h) * 100%);
	font-size: calc(var(--fs) * 1px);
	opacity: 0;
	text-shadow: 0 1px 4px rgba(0,0,0,.45);
}
@supports (width: 1cqw) { .cc-cap { font-size: calc(var(--fs) / var(--w) * 100cqw); } }
.cc-slide.is-active .cc-cap { animation: cc-from-left 1.2s cubic-bezier(.22,.61,.36,1) var(--d, 1s) both; }
.cc-slide.is-active .cc-cap[data-from="top"] { animation-name: cc-from-top; }
@keyframes cc-from-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes cc-from-top  { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }

/* arrows */
.cc-arrow {
	position: absolute; top: 50%; z-index: 3; width: 42px; height: 42px; margin-top: -21px; padding: 0;
	border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: rgba(0,0,0,.45);
	display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s, background .25s;
}
.cc-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cc-prev { left: calc(var(--pad) + 10px); }
.cc-next { right: calc(var(--pad) + 10px); }
.cc-slider:hover .cc-arrow, .cc-arrow:focus-visible { opacity: 1; }
.cc-arrow:hover { background: rgba(139,74,103,.9); }
@media (hover: none) { .cc-arrow { opacity: .85; width: 36px; height: 36px; margin-top: -18px; } }

/* dots */
.cc-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(var(--pad) + 8px); display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.cc-dot { pointer-events: auto; width: 11px; height: 11px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: rgba(0,0,0,.35); cursor: pointer; }
.cc-dot[aria-current="true"] { background: #8B4A67; border-color: #fff; }
.cc-arrow:focus-visible, .cc-dot:focus-visible { outline: 3px solid #8B4A67; outline-offset: 2px; }

.cc-slider--single .cc-arrow, .cc-slider--single .cc-dots { display: none; }
@media (prefers-reduced-motion: reduce) {
	.cc-slide, .cc-slide.is-active { transition: none; }
	.cc-slide.is-active .cc-cap { animation: none; opacity: 1; }
}
