/*
	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 {
	--title-font-mobile: 700 17px/20px var(--font-display);
	--title-font-desktop: 700 var(--text-2xl)/24px var(--font-display);

	margin-block: var(--widget-margin-bottom);
}

.core-callout-tiles .img-cont::before,
.core-callout-tiles .img-cont::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	pointer-events: none;
	transition: opacity var(--transition-appendix);
}

.core-callout-tiles .img-cont::before {
	opacity: 1;
	background: radial-gradient(50% 50% at 50% 50%, rgba(22, 21, 20, 0.40) 0%, rgba(0, 0, 0, 0.00) 100%);
}

.core-callout-tiles .img-cont::after {
	background:
		url('/includes/public/assets/shared/hover-texture.png') no-repeat center center / 220px auto,
		url('/includes/public/assets/shared/splash-texture.png') no-repeat center center / 150px auto,
		rgba(0, 0, 0, 0.5);
	opacity: 0;
}

@media (hover: hover) {
	.core-callout-tiles .slide:hover .img-cont::before {
		opacity: 0;
	}

	.core-callout-tiles .slide:hover .img-cont::after {
		opacity: 1;
	}
}

.core-callout-tiles .slide img {
	transform-origin: center;
	transition: transform 300ms ease;
}

.core-callout-tiles .slide .slide-title {
	z-index: 2;
	text-align: center;
}

.core-callout-tiles .slide .slide-title > a {
	font: var(--title-font-mobile);
	text-transform: uppercase;
	letter-spacing: 2.2px;
	text-shadow: 0px 0px 39px rgba(0, 0, 0, 0.75);
}

@media (min-width: 64em) {
	.core-callout-tiles .slide .slide-title > a {
		font: var(--title-font-desktop);
	}
}