/*
 * All selectors are anchored to #mls-cover-gallery so this file cannot
 * restyle unrelated theme sections, editor content, or other galleries.
 */
#mls-cover-gallery.mlsps-gallery {
	--mlsps-ink: #29232d;
	--mlsps-muted: rgba(41, 35, 45, 0.72);
	--mlsps-line: rgba(41, 35, 45, 0.2);
	--mlsps-accent: #c96f91;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin: clamp(3.25rem, 8vw, 7rem) 0;
	padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2rem);
	border-radius: clamp(1rem, 2.5vw, 1.75rem);
	color: var(--mlsps-ink);
	background:
		radial-gradient(circle at 10% 0%, rgba(247, 222, 230, 0.55), transparent 34%),
		radial-gradient(circle at 96% 90%, rgba(230, 225, 247, 0.45), transparent 36%),
		#fff;
	box-shadow: 0 1.1rem 2.8rem rgba(54, 42, 58, 0.1);
}

#mls-cover-gallery.mlsps-gallery::before {
	position: absolute;
	z-index: -2;
	inset: -4rem;
	background-image: var(--mlsps-active-image);
	background-position: center;
	background-size: cover;
	filter: blur(2.1rem);
	opacity: 0.1;
	content: "";
	transform: scale(1.08);
	transition: background-image 0.45s ease;
}

#mls-cover-gallery.mlsps-gallery::after {
	position: absolute;
	z-index: -1;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.03) 42%, rgba(255, 255, 255, 0.52) 100%),
		radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.32));
	pointer-events: none;
	content: "";
}

#mls-cover-gallery.mlsps-gallery .mls-cover-heading,
#mls-cover-gallery.mlsps-gallery .mls-cover-stage,
#mls-cover-gallery.mlsps-gallery .mls-cover-controls {
	position: relative;
	z-index: 1;
}

#mls-cover-gallery.mlsps-gallery .mls-cover-heading {
	max-width: 42rem;
	margin: 0 auto clamp(1.35rem, 3vw, 2.5rem);
	text-align: center;
}

#mls-cover-gallery.mlsps-gallery .mls-cover-eyebrow {
	display: block;
	margin: 0 0 0.7rem;
	color: var(--mlsps-muted);
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(0.63rem, 1.1vw, 0.75rem);
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.2;
	text-transform: uppercase;
}

#mls-cover-gallery.mlsps-gallery .mls-cover-title {
	margin: 0;
	color: var(--mlsps-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.8rem, 4vw, 3.3rem);
	font-weight: 400;
	letter-spacing: -0.035em;
	line-height: 1;
}

#mls-cover-gallery.mlsps-gallery .mls-cover-intro {
	max-width: 34rem;
	margin: 0.9rem auto 0;
	color: var(--mlsps-muted);
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(0.85rem, 1.4vw, 1rem);
	line-height: 1.55;
}

#mls-cover-gallery.mlsps-gallery .mls-cover-stage {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(0.45rem, 2vw, 1.5rem);
}

#mls-cover-gallery.mlsps-gallery .mls-cover-track {
	position: relative;
	display: block;
	height: clamp(22rem, 61vw, 42rem);
	min-width: 0;
	outline: none;
	overflow: hidden;
	touch-action: pan-y;
}

#mls-cover-gallery.mlsps-gallery .mls-cover-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	opacity: 0;
	pointer-events: none;
	transform: scale(0.985);
	transition: opacity 0.55s ease, transform 0.7s ease;
}

#mls-cover-gallery.mlsps-gallery .mls-cover-slide.is-active {
	opacity: 1;
	pointer-events: auto;
	transform: scale(1);
}

#mls-cover-gallery.mlsps-gallery .mls-cover-art {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

#mls-cover-gallery.mlsps-gallery .mls-cover-art img {
	display: block;
	width: min(82%, 35rem);
	height: min(91%, 38rem);
	max-width: min(82%, 35rem);
	max-height: 91%;
	margin: 0;
	border-radius: 0.2rem;
	object-fit: contain;
	box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.38);
}

#mls-cover-gallery.mlsps-gallery .mls-cover-caption {
	position: absolute;
	bottom: 0.55rem;
	left: 50%;
	max-width: 80%;
	color: var(--mlsps-muted);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase;
	transform: translateX(-50%);
}

#mls-cover-gallery.mlsps-gallery .mls-cover-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--mlsps-line);
	border-radius: 50%;
	color: var(--mlsps-ink);
	background: rgba(255, 255, 255, 0.92);
	cursor: pointer;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.9rem;
	font-weight: 300;
	line-height: 1;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#mls-cover-gallery.mlsps-gallery .mls-cover-button:hover,
#mls-cover-gallery.mlsps-gallery .mls-cover-button:focus-visible {
	border-color: rgba(201, 111, 145, 0.65);
	background: #fff5f8;
	outline: none;
	transform: scale(1.06);
}

#mls-cover-gallery.mlsps-gallery .mls-cover-button:focus-visible,
#mls-cover-gallery.mlsps-gallery .mls-cover-track:focus-visible {
	box-shadow: 0 0 0 0.2rem rgba(201, 111, 145, 0.24);
}

#mls-cover-gallery.mlsps-gallery .mls-cover-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	margin-top: clamp(1rem, 2vw, 1.5rem);
}

#mls-cover-gallery.mlsps-gallery .mls-cover-toggle {
	width: 2.1rem;
	height: 2.1rem;
	font-size: 0.9rem;
}

#mls-cover-gallery.mlsps-gallery .mls-cover-status {
	min-width: 3.3rem;
	color: var(--mlsps-muted);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.72rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.08em;
	text-align: right;
}

#mls-cover-gallery.mlsps-gallery .mls-cover-progress {
	width: min(15rem, 35vw);
	height: 0.15rem;
	overflow: hidden;
	background: rgba(41, 35, 45, 0.14);
}

#mls-cover-gallery.mlsps-gallery .mls-cover-progress-bar {
	display: block;
	width: 4.55%;
	height: 100%;
	background: var(--mlsps-accent);
	transition: width 0.45s ease;
}

#mls-cover-gallery.mlsps-gallery .mlsps-link-separator {
	display: inline-block;
	margin: 0 0.35em;
	color: currentColor;
}

#mls-cover-gallery.mlsps-gallery .mls-cover-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 680px) {
	#mls-cover-gallery.mlsps-gallery {
		margin-right: calc(-1 * var(--mlsps-mobile-gutter, 0px));
		margin-left: calc(-1 * var(--mlsps-mobile-gutter, 0px));
		margin-top: 1rem;
		margin-bottom: 1rem;
		border-radius: 0.85rem;
		padding: 1.15rem 0.65rem 0.8rem;
	}

	#mls-cover-gallery.mlsps-gallery .mls-cover-heading {
		margin-bottom: 0.7rem;
	}

	#mls-cover-gallery.mlsps-gallery .mls-cover-intro {
		margin-top: 0.65rem;
	}

	#mls-cover-gallery.mlsps-gallery .mls-cover-stage {
		position: relative;
		display: block;
	}

	#mls-cover-gallery.mlsps-gallery .mls-cover-track {
height: clamp(22rem, 96vw, 34rem);
		min-height: 0;
	}

	#mls-cover-gallery.mlsps-gallery .mls-cover-arrow {
		position: absolute;
		z-index: 2;
		top: 50%;
		width: 2.4rem;
		height: 2.4rem;
		border-color: rgba(41, 35, 45, 0.2);
		background: rgba(255, 255, 255, 0.94);
		transform: translateY(-50%);
	}

	#mls-cover-gallery.mlsps-gallery .mls-cover-arrow:hover,
	#mls-cover-gallery.mlsps-gallery .mls-cover-arrow:focus-visible {
		transform: translateY(-50%) scale(1.06);
	}

	#mls-cover-gallery.mlsps-gallery [data-mls-prev] {
		left: 0.35rem;
	}

	#mls-cover-gallery.mlsps-gallery [data-mls-next] {
		right: 0.35rem;
	}

	#mls-cover-gallery.mlsps-gallery .mls-cover-art img {
width: 90%;
height: 92%;
max-width: 90%;
max-height: 92%;
	}

	#mls-cover-gallery.mlsps-gallery .mls-cover-caption {
		bottom: 0.35rem;
		font-size: 0.64rem;
	}

	#mls-cover-gallery.mlsps-gallery .mls-cover-controls {
		gap: 0.55rem;
		margin-top: 0.55rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	#mls-cover-gallery.mlsps-gallery::before,
	#mls-cover-gallery.mlsps-gallery .mls-cover-slide,
	#mls-cover-gallery.mlsps-gallery .mls-cover-button,
	#mls-cover-gallery.mlsps-gallery .mls-cover-progress-bar {
		transition: none;
	}
}