/*
	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-hero-image .img-cont:after {
	content: "";
	background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
	top: 0;
	left: 0;
	position: absolute;
	pointer-events: none;
	height: 100%;
	width: 100%;
}

.ccl-widget.core-hero-image .slide .slide-title {
	font-size: 1.375rem;
	line-height: 1.18;
	font-weight: 500;
	max-width: 95%;
}

.core-hero-image .slide .slide-footer .read-more {
	color: var(--white);
	pointer-events: all;
}

.core-hero-image .slide p {
	color: var(--overlap-color-body);
	display: flex;
	flex-direction: column;
	font-weight: 400;
	font-size: var(--text-base);
	line-height: var(--leading-snug);
	gap: var(--space-2);
}

.core-hero-image .read-more {
	font-weight: 700;
	color: var(--text-color);
}

.core-hero-image .content-section {
	padding: var(--space-10) var(--space-5);
	width: 100%;
	max-width: 75ch;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--space-3);
	pointer-events: none;
}

.core-hero-image .slide .sponsored {
	display: block;
}

@media (min-width: 40em) {
	.core-hero-image .content-section {
		padding: var(--space-10) var(--space-8);
	}
}

@media (min-width: 64em) {
	.core-hero-image .content-section {
		padding: var(--space-12) 60px;
	}

	.ccl-widget.core-hero-image .slide .slide-title {
		font-size: 1.75rem;
		line-height: 1.18;
		font-weight: 500;
		max-width: 95%;
	}

	.core-hero-image .slide p {
		font-size: var(--text-lg);
	}

	/* .core-hero-image .slide .slide-footer a:hover:after {
		height: 10px;
	} */
	
}

/* Themed */
.core-hero-image .slides.themed {
	position: relative;
}

.core-hero-image .slides.themed::before,
.core-hero-image .slides.themed::after {
	content: '';
	height: 100%;
	width: 100%;
	position: absolute;
	left: 50%;
	pointer-events: none;
}

.core-hero-image .slides.themed::before {
	top: 50%;
	transform: translate(-50%, -50%);
	background: url(/includes/public/assets/shared/red-shape-top.svg) no-repeat;
	background-position: top;
	background-size: calc(100% - 90px);
	z-index: 1;
}

.core-hero-image .slides.themed::after {
	bottom: 50%;
	transform: translate(-50%, 50%);
	background: url(/includes/public/assets/shared/red-shape-bottom.svg) no-repeat;
	background-position: bottom;
	background-size: calc(100% - 75px);
}

.core-hero-image .slides.themed .img-cont:after {
	background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
}

@media (min-width: 40em) {
	.core-hero-image .slides.themed::before {
		background-size: calc(100% - 390px);
	}
	
	.core-hero-image .slides.themed::after {
		background-size: calc(100% - 350px);
	}
}

@media (min-width: 64em) {
	.core-hero-image .slides.themed::before {
		background-size: 575px;
	}
	
	.core-hero-image .slides.themed::after {
		background-size: 630px;
	}
}