/*
	README

	Modify this file as much or as little as needed.

	This file is shared across all CCL widgets in the Slider family. This enables the ability to
	a family of widgets in a single update without touching the structure of the widget and without needing
	to duplicate efforts across several widget-specific CSS files.
*/

.core-slider .img-cont::after {
	content: '';
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgb(0 0 0 / 38%) 100%);
	pointer-events: none;
}

@media (min-width: 64em) {
	.core-slider .slide.overlap-image-desktop .content-section {
		position: absolute;
		z-index: 2;
		left: 0;
		bottom: 0;
		padding: var(--space-4) var(--space-16);
		width: 100%;
		max-width: var(--width-comfortable);
	}
}

.core-slider .slide .slide-title {
	font-size: var(--text-2xl);
	line-height: var(--leading-tight);
}

.core-slider .slide p {
	font-size: var(--text-lg);
	line-height: var(--leading-tight);
}

/* ----- */
.ccl-widget.core-slider:not(.slider-1-across):not(.slider-1-across-fullwidth) .img-cont::after {
	display: none;
}

.ccl-widget.core-slider {
	--color-display: var(--blue-dark);
	--color-body: var(--grey-dark);
	position: relative;
	overflow: hidden;
	margin-bottom: var(--space-20);
	padding-bottom: var(--space-10);
}

.ccl-widget.core-slider .img-cont {
	box-shadow: 1px 3px 4px #0000004d;
	border-radius: var(--rounded-lg);
}

.ccl-widget.core-slider .glide__arrows {
	width: calc(100% + 63px);
	right: 50%;
	left: auto;
	transform: translate(50%, -50%);
	z-index: 0;
}

.ccl-widget.core-slider .glide__arrow {
	--arrow-color: var(--white);
	--arrow-bg-color: var(--blue-dark);
	height: 24px;
	width: 24px;
	font-size: 0.8125rem;
	padding: 0;
	padding-top: 1px;
	margin: 0;
}

.ccl-widget.core-slider .glide__arrows:after {
	content: '';
	position: absolute;
	top: 12px;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	height: 120vh;
	background: #eff4fa;
	z-index: -1;
}

.ccl-widget.core-slider p {
	font-size: var(--text-base);
	font-weight: 400;
	line-height: var(--leading-snug);
	color: var(--grey-dark);
}

.ccl-widget.core-slider .slide .slide-footer a {
	position: relative;
	color: var(--blue-dark);
	transition: color var(--transition-appendix);
}

.ccl-widget.core-slider .slide .slide-footer a:after {
	content: '\f061';
	position: absolute;
	font-family: 'Font Awesome 5 Free';
	font-size: var(--text-base);
	font-weight: 900;
	right: -23px;
	color: var(--green);
	transition: right var(--transition-appendix);
}

.ccl-widget.core-slider .slide .content-section {
	padding: var(--space-6) 0;
	gap: var(--space-1);
}

.ccl-widget.core-slider .slide-title,
.ccl-widget.core-slider .slide-title a {
	font-size: var(--text-lg);
}

@media (min-width: 64em) {
	.ccl-widget.core-slider {
		padding-bottom: var(--space-6);
		margin-bottom: var(--space-24);
	}

	.ccl-widget.core-slider .img-cont {
		box-shadow: 1px 3px 7px #0000007d;
	}

	.ccl-widget.core-slider .slide-title,
	.ccl-widget.core-slider .slide-title a {
		font-size: 1.375rem;
	}

	.ccl-widget.core-slider .slide .slide-footer a:after {
		right: -19px;
	}
}

@media (min-width: 1370px) {
	.ccl-widget.core-slider .glide__arrows {
		width: calc(100% + 173px);
	}

	.ccl-widget.core-slider .glide__arrow {
		height: 40px;
		width: 40px;
		font-size: var(--text-2xl);
		padding-right: 2px;
	}

	.ccl-widget.core-slider .glide__arrow.glide__arrow--right {
		padding-left: 2px;
		padding-right: 0;
	}

	.ccl-widget.core-slider .glide__arrows:after {
		top: 20px;
	}
}

/* Fullwidth */
.ccl-widget.core-slider[data-width='full'] .slider-cont {
	width: calc(100vw - 80px);
	margin: 0 auto;
}

@media (min-width: 1370px) {
	.ccl-widget.core-slider[data-width='full'] .slider-cont {
		width: calc(100vw - 215px);
	}
}

/* Non full-width */
.ccl-widget.core-slider[data-width='controlled'] {
	padding: 0 var(--space-10) var(--space-10);
	max-width: unset;
}

.ccl-widget.core-slider[data-width='controlled'] > .slider-cont {
	max-width: 1173px;
	margin: 0 auto;
}

@media (hover: hover) {
	.ccl-widget.core-slider .slide .slide-footer a:hover {
		color: var(--green);
	}

	.ccl-widget.core-slider .slide .slide-footer a:hover:after {
		right: -28px;
	}

	section.ccl-widget.core-slider .slide .slide-title > a:hover {
		color: inherit;
		text-decoration: none;
	}
}

/* Hide publish date unless needed */
.ccl-widget.core-slider .slide .content-section .publish-date {
	display: none;
}