.custom-mosaic { margin-bottom: var(--space-16); }

.custom-mosaic .widget-header {
	max-width: 1380px;
	margin-bottom: var(--space-10);
}

.custom-mosaic .widget-header .widget-header-inner { gap: 0; }

.custom-mosaic .widget-header .title-container {
	flex-direction: column;
	align-items: center;
	margin-bottom: var(--space-4);
}

.custom-mosaic .widget-header .widget-subtitle {
	font-family: var(--font-body);
	font-style: normal;
	font-size: 1.625rem;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.005em;
	color: var(--blue);
	text-align: center;
}

.custom-mosaic .widget-header .widget-title { text-align: center; }

.custom-mosaic .slides {
	max-width: 1380px;
	display: grid;
	gap: var(--space-5);
	padding: 0 var(--space-5);
	margin: 0 auto;
}

.custom-mosaic .slide {
	border-radius: 5px;
	box-shadow: 0 4px 15px 0px rgba(0, 0, 0, 0.15);
}

.custom-mosaic .slide > .inner,
.custom-mosaic .slide > .inner .img-cont,
.custom-mosaic .slide > .inner .img-cont img { border-radius: 5px; }

.custom-mosaic .slide > .inner { position: relative; }

.custom-mosaic .slide .content-section {
	position: absolute;
	bottom: 0;
	left: 0;
	background: var(--white);
	padding: 7px 10px;
	border-top-right-radius: 5px;
	border-bottom-left-radius: 4px;
	pointer-events: none;
}

.custom-mosaic .slide .content-section .slide-title,
.custom-mosaic .slide .content-section .slide-title a {
	font-family: var(--font-body-heavy);
	font-style: normal;
	font-size: var(--text-base);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: var(--tracking-normal);
	color: var(--text-black);
}

.custom-mosaic .water-colors-cont { display: none; }

@media (min-width: 40em) {
	.custom-mosaic .widget-header .widget-header-inner { flex-direction: column; }

	.custom-mosaic .widget-header .widget-subtitle {
		font-size: 2.25rem;
		letter-spacing: 0.005em;
		margin-bottom: calc(-1 * var(--space-3));
	}
	
	.custom-mosaic .widget-header .widget-title { font-size: var(--text-7xl); }

	.custom-mosaic .widget-header .widget-view-all {
		font-size: var(--text-lg);
		padding: var(--space-3) var(--space-8);
	}

	.custom-mosaic .slide .content-section { padding: 10px 15px; }

	.custom-mosaic .slide .content-section .slide-title,
	.custom-mosaic .slide .content-section .slide-title a { font-size: var(--text-3xl); }
}

@media (min-width: 64em) {
	.custom-mosaic { overflow: hidden; }

	.custom-mosaic > .inner {
		position: relative;
		padding-top: var(--space-16);
		padding-bottom: var(--space-40);
		max-width: 1440px;
		margin: 0 auto;
	}

	.custom-mosaic .water-colors-cont { display: block; }

	.custom-mosaic .water-colors-cont .water-color-one {
		content: '';
		position: absolute;
		top: 0;
		right: -285px;
		z-index: -1;
		height: 100%;
		width: 100%;
		pointer-events: none;
	}

	.custom-mosaic .water-colors-cont .water-color-two {
		content: '';
		position: absolute;
		top: 0;
		right: -74px;
		z-index: -2;
		height: 100%;
		width: 100%;
		pointer-events: none;
	}

	.custom-mosaic .widget-header {
		position: relative;
		z-index: 1;
		margin-bottom: var(--space-4);
	}

	.custom-mosaic .widget-header .widget-header-inner {
		flex-direction: row;
		align-items: flex-end;
		gap: var(--space-10);
	}

	.custom-mosaic .widget-header .title-container {
		align-items: flex-start;
		margin-bottom: 0;
	}

	.custom-mosaic .widget-header .widget-subtitle { text-align: left; }
	
	.custom-mosaic .widget-header .widget-title { text-align: left; }

	.custom-mosaic .widget-header .widget-view-all { margin-bottom: var(--space-4); }

	.custom-mosaic .slides {
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: repeat(3, auto);
		gap: var(--space-10);
	}

	.custom-mosaic .slide > .inner { overflow: hidden; }

	.custom-mosaic .slide > .inner,
	.custom-mosaic .slide > .inner .img-cont,
	.custom-mosaic .slide > .inner .img-cont img { height: 100%; }

	.custom-mosaic .slide > .inner .img-cont img { object-fit: cover; }

	.custom-mosaic .slides .slide:nth-of-type(1) {
		grid-row: 1 / 3;
		grid-column: 1;
	}

	.custom-mosaic .slides .slide:nth-of-type(2) {
		grid-row: 1;
		grid-column: 2;
	}

	.custom-mosaic .slides .slide:nth-of-type(3) {
		grid-row: 1 / 3;
		grid-column: 3;
	}

	.custom-mosaic .slides .slide:nth-of-type(4) {
		grid-row: 3;
		grid-column: 1;
	}

	.custom-mosaic .slides .slide:nth-of-type(5) {
		grid-row: 2 / -1;
		grid-column: 2;
	}

	.custom-mosaic .slides .slide:nth-of-type(6) {
		grid-row: 3;
		grid-column: 3;
	}

	.custom-mosaic .slide .content-section {
		width: 0;
		min-width: max-content;
		max-width: 90%;
		animation: leavingHover 0.8s ease backwards;
	}

	.custom-mosaic .slide .content-section .slide-title,
	.custom-mosaic .slide .content-section .slide-title a {
		position: relative;
		transition: color 400ms ease;
	}

	.custom-mosaic .slide .content-section .slide-title a::after {
		content: '\f061';
		font-family: 'Font Awesome 5 Free';
		font-weight: 600;
		position: absolute;
		right: -37px;
		top: 50%;
		transform: translateY(-50%);
		background: linear-gradient(299deg, #309aab 0%, #9bd0db 100%);
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
		opacity: 0;
		transition: opacity 100ms ease;
	}

	@media (hover: hover) {
		.custom-mosaic .slide:hover .content-section { animation: startHover 400ms ease forwards; }

		.custom-mosaic .slide:hover .content-section .slide-title,
		.custom-mosaic .slide:hover .content-section .slide-title a { color: var(--white); }

		.custom-mosaic .slide:hover .slide-title a::after {
			opacity: 1;
			transition: opacity 100ms 200ms ease;
		}
	}

	@keyframes startHover {
		0% {
			width: 0;
			min-width: max-content;
		}

		80% {
			max-width: 101%;
			width: 101%;
		}

		100% {
			max-width: 101%;
			width: 101%;
			padding-top: var(--space-8);
			padding-bottom: var(--space-8);
			background-color: rgb(0 104 179 / 70%);
		}
	}
	@keyframes leavingHover {
		0% {
			max-width: 101%;
			width: 101%;
			padding-block: var(--space-8);
			background-color: rgb(0 104 179 / 70%);
		}

		30% {
			padding-top: 10px;
			padding-right: 10px;
			background-color: var(--white);
		}

		100% {
			width: 0;
			min-width: max-content;
		}
	}
}