/*
	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. 
*/

.contentRender_name_plugins_collections_template_custom_core_editorial {
    position: relative;
}

.core-editorial .slides {
	display: grid;
	gap: var(--space-16);
	margin: 0 auto;
	padding: 0 var(--space-5);
}

.core-editorial .slide {
	display: grid;
	gap: var(--space-3);
	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-cont img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.core-editorial .slide:nth-child(6n + 1) .img-cont {
	aspect-ratio: 287 / 191 !important;
	border-radius: 0px 0 60px 0;
}

.core-editorial .slide .read-more {
	transform: translate(-50%, 130%);
	transition: transform 200ms ease-in-out, opacity 200ms ease-in-out;
}

.contentRender_name_plugins_collections_template_custom_core_editorial .viewAll {
	margin-bottom: calc(var(--widget-margin-bottom) + 10px);
}

@media (min-width: 40em) {
	.core-editorial .slides {
		display: grid;
		gap: var(--space-6);
		grid-template-columns: repeat(3, 1fr);
	}

	.contentRender_name_plugins_collections_template_custom_core_editorial .viewAll {
		/* margin-bottom: calc(var(--widget-margin-bottom) + 30px); */
		margin-bottom: 10px;
	}
}

.ccl-widget.core-editorial .details li.categories {
	font-weight: 700;
}

@media (min-width: 64em) {
	.core-editorial .slides {
		display: grid;
		gap: var(--space-8);
		grid-template-columns: repeat(4, 1fr);
		padding-bottom: var(--space-6);
	}
}

.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-cont 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 .img-cont {
		aspect-ratio: 394 / 546 !important;
	}

	.core-editorial .slide:nth-child(6n + 1) .img-cont {
		padding: 0;
		width: 100%;
		overflow: hidden;
		position: relative;
		aspect-ratio: 819 / 546 !important;
		border-radius: 0px 20px 100px 20px;
	}
	
	.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-6);
    grid-template-rows: max-content max-content 1fr;
}

@media (min-width: 40em) {

	.core-editorial .slide,
	.core-editorial .title-desc-container {
		gap: var(--space-6);
	}

	.core-editorial .slide:nth-child(6n + 1) {
		gap: var(--space-4);
	}
}

.core-editorial .details {
	grid-template-columns: 1fr 1fr;
}

.core-editorial .title-desc-container .info-item > img {
	max-height: 29px;
	max-width: 29px;
}

.core-editorial .details li:not(.has-link), 
.core-editorial .details li.has-link > a {
    align-items: center;
}

.core-editorial .details li:not(.categories) {
    justify-self: flex-end;
	grid-column: 2 / 3;
}