/*
	README

	Do NOT modify this file directly; a number of widgets depend on this file being as is.
	Use the CSS file that is associated with your widget
	(ie. template: widget_template_custom_my_widget.html, CSS: widget_template_custom_my_widget.css)
	to make any theme-ing or overwrites you need.

	If you need to make significant changes such that overwriting would be complicated
	consider not using a different component from the Core Collection Library or
	not using the Core Component Library altogether.

	If you still feel the need to edit this file, copy/paste this CSS into a different file
	and use that instead.
*/

.core-hero-preview-slideshow {
	--font-title: var(--font-display);
	--font-desc: muli,sans-serif;
	--primary-color: #BC0523;
	--secondary-color: #fff;
	--text-content : var(--gray-100);
	--btn-content : #fff;
	--btn-content-alt : var(--secondary-color-900);
}

.core-hero-preview-slideshow .slider-cont {
	position: relative;
}

.core-hero-preview-slideshow img {
	width: 100%;
}

.core-hero-preview-slideshow .img-cont::after {
	content: "";
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	box-shadow: inset 0 0 40px rgba(0,0,0,.4);
	pointer-events: none;
}

.core-hero-preview-slideshow .img-cont::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4));
	pointer-events: none;
}

.core-hero-preview-slideshow .glide__arrows {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 10;
	transform: translate(-50%, -50%);
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

@media (max-width: 1190px) {
	.core-hero-preview-slideshow .glide__arrows {
		width: 100% !important;
		gap: 0;
		padding: 0 var(--space-5);
	}
}

.core-hero-preview-slideshow .glide__arrow {
	outline: none;
}

.core-hero-preview-slideshow .glide__arrow:focus {
	border: 2px solid var(--secondary-color);
}

.core-hero-preview-slideshow .slide {
	position: relative;
}

.core-hero-preview-slideshow .content-section {
	position: absolute;
	z-index: 10;
	bottom: 0;
	left: 50px;
	padding: var(--space-8) var(--space-8);
	max-width: var(--width-comfortable);
}

@media (min-width: 1190px) {
	.core-hero-preview-slideshow .content-section {
		left: 0;
	}
}

.core-hero-preview-slideshow .content-section.text-right {
	left: auto;
	right: 0;
	text-align: right;
}

.core-hero-preview-slideshow .title-desc-container { 
	opacity: 0; 
	transition: opacity .6s ease-in-out, transform 1s ease-in-out;
}

.core-hero-preview-slideshow .slide.glide__slide--active .title-desc-container {
	animation: content-section-appear 1.6s ease forwards;
}

@keyframes content-section-appear {
	0% {
		opacity: 0;
		transform: scale(1.4);
	}
	35% {
		opacity: 0;
		transform: scale(1.4);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

.core-hero-preview-slideshow .title-desc-container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.core-hero-preview-slideshow .content-section.text-right .title-desc-container {
	align-items: flex-end;
}

.core-hero-preview-slideshow .content-section p, 
.core-hero-preview-slideshow .content-section h2, 
.core-hero-preview-slideshow .content-section a {
	color: var(--text-content);
	font-family: var(--font-desc);
}

.core-hero-preview-slideshow .title-desc-container .description {
	font-size: var(--text-lg);
	line-height: var(--leading-normal);
}

.core-hero-preview-slideshow .title-desc-container .title { 
	max-width: 80%;
	font-family: var(--font-title);
	font-size: var(--text-3xl);
	line-height: var(--leading-none);
	margin-bottom:  var(--space-2);
	font-weight: 600;
}

@media (min-width: 1190px) {
	.core-hero-preview-slideshow .title-desc-container .title {
		font-size: var(--text-5xl);
		max-width: 70%;
	}
	.core-hero-preview-slideshow .title-desc-container .description {
		font-size: var(--text-xl);
	}
}

.core-hero-preview-slideshow .title-desc-container .title a:hover {
	text-decoration: underline;
	color: var(--btn-content);
}

.core-hero-preview-slideshow .content-section .more-caption {
	background-color: var(--primary-color);
	width: fit-content;
	padding: var(--space-2) var(--space-5);
	margin-top: var(--space-6);
	color: var(--btn-content);
	font-family: var(--font-desc);
	font-weight: 700;
	text-transform: uppercase;
}

/* .core-hero-preview-slideshow .text-right .more-caption {
	background-color: var(--secondary-color);
	color: var(--btn-content-alt);
} */

@media (hover: hover) {
	.core-hero-preview-slideshow .text-right .more-caption:hover {
		background-color: var(--secondary-color-hover);
	}
}

.ccl-widget.core-hero-preview-slideshow .glide__arrows .glide__arrow {
	color: var(--btn-content);
	background-color: var(--primary-color);
	border-radius: 0;
}