/*
	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 {
	position: relative;
	margin-bottom: var(--widget-margin-bottom);
	padding-top: var(--widget-padding-top);
}

.core-callout-tiles::after {
	content: '';
	position: absolute;
	top: 13%;
	left: 0;
	width: 100%;
	height: calc(87% + 25px);
	z-index: -1;
	pointer-events: none;
	background: url('/includes/public/assets/shared/rebrand/callout-bg-sm.svg') center / cover no-repeat;
}

@media (min-width: 40em) {
	.core-callout-tiles::after {
		background: url('/includes/public/assets/shared/rebrand/callout-bg.svg') top center / cover no-repeat;
	}
}

@media (min-width: 64em) {
	.core-callout-tiles::after {
		top: 25%;
		height: calc(75% + 25px);
	}
}

.core-callout-tiles .widget-header-inner {
	border: none;
}

.core-callout-tiles .slide .borders {
	position: absolute;
	top: 10px;
	left: 10px;
	width: calc(100% - 20px);
	height: calc(100% - 20px);
	z-index: 5;
	pointer-events: none;
}

.core-callout-tiles .slide .borders span {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.core-callout-tiles .slide .borders::before,
.core-callout-tiles .slide .borders::after,
.core-callout-tiles .slide .borders span::before,
.core-callout-tiles .slide .borders span::after  {
	content: '';
	position: absolute;
}

.core-callout-tiles .slide .borders::before {
	bottom: 0;
	right: 0;
	width: 100%;
	height: 4px;
	background-color: white;
	transform: scaleX(0);
	transform-origin: right;
}

.core-callout-tiles .slide .borders::after {
	bottom: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background-color: white;
	transform: scaleY(0);
	transform-origin: bottom;
}

.core-callout-tiles .slide .borders span::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background-color: white;
	transform: scaleX(0);
	transform-origin: left;
}

.core-callout-tiles .slide .borders span::after {
	top: 0;
	right: 0;
	width: 4px;
	height: 100%;
	background-color: white;
	transform: scaleX(0);
	transform-origin: top;
}

@media (hover: hover) {
	.core-callout-tiles .slide:hover .borders::before {
		transform: scaleX(100%);
		transition: transform 0.25s;
	}

	.core-callout-tiles .slide:hover .borders::after {
		transform: scaleY(100%);
		transition: transform 0.25s 0.25s;
	}

	.core-callout-tiles .slide:hover .borders span::before {
		transform: scaleX(100%);
		transition: transform 0.25s 0.5s;
	}

	.core-callout-tiles .slide:hover .borders span::after {
		transform: scaleY(100%);
		transition: transform 0.25s 0.75s;
	}
}

.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 {
	transform-origin: center;
	transition: transform 300ms ease;
}

@media (hover: hover) {
	.core-callout-tiles .slide:hover .img-cont {
		
	}
}

.core-callout-tiles .slide .slide-title {
	color: var(--white);
	font-family: var(--font-futura);
	font-size: var(--text-xl);
	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);
	}
}