/*
	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-marquee {
	--font-title: var(--font-display);
	--font-desc: var(--font-body);
	--text-color: var(--gray-100);
	--text-color-hover: var(--gray-100);

	position: relative;
	margin-bottom: var(--space-12);
	padding-top: var(--space-8);
}

.core-marquee .slides {
	margin: 0 auto;
	padding: 0 var(--space-5);
	max-width: var(--width-base);
}

.core-marquee[data-width="full"] .slides {
	padding: 0;
	max-width: 100%;
}

.core-marquee .slides {
	display: grid;
}

.core-marquee .slides {
	gap: var(--space-3);
}

@media (min-width: 980px) {
	.core-marquee[data-layout="vertical"] .slides {
		grid-template-columns: repeat(3, 1fr);
	}

	.core-marquee[data-layout="vertical"] .slide:nth-child(1) {
		grid-column: 1 / span 3;
		grid-row: 1;
	}
	
	.core-marquee[data-layout="horizontal"] .slides {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: repeat(3, 1fr);
	}
	
	.core-marquee[data-layout="horizontal"] .slide:nth-child(1) {
		grid-column: 1;
		grid-row: 1 / span 3;
	}
}

.core-marquee .slide {
	position: relative;
	color: var(--text-color);
}

.core-marquee[data-layout="horizontal"] .slide:not(:nth-child(1)) {
	color: unset;
}

.core-marquee .slide > .inner {
	height: 100%;
}

.core-marquee[data-layout="horizontal"] .slide:not(:nth-child(1)) > .inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.core-marquee .slide .content-section {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: var(--space-4) var(--space-6);
	width: 100%;
	pointer-events: none;
}

.core-marquee .slide .content-section > *{
	pointer-events: all;
}

.core-marquee[data-layout="horizontal"] .slide:not(:nth-child(1)) .content-section {
	position: relative;
	padding: 0 var(--space-5);
	pointer-events: all;
}

.core-marquee .slide .img-cont {
	position: relative;
	overflow: hidden;
}

@media (min-width: 40em) {
	.core-marquee[data-layout="horizontal"] .slide .img-cont.promoted {
		padding: 0;
		height: 100%;
	}
}

.core-marquee[data-layout="horizontal"] .slide:not(:nth-child(1)) .img-cont {
	padding: 0;
	height: auto;
}

@media (min-width: 64em) {
	.core-marquee[data-layout="horizontal"] .slide:not(:nth-child(1)) .img-cont {
		flex: 0 0 239px;
	}
}

.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[data-layout="horizontal"] .slide:nth-child(1) img {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.core-marquee .slide .slide-title {
	margin: 0;
	font-family: var(--font-title);
	font-size: var(--text-xl);
	font-weight: 700;
	color: var(--text-color);
}

@media (hover: hover) {
	.core-marquee .slide .slide-title > a:hover {
		color: var(--text-color-hover);
		text-decoration: underline;
	}

	.core-marquee[data-layout="horizontal"] .slide:not(:nth-child(1)) .slide-title > a:hover {
		color: var(--text-color-hover);
		text-decoration: none;
	}
}

.core-marquee[data-layout="horizontal"] .slide:not(:nth-child(1)) {
	--text-color: var(--primary-color-700);
	--text-color-hover: var(--primary-color-800);
}

.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-family: var(--font-desc);
	font-size: var(--text-base);
	font-weight: 400;
	line-height: var(--leading-tight);
	color: var(--text-color);
}

.core-marquee[data-layout="horizontal"] .slide:not(:nth-child(1)) p {
	display: none;
}

.core-marquee .slide .slide-footer {
	--color: var(--text-color);
	--color-hover: var(--gray-600);
	--color-secondary: var(--gray-700);
	--color-secondary-hover: var(--gray-600);
	--font-family: var(--font-desc);
}

.core-marquee .slide:only-child .slide-footer,
.core-marquee.marquee-side-by-side .slide:first-child .slide-footer {
	margin-bottom: var(--space-1);
}

.core-marquee .slide .slide-footer .qv-btn {
	color: var(--color);
}

.core-marquee.marquee-side-by-side .slide:not(:first-child) .slide-footer .qv-btn {
	color: var(--color-secondary);
}


@media (hover : hover ) {
	.core-marquee .slide .slide-footer .qv-btn:hover {
		color: var(--text-color);
	}

	.core-marquee.marquee-side-by-side .slide:not(:first-child) .slide-footer .qv-btn:hover {
		color: var(--color-secondary-hover);
		text-decoration: none;
	}

	.core-marquee .slide .slide-footer .qv-btn:hover .qv-text {
		text-decoration: underline;
	}

	.core-marquee.marquee-side-by-side .slide:not(:first-child) .slide-footer .qv-btn:hover .qv-text {
		text-decoration: none;
	}
}
