/*
 * Carousel, library version: Slick 2.0.0 with its own slick.css and slick-theme.css.
 * This file only styles. It gives the slides their size and colors, and moves the theme's
 * arrows and dots to where the other two versions draw theirs (the theme puts white arrows
 * outside the slider, where they vanish on a light page). Nothing here changes how Slick behaves.
 */

.demo-scroll-carousel .carousel-wrap {
	position: relative;
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	/* Slick writes pixel widths on its slides and track. Inside a grid or flex item (the page
	   shell is a grid) those widths push the column wider than a phone screen, so the wrap
	   keeps its content out of its parent's sizing */
	contain: inline-size;
}

.demo-scroll-carousel .slick-list {
	border-radius: 10px;
}

.demo-scroll-carousel .carousel-slide {
	/* Slick's default rows: 1 wraps each slide in two divs and sets an inline
	   display: inline-block on it, so centering the text needs !important */
	display: flex !important;
	height: 160px;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	font-weight: 700;
	color: #0c0c0d;
	-webkit-user-select: none;
	user-select: none;
}

/* after the wrapping, the slides are counted on Slick's outer .slick-slide boxes */
.demo-scroll-carousel .slick-slide:nth-child(1) .carousel-slide { background: #c084fc; }
.demo-scroll-carousel .slick-slide:nth-child(2) .carousel-slide { background: #38bdf8; }
.demo-scroll-carousel .slick-slide:nth-child(3) .carousel-slide { background: #ffd444; }
.demo-scroll-carousel .slick-slide:nth-child(4) .carousel-slide { background: #57d9a3; }
.demo-scroll-carousel .slick-slide:nth-child(5) .carousel-slide { background: #b8ff57; }

/* Arrows: the theme's icon font glyphs, on a dark circle inside the slide's edges */
.demo-scroll-carousel .slick-arrow,
.demo-scroll-carousel .slick-arrow:hover,
.demo-scroll-carousel .slick-arrow:focus {
	z-index: 1;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(24, 22, 29, .6);
}

.demo-scroll-carousel .slick-prev {
	left: 8px;
}

.demo-scroll-carousel .slick-next {
	right: 8px;
}

.demo-scroll-carousel .slick-arrow:before {
	font-size: 16px;
	opacity: 1;
}

/* Slick marks the arrow at each end with .slick-disabled and aria-disabled */
.demo-scroll-carousel .slick-arrow.slick-disabled {
	opacity: .35;
	cursor: default;
}

.demo-scroll-carousel .slick-arrow:focus-visible {
	outline: 2px solid #18161d;
	outline-offset: 2px;
}

/* Dots: the theme's 20px boxes 30px apart, drawn as a 10px dot */
.demo-scroll-carousel .slick-dots li button:before {
	content: "";
	top: 5px;
	left: 5px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #18161d;
}

.demo-scroll-carousel .slick-dots li button:focus-visible {
	outline: 2px solid #18161d;
	outline-offset: 1px;
	border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
	/* Slick writes its transition inline on the track, so only !important turns it off */
	.demo-scroll-carousel .slick-track {
		transition: none !important;
		animation: none;
	}
}
