/*
	README

	This file should only be used to style structure of the widget. It should not
	contain fonts or theme styling. Use the shared_theme.css for that purpose.

	If simply theming the CCL, leave this file alone.

	If your design is very customized, edit this file as needed. 
*/

.core-marquee {
	position: relative;
}

.core-marquee .shared-play-button {
	transform: unset;
	left: unset;
	top: 20px;
	right: 20px;
}

.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);
}

.core-marquee .slide {
	position: relative;
}

.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;
}

.core-marquee[data-layout="horizontal"] .slide:not(:nth-child(1)) .img-cont {
	padding: 0;
	height: auto;
}

.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;
}

.core-marquee[data-layout="horizontal"] .slide:not(:nth-child(1)) p {
	display: none;
}

.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 .credits {
	bottom: unset;
	top: 0;
}

.core-marquee .credits.video {
	right: unset;
	left: 0;
}

@media (min-width: 40em) {
	.core-marquee[data-layout="horizontal"] .slide .img-cont.promoted {
		height: 100%;
	}
}

@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;
	}
}

@media (min-width: 64em) {
	.core-marquee[data-layout="horizontal"] .slide:not(:nth-child(1)) .img-cont {
		flex: 0 0 239px;
	}

	.core-marquee .slide:first-of-type .shared-play-button {
		transform: translate(-50%, -50%);
		left: 50%;
		top: 50%;
		right: unset;
	}
	.core-marquee .credits.video {
		right: 0;
		left: unset;
	}
}