/* ==========================================================================
   
Client Carousel CSS

https://devsnap.me/css-carousels
https://codepen.io/studiojvla/pen/qVbQqW

   ========================================================================== */

.sliderContainer {
	align-items: center;
	background-image: linear-gradient(to bottom, whitesmoke , white, whitesmoke);
	display: flex;
	height: 160px;
	justify-content: center;
	border-color: rgba(1, 1, 1, 0.6);
	border-width: 5px;
	border-style: solid none;
}

@mixin white-gradient {
	background: linear-gradient(to right, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
}

/* Animation - set the calc() to the width of the images times the number of images */
@keyframes scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(calc(-250px * 16))}
}


/* Styling */
.slider {
	background: white;
	box-shadow: 0px 10px 25px 10px rgba(0, 0, 0, 0.6);
	height: 120px;
	width: 100%;
	margin: auto;
	overflow:hidden;
	position: relative;

	&::before,
	&::after {
		@include white-gradient;
		content: "";
		height: 120px;
		position: absolute;
		width: 200px;
		z-index: 2;
	}
	
	&::after {
		right: 0;
		top: 0;
		transform: rotateZ(180deg);
	}

	&::before {
		left: 0;
		top: 0;
	}

	/* Animation - set the calc() to the width of the images times double the number of images */
	.slide-track {
		animation: scroll linear infinite;
		animation-duration: 60s;
		display: flex;
		width: calc(250px * 32);
	}

	/* Set to images height and space between in width */
	.slide {
		height: 120px;
		width: 250px;
	}
}