/*
	README

	Modify this file as much or as little as needed.

	This file is shared across all CCL widgets in the Marquee 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-marquee {
	margin-bottom: var(--widget-margin-bottom);
	padding-top: var(--widget-padding-top);
}

.core-marquee .slide .img-cont::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 75%;
	background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
	pointer-events: none;
}

.core-marquee .slide .slide-title {
	margin: 0;
	font-size: var(--text-xl);
	font-weight: var(--font-weight-bold, 700);
}

.core-marquee[data-layout="vertical"] .slide .slide-title,
.core-marquee[data-layout="horizontal"] .slide:first-child .slide-title {
	max-width: calc(100% - var(--space-10));
}

.core-marquee[data-layout="horizontal"] .slide:not(:nth-child(1)) .slide-title {
	font-size: var(--text-lg);
}

.core-marquee .slide p {
	margin-bottom: var(--space-4);
	font-size: var(--text-base);
	font-weight: var(--font-weight-normal, 400);
	line-height: var(--leading-tight);
}

.core-marquee .slides > .slide:not(:first-child) .content-section h3 {
	color: var(--sw-key-color, var(--primary-color-700));
}

.core-marquee .slide.overlap-image:not(:first-child) .content-section p {
	color: var(--gray-900);
}

@media (min-width: 360px) {
	.core-marquee .slides > .slide:not(:first-child) .content-section h3 {
		color: var(--color-display)
	}
	
	.core-marquee .slide.overlap-image:not(:first-child) .content-section p {
		color: var(--overlap-color-body);
	}
}

@media (min-width: 40em) {
	.core-marquee[data-layout="vertical"] .slide:not(:nth-child(1)) .slide-title {
		max-width: calc(100% - var(--space-8));
	}
}

@media (min-width: 64em) {
	.core-marquee[data-layout="vertical"] .slide:first-child .slide-title,
	.core-marquee[data-layout="horizontal"] .slide:first-child .slide-title {
		max-width: unset;
	}
}