/*
	README

	Do NOT modify this file directly; a number of widgets depend on this file being as is.
	Use the CSS file that is associated with your widget
	(ie. template: widget_template_custom_my_widget.html, CSS: widget_template_custom_my_widget.css)
	to make any theme-ing or overwrites you need.

	If you need to make significant changes such that overwriting would be complicated
	consider not using a different component from the Core Collection Library or
	not using the Core Component Library altogether.

	If you still feel the need to edit this file, copy/paste this CSS into a different file
	and use that instead.
*/

.core-callout-tiles {
	--font-title: var(--font-display);
	--text-color: var(--gray-100);

	position: relative;
	margin-bottom: var(--widget-margin-bottom);
	padding-top: var(--widget-padding-top);
}

.core-callout-tiles:not([data-width="full"]) .slides {
	margin: 0 auto;
	padding: 0 var(--space-5);
	max-width: var(--width-base);
}

.core-callout-tiles .slides {
	display: grid;
	gap: var(--space-3);
}

@media (min-width: 40em) {	
	.core-callout-tiles[data-slides-across="2"] .slides {
		grid-template-columns: repeat(2, 1fr);
	}

	.core-callout-tiles[data-slides-across="3"] .slides {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.core-callout-tiles[data-slides-across="4"] .slides {
		grid-template-columns: repeat(2, 1fr);
	}	
}

@media (min-width: 64em) {
	.core-callout-tiles[data-slides-across="4"] .slides {
		grid-template-columns: repeat(4, 1fr);
	}
}

.core-callout-tiles .slide {
	position: relative;
}

.core-callout-tiles .slide .content-section {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-5);
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.core-callout-tiles .slide .img-cont {
	position: relative;
	overflow: hidden;
}

.core-callout-tiles .slide .img-cont::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
	pointer-events: none;
}

.core-callout-tiles .slide img {
	transform-origin: center;
	transition: transform 300ms ease;
}

@media (hover: hover) {
	.core-callout-tiles .slide:hover .img-cont img {
		transform: scale(1.2);
	}
}

.core-callout-tiles .slide .slide-title {
	font-family: var(--font-title);
	font-size: var(--text-xl);
	font-weight: 700;
	color: var(--text-color);
	text-align: center;
}

@media (min-width: 64em) {
	.core-callout-tiles[data-slides-across="1"] .slide .slide-title {
		font-size: var(--text-5xl);
	}
	
	.core-callout-tiles[data-slides-across="2"] .slide .slide-title {
		font-size: var(--text-4xl);
	}
	
	.core-callout-tiles[data-slides-across="3"] .slide .slide-title {
		font-size: var(--text-2xl);
	}
	
	.core-callout-tiles[data-width="full"][data-slides-across="3"] .slide .slide-title {
		font-size: var(--text-3xl);
	}
	
	.core-callout-tiles[data-slides-across="4"] .slide .slide-title {
		font-size: var(--text-xl);
	}
	
	.core-callout-tiles[data-width="full"][data-slides-across="4"] .slide .slide-title {
		font-size: var(--text-2xl);
	}
}