/*!
 * Senate Democratic Caucus
 * Global Carousel Stylesheet
 */


/* News Carousel 
*****************************/
.slider-wrapper {
	padding: 0px 40px;
	.view-content.row {
		display: flex !important;
		flex-wrap: nowrap !important;
		transition: transform 0.4s ease;
	}

	.slider-item {
		display: flex;
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
        height: 100%;
        transition: all 0.5s ease;
		@media (max-width:1400px) {
			flex: 0 0 50%;
			max-width: 50%;
		}
	}

	.slider-container {
		padding: 40px;
		transition: all 0.5s ease;
	}

	.summary {
		display: block;
		p {
			color: var(--dark-color);
			font-size: 16px;
			-webkit-box-orient: vertical;
			-webkit-line-clamp: 4;
			display: -webkit-box;
			text-overflow: ellipsis;
			overflow: hidden;
		}
	}
	
	/* Arrows */
	.slider-control {
		position: relative;
		top: 52px;
		z-index: 2;
		.left-arrow {
			position: relative;
			left: -40px;
			float: left;
		}
		.right-arrow {
			position: relative;
			right: -40px;
			float: right;
		}
	}
}

/* Mobile news */
.carousel-track {
	position: relative;
	width: 100%;
	margin: 0px auto;
	.view-content.row {
		display: flex !important;
		flex-wrap: nowrap;
		transition: transform 0.3s ease-in-out;
		padding: 0;
		margin: 0;
	}	
	.mobile-card {
		text-align: center;
		color: var(--dark-color);
		border: 1px solid lightgray;
		background: var(--light-color);
		height: 460px;
		align-content: center;
		h4 {
			color: var(--accent-color);
		}
		h3 a {
			-webkit-box-orient: vertical;
			-webkit-line-clamp: 5;
			display: -webkit-box;
			text-overflow: ellipsis;
			overflow: hidden;
		}
	}

	.mobile-carousel-slide.active {
		color: var(--light-color);
	}

	.mobile-carousel-slide {
        flex: 0 0 100%;
        max-width: 100%;
		opacity: 0.4;
		transform: scale(0.92);
		transition: transform 0.3s ease, opacity 0.3s ease;
		box-sizing: border-box;
	}

	.mobile-carousel-slide.active {
		opacity: 1;
		transform: scale(1);
		z-index: 2;
	}

	/* Dots */
	.carousel-pagination {
		display: flex;
		justify-content: center;
  		padding: 40px;
	}

	.carousel-pagination button {
		width: 10px;
		height: 10px;
		margin: 0 6px;
		border-radius: 50%;
		border: none;
		background: #ccc;
		cursor: pointer;
		padding: 0;
	}

	.carousel-pagination button.active {
		background: #333;
	}
}