/*
	README

	Modify this file as much or as little as needed.

	This file is shared across all CCL widgets in the Callout Tiles 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-callout-tiles {
	margin-bottom: var(--space-6);
	padding-top: var(--widget-padding-top);
}

.core-callout-tiles .slide .img-cont::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);	
}

.core-callout-tiles .slide .img-cont::before {
	content: '';
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: rgba(48, 106, 99, 0.7);
    transition: all ease 0.6s;
	pointer-events: none;
}

.core-callout-tiles .slide img {
	transform-origin: center;
	transition: all ease-out 0.6s;
}

@media (hover: hover) {
	.core-callout-tiles .slide:hover .img-cont img {
		transform: scale(1.1);
	}

	.core-callout-tiles .slide:hover .img-cont::before {
		opacity: 1;
	}
}
.core-callout-tiles .slide .content-section {
	z-index: 2;
}
.core-callout-tiles .slide .slide-title,
.core-callout-tiles .slide .slide-title a {
	font-family: var(--font-display-alt);
	font-size: 40px;
	line-height: var(--leading-none);
	text-align: center;
	color: #FFF;
	text-shadow: 0px 0px 20px rgba(0,0,0,0.5);
	text-transform: uppercase;
	font-weight: 400;
}

@media (min-width: 40em) {
	.core-callout-tiles .slide .slide-title,
	.core-callout-tiles .slide .slide-title a {
		font-size: calc(32px + (40 - 32) * ((100vw - 1025px) / (1440 - 1025)));
		max-width: fit-content;
	}
}

@media (min-width: 64em) {
	.core-callout-tiles {
		margin-bottom: var(--space-10);
	}

	.core-callout-tiles .slide .slide-title,
	.core-callout-tiles .slide .slide-title a {
		font-size: calc(40px + (50 - 40) * ((100vw - 1025px) / (1440 - 1025)));
	}

	.core-callout-tiles.callout-tiles-4-across-fullwidth .slide .slide-title, 
	.core-callout-tiles.callout-tiles-4-across-fullwidth .slide .slide-title a {
		font-size: calc(24px + (30 - 24) * ((100vw - 1025px) / (1440 - 1025)));
	}
}

@media (min-width: 1440px) {
	.core-callout-tiles .slide .slide-title,
	.core-callout-tiles .slide .slide-title a {
		font-size: 30px;
	}

	.core-callout-tiles.callout-tiles-4-across-fullwidth .slide .slide-title,
	.core-callout-tiles.callout-tiles-4-across-fullwidth .slide .slide-title a {
		font-size: calc(30px + (38 - 30) * ((100vw - 1440px) / (1920 - 1440)));
	}
}