/*
	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-editorial .slides {
	display: grid;
	gap: var(--space-16);
	max-width: var(--width-base);
	margin: 0 auto;
	padding: 0 var(--space-5);
}

.core-editorial .slide {
	display: grid;
	gap: var(--space-2);
	overflow: hidden;
}

.core-editorial .slide p {
	position: relative;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;  
	overflow: hidden;
}

.core-editorial .img-cont {
	position: relative;
	display: block;
	overflow: hidden;
}

.core-editorial .slide img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.core-editorial .slide .read-more {
	transform: translate(-50%, 130%);
	transition: transform 200ms ease-in-out, opacity 200ms ease-in-out;
}

@media (min-width: 40em) {
	.core-editorial .slides {
		display: grid;
		gap: var(--space-6);
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 64em) {
	.core-editorial .slides {
		display: grid;
		gap: var(--space-10);
		grid-template-columns: repeat(4, 1fr);
	}
}

.core-editorial .slide .read-more {
	position: absolute;
	left: 50%;
	bottom: var(--space-5);
	z-index: 10;
	opacity: 0;
	transform: translate(-50%, 130%);
	transition: transform 200ms ease-in-out, opacity 200ms ease-in-out;
}

@media (hover: hover) {
	.core-editorial .slide:hover .read-more {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

@media (min-width: 64em) {
	.core-editorial .slide:nth-child(6n + 1) img {
		grid-column: span 2;
		max-width: 100%;
	}
	
	.core-editorial .slide:nth-child(6n) {
		grid-column: span 2;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--space-5);
	}
	
	.core-editorial .slide:nth-child(6n) .img-cont {
		width: 100%;
		height: 100%;
		overflow: hidden;
		position: relative;
	}

	.core-editorial .slide:nth-child(6n + 1) .img-cont {
		padding: 0;
		width: 100%;
		height: 260px;
		overflow: hidden;
		position: relative;
	}
	
	.core-editorial .slide:nth-child(6n) .title-desc-container {
		height: auto;
	}
	
	.core-editorial .slide:nth-child(6n + 1) {
		grid-column: span 2
	}
}

.core-editorial .title-desc-container {
	position: relative;
	display: grid;
    gap: var(--space-2);
    grid-template-rows: max-content max-content 1fr;
}