/**
 * Collections hero (hover gallery) — frontend.
 *
 * @package Matta_Utility
 */

.matta-collections-hero {
	position: relative;
	min-height: 100svh;
	width: 100%;
	overflow: hidden;
	color: #fff;
	isolation: isolate;
}

@media (max-width: 1024px) {
	.matta-collections-hero {
		min-height: 50svh;
	}
}

@supports (height: 1dvh) {
	@media (max-width: 768px) {
		.matta-collections-hero {
			min-height: 50dvh;
		}
	}
}

.matta-collections-hero .ch-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.matta-collections-hero .ch-layer {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 0.6s ease;
	transform: translateZ(0);
}

.matta-collections-hero .ch-layer.show {
	opacity: 1;
}

.matta-collections-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	pointer-events: none;
}

.matta-collections-hero .ch-inner {
	position: relative;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 6rem 2rem;
	text-align: center;
}

@media (max-width: 1024px) {
	.matta-collections-hero .ch-inner {
		min-height: 50svh;
	}
}

.matta-collections-hero .ch-eyebrow {
	font-size: clamp(27px, 3vw, 40px);
	letter-spacing: 0.08em;
	font-family: GothamHTF-Light, var(--wd-title-font, system-ui);
	z-index: 10;
	color: #fff;
	text-transform: none;
	opacity: 1;
	margin: 0 0 1.25rem;
}

.matta-collections-hero .ch-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.matta-collections-hero .ch-list li {
	margin: 2rem 0;
}

@media (max-width: 768px) {
	.matta-collections-hero .ch-list li {
		margin: 0.5rem 0;
	}
}

.matta-collections-hero .ch-list a {
	z-index: 10;
	display: inline-block;
	font-family: var(--wd-title-font, inherit);
	color: #fff;
	text-decoration: none;
	font-weight: 100;
	font-size: clamp(1.6rem, 3.4vw, 2.6rem);
	line-height: 1.25;
	opacity: 1;
	padding: 0.15rem 0.4rem;
	transition: transform 0.25s ease, opacity 0.25s ease;
	position: relative;
}

.matta-collections-hero.matta-collections-hero--underline .ch-list a::after {
	background-image: var(--sgmat-ch-underline) !important;
	background-repeat: no-repeat !important;
	content: "";
	position: absolute;
	left: 0.4rem;
	right: 0.4rem;
	bottom: -0.35rem;
	height: 8px;
	background-color: transparent;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.matta-collections-hero .ch-list a:hover,
.matta-collections-hero .ch-list a:focus {
	opacity: 1;
	transform: translateX(4px);
}

.matta-collections-hero.matta-collections-hero--underline .ch-list a:hover::after,
.matta-collections-hero.matta-collections-hero--underline .ch-list a:focus::after {
	transform: scaleX(1);
}

@media (max-width: 768px) {
	.matta-collections-hero .ch-list a {
		transform: none;
	}

	.matta-collections-hero .ch-list a:hover {
		transform: none;
	}

	.matta-collections-hero .ch-inner {
		padding: 3rem 2rem;
	}
}
