/*
	README

	Modify this file as much or as little as needed.

	This file is shared across all CCL widgets in the Header Slideshow 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-hero-slideshow {
	position: relative;
	margin-bottom: 57px;
}

.core-hero-slideshow .slide .img-cont::after {
	content: "";
	background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
	bottom: 0;
	left: 0;
	position: absolute;
	pointer-events: none;
	height: 100%;
	width: 100%;
}

.core-hero-slideshow .slide .content-section { bottom: calc(24px + (100 - 24) * ((100vw - 375px) / (1024 - 375)))}

@media (max-width: 374px) {
	.core-hero-slideshow .slide .content-section { bottom: calc(12px + (24 - 12) * ((100vw - 320px) / (375 - 320)))}
}

.core-hero-slideshow .slide .content-section .subtitle {
	font-family: var(--font-display);
	font-size: var(--text-sm);
	font-weight: 700;
	line-height: var(-leading-tight);
	letter-spacing: 0.3em;
	color: var(--white);
	text-transform: uppercase;
	margin-bottom: var(--space-2);
}

.core-hero-slideshow .slide .slide-title,
.core-hero-slideshow .slide .slide-title a {
	font-family: var(--font-display);
	font-size: 1.4375rem;
	font-weight: 500;
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-normal);
	color: var(--white);
	pointer-events: all;
}

@media (hover:hover) {
	.core-hero-slideshow .slide .slide-title a:hover { text-decoration: underline; }
}

/* Arrows */
.core-hero-slideshow .arrows-cont .glide__arrows {
	left: unset;
	right: var(--space-2);
	bottom: -28px;
	gap: 22px;
}

/* Since Glide does not have any fade transition settings built in, we have to make our own.
This will only apply to the hero slider. All other header_slideshows will not get this transition */
.core-hero-slideshow.hero-slider .glide.fade .glide__slides {
	transform: none !important;
	display: block;
	width: auto !important;
}

.core-hero-slideshow.hero-slider .glide.fade .glide__slide {
	position: absolute;
	left: 0; 
	top: 0;
	z-index: 1;
	opacity: 0;
	transition: opacity 1200ms cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s
}

.core-hero-slideshow.hero-slider .glide.fade .glide__slide:first-child {
	position: relative;
}

.core-hero-slideshow.hero-slider .glide.fade .glide__slide--active {
	z-index: 2;
	opacity: 1;
}

@media (min-width: 64em) {
	.core-hero-slideshow .slide .img-cont::after {
		background: linear-gradient(to top right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
		bottom: 0;
	}

	.core-hero-slideshow .slide .content-section {
		bottom: calc(80px + (192 - 80) * ((100vw - 1024px) / (1440 - 1024)));
		left: var(--space-8);
		max-width: 70ch;
	}

	.core-hero-slideshow .slide .content-section .subtitle {
		font-size: var(--text-base);
		margin-bottom: 18px;
	}

	.core-hero-slideshow .slide .slide-title,
	.core-hero-slideshow .slide .slide-title a { font-size: var(--text-3-5xl); }

	/* Arrows */
	.core-hero-slideshow .arrows-cont .glide__arrows {
		right: var(--space-6);
		bottom: calc(95px + (178 - 95) * ((100vw - 1024px) / (1440 - 1024)));
	}
}

@media (min-width: 1441px) {
	.core-hero-slideshow .slide .content-section {
		bottom: calc(192px + (350 - 192) * ((100vw - 1440px) / (2560 - 1440)))
	}

	/* Arrows */
	.core-hero-slideshow .arrows-cont .glide__arrows {
		bottom: calc(178px + (510 - 336) * ((100vw - 1440px) / (2560 - 1440)))
	}
}