/*
	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-v2-editorial .slides {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-12) var(--space-5);
	max-width: var(--width-base);
	padding: 0 var(--space-5);
	margin: 0 auto;
}

.core-v2-editorial.sm-two-col .slides {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.core-v2-editorial .slide > .inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	overflow: hidden;
}

.core-v2-editorial .slide-img {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
}

.core-v2-editorial .content-section {
	flex-grow: 1;
}

.core-v2-editorial .content-upper {
	position: relative;
	display: grid;
    gap: var(--space-2);
    grid-template-rows: max-content max-content minmax(0, 1fr);
}

.core-v2-editorial .slide-desc {
	position: relative;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;  
	overflow: hidden;
}

.core-v2-editorial .slide-footer .read-more {
	position: absolute;
	bottom: var(--space-5);
	left: 50%;
	z-index: 10;
	transform: translate(-50%, 130%);
	opacity: 0;
	transition:
		transform var(--transition-appendix),
		background-color var(--transition-appendix),
		color var(--transition-appendix),
		opacity var(--transition-appendix);
}

@media (hover: hover) {
	.core-v2-editorial .slide:hover .slide-footer .read-more {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

@container (min-width: 40em) {
	.core-v2-editorial.sm-two-col .slides,
	.core-v2-editorial .slides {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--space-6);
	}
}

@container (min-width: 64em) {
	.core-v2-editorial.sm-two-col .slides,
	.core-v2-editorial .slides {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--space-10);
	}

	.core-v2-editorial .slide > .inner {
		height: 100%;
	}

	.core-v2-editorial .slide:nth-child(6n),
	.core-v2-editorial .slide:nth-child(6n + 1) {
		grid-column: span 2;
	}
	
	.core-v2-editorial .slide:nth-child(6n) > .inner {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-5);
	}

	.core-v2-editorial .slide:nth-child(6n) .slide-top,
	.core-v2-editorial .slide:nth-child(6n) .img-cont,
	.core-v2-editorial .slide:nth-child(6n) .slide-img {
		width: 100%;
		height: 100%;
	}

	.core-v2-editorial .slide:nth-child(6n + 1) .slide-top,
	.core-v2-editorial .slide:nth-child(6n + 1) .img-cont {
		width: 100%;
		height: 260px;
	}
}