/*
	README

	Modify this file as much or as little as needed.

	This file is shared across all CCL widgets in the Cards 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-cards {
	padding-top: 0;
	margin-bottom: 100px;
}

.core-cards .slides {
	display: block;
	max-width: none;
	padding: 0;
	margin: 0;
}

.core-cards .slide .down-arrow {
	display: none;
}

.core-cards .slide > .inner,
.core-cards .slide .content-section,
.core-cards .slide .slide-top {
	display: block;
}

.core-cards .slide > .inner,
.core-cards .slide .slide-top {
	position: relative;
}

.core-cards .slide .slide-top {
	z-index: 1;
}

.core-cards .slide .slide-img,
.core-cards .slide .img-cont a {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.core-cards .slide .slide-img {
	object-fit: cover;
}

.core-cards .slide .content-section {
	gap: 0;
	background-color: var(--almost-white);
	color: var(--navy);
	pointer-events: none;
}

.core-cards .slide:nth-child(even) .content-section {
	background-color: var(--light-blue)
}

.core-cards .slide .content-section a {
	pointer-events: all;
}

.core-cards .slide .slide-title {
	padding: var(--space-4) var(--space-5) var(--space-5) var(--space-5);
	color: inherit;
	text-align: center;
	font-family: var(--font-display-2);
	font-weight: var(--font-weight-heavy);
	font-size: 1.75rem;
	line-height: 1.2;
	text-transform: uppercase;
}

.core-cards .slide .slide-title > a {
	color: inherit !important;
}

.core-cards .slide .dotted-lines {
	gap: var(--space-2);
	padding: var(--space-3) 0 0 0;
	margin: 0;
}

.core-cards .dotted-lines .dotted-line {
	border-color: var(--white);
}

.core-cards .slide .img-cont {
	margin: 0;
	padding-bottom: 50%;
}

@media (min-width: 40em) {
	.core-cards .slides {
		display: grid;
		gap: 0;
		grid-template: auto / 1fr 1fr;
	}

	.core-cards .slide > .inner {
		display: flex;
		flex-direction: column-reverse;
	}

	.core-cards .slide:nth-child(even) > .inner {
		flex-direction: column;
	}

	.core-cards .slide .slide-top {
		flex-grow: 1;
	}

	.core-cards .slide .img-cont {
		height: 100%;
		padding-bottom: 60%;
	}

	.core-cards .slide .content-section {
		flex-shrink: 1;
	}

	.core-cards .slide:nth-child(even) .content-section {
		display: flex;
		flex-direction: column-reverse;
	}

	.core-cards .slide:nth-child(even) .dotted-lines {
		padding-top: 0;
		padding-bottom: var(--space-3);
	}

	.core-cards .slide:nth-child(even) .slide-title {
		padding: var(--space-5) var(--space-5) var(--space-4) var(--space-5);
	}
}

@media (min-width: 90em) {
	.core-cards {
		margin-bottom: var(--space-12);
	}

	.core-cards .slide > .inner {
		display: block;
	}

	.core-cards .shared-play-button {
		top: var(--space-5);
		left: auto;
		right: var(--space-5);
		transform: none;
	}

	.core-cards .slide:nth-child(odd) .shared-play-button {
		top: auto;
		bottom: var(--space-5);
	}

	.core-cards .slide .content-section {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		z-index: 2;
		display: flex;
		flex-direction: column;
	}

	.core-cards .slide:nth-child(even) .content-section {
		top: auto;
		bottom: 0;
		flex-direction: column-reverse;
	}

	.core-cards .slide .img-cont {
		padding-bottom: 83.33%;
	}

	.core-cards .slide .dotted-lines {
		gap: 11px;
		padding-top: var(--space-4);
	}

	.core-cards .slide:nth-child(even) .dotted-lines {
		padding-bottom: var(--space-4);
	}

	.core-cards .slide .slide-title {
		margin: auto 0;
		font-size: 2.5rem;
	}

	.core-cards .slide .slide-title,
	.core-cards .slide:nth-child(even) .slide-title {
		padding: var(--space-5);
	}
}

@media (hover: hover) and (min-width: 90em) {
	.core-cards .slide .down-arrow {
		display: block;
	}

	.core-cards .slide .content-section {
		height: 100%;
		max-height: 130px;
		transition: background-color var(--transition-appendix), max-height var(--transition-appendix), color var(--transition-appendix);
	}

	.core-cards .slide:hover .content-section {
		max-height: 100%;
		background-color: rgba(0,0,0, .5);
		color: var(--white);
	}
}