/*
	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-v2-callout-tiles .img-cont::before {
	display: block;
	background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.core-v2-callout-tiles .content-section {
	text-align: center;
}

.core-v2-callout-tiles .slide-title {
	font-size: var(--text-xl);
}

.core-v2-callout-tiles.full-width .slides {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	padding: 0 var(--space-5);
}

.core-v2-callout-tiles.full-width .slides:has(.slide:nth-last-child(n + 5)) .slide:last-child {
	grid-column: span 2;
	padding: 0px 86.5px;
	max-width: 467px;
	margin-inline: auto;
}

.ccl-v2-widget.core-v2-callout-tiles.full-width .overlap-image .content-section {
	position: relative;
	padding: 10px;
	padding: 10px 0;
}

.ccl-v2-widget.core-v2-callout-tiles.full-width .slide > .inner {
	display: flex;
	flex-direction: column;
	height: auto;
}

.ccl-v2-widget.core-v2-callout-tiles.full-width .overlap-image .slide-title {
	color: var(--dark-gray);
	text-align: center;
	font-family: var(--font-display);
	font-size: var(--text-xs);
	font-weight: 900;
	line-height: 1.3;
	font-style: normal;
}

.core-v2-callout-tiles.full-width .slide-top::before {
	content: '';
	position: absolute;
	inset: 0 0 -1px 0;
	z-index: 2;
	pointer-events: none;
	background-image: url(/includes/public/assets/shared/distressed-edge-mobile.svg);
	background-position: bottom left;
	background-repeat: repeat-x;
}
.core-v2-callout-tiles.full-width .slide-top .credits {
	bottom: 10px;
}

.ccl-v2-widget.core-v2-callout-tiles .title-col {
    padding-bottom: 10px;
}

.ccl-v2-widget.core-v2-callout-tiles .img-cont {
    width: 100%;
}

@media (min-width: 40em) {
	.core-v2-callout-tiles.full-width .slides:has(.slide:nth-last-child(n + 5)) .slide:last-child {
		max-width: min(calc(467px + (659 - 467) * ((100vw - 640px) / (1023 - 640))), 659px);
	}
}

@container (min-width: 64em) {	
	.core-v2-callout-tiles.full-width .slides:has(.slide:nth-last-child(n + 5)) .slide:last-child {
		padding: unset;
		grid-column: unset;
		max-width: unset;
		margin-inline: unset;
	}

	.core-v2-callout-tiles.full-width .slides {
		padding: 0;
		gap: var(--space-5);
	}

	.ccl-v2-widget.core-v2-callout-tiles.full-width .overlap-image .slide-title {
		font-size: var(--text-base);
	}

	.core-v2-callout-tiles.full-width .slide-top::before {
		background-image: url(/includes/public/assets/shared/distressed-edge-desktop.svg);
	}

	.ccl-v2-widget.core-v2-callout-tiles.full-width .overlap-image .content-section {
		padding: var(--space-6);
	}
}