/* Gizia Hero Slider — split hero: copy panel + image panel. */

.gzh {
	--gzh-panel: #f5ebdd;
	--gzh-ink: #4a1520;
	--gzh-accent: #7a2230;
	--gzh-media: #2a1c1c;
	--gzh-height: 88vh;
	--gzh-gap: 0px; /* space between the photo and the section edges */
	--gzh-serif: "Cormorant Garamond", "Cormorant", "Playfair Display", Georgia, serif;
	--gzh-sans: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--gzh-ease: cubic-bezier(.2, .7, .2, 1);

	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
	min-height: clamp(540px, var(--gzh-height), 860px);
	margin: 0;
	background: var(--gzh-panel);
	color: var(--gzh-ink);
	font-family: var(--gzh-sans);
	overflow: hidden;
	isolation: isolate;
	-webkit-font-smoothing: antialiased;
}

.gzh,
.gzh *,
.gzh *::before,
.gzh *::after {
	box-sizing: border-box;
}

/* ---------- Copy panel ---------- */

.gzh .gzh__text {
	display: flex;
	align-items: center;
	padding: clamp(48px, 6vw, 96px) clamp(28px, 5.2vw, 88px);
}

.gzh .gzh__copies {
	display: grid;
	width: 100%;
	max-width: 540px;
}

/* All copies share one grid cell so the panel never jumps between slides. */
.gzh .gzh__copy {
	grid-area: 1 / 1;
	align-self: center;
	visibility: hidden;
	transition: visibility 0s linear .5s;
}

.gzh .gzh__copy.is-active {
	visibility: visible;
	transition-delay: 0s;
}

.gzh .gzh__copy > * {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .4s ease, transform .4s ease;
}

.gzh .gzh__copy.is-active > * {
	opacity: 1;
	transform: none;
	transition: opacity .7s ease, transform .9s var(--gzh-ease);
}

.gzh .gzh__copy.is-active > :nth-child(1) { transition-delay: .15s; }
.gzh .gzh__copy.is-active > :nth-child(2) { transition-delay: .25s; }
.gzh .gzh__copy.is-active > :nth-child(3) { transition-delay: .38s; }
.gzh .gzh__copy.is-active > :nth-child(4) { transition-delay: .5s; }

.gzh .gzh__eyebrow {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 0;
	font-family: var(--gzh-sans);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: .24em;
	color: color-mix(in srgb, var(--gzh-ink) 78%, var(--gzh-panel));
}

.gzh .gzh__eyebrow::before {
	content: "";
	flex: 0 0 34px;
	height: 1px;
	background: currentColor;
	opacity: .7;
}

.gzh .gzh__title {
	margin: clamp(22px, 2.6vw, 34px) 0 clamp(20px, 2.2vw, 28px);
	padding: 0;
	font-family: var(--gzh-serif);
	/* --gzh-title-scale shrinks wider fonts; 1 = Cormorant Garamond. */
	font-size: calc(clamp(2.6rem, 4.7vw, 4.75rem) * var(--gzh-title-scale, 1));
	font-weight: 400;
	font-style: normal;
	line-height: 1.02;
	letter-spacing: -.012em;
	text-transform: none;
	color: var(--gzh-ink);
	text-wrap: balance;
}

.gzh .gzh__line {
	display: block;
}

.gzh .gzh__title em {
	font-style: italic;
	font-weight: 400;
}

.gzh .gzh__desc {
	max-width: 40ch;
	margin: 0;
	padding: 0;
	font-family: var(--gzh-sans);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.7;
	color: color-mix(in srgb, var(--gzh-ink) 82%, var(--gzh-panel));
}

.gzh .gzh__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 30px;
	margin-top: clamp(28px, 3vw, 40px);
}

.gzh a.gzh__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 14px 32px;
	border: 0;
	border-radius: 999px;
	background: var(--gzh-accent);
	color: var(--gzh-panel);
	font-family: var(--gzh-sans);
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .14em;
	text-decoration: none;
	box-shadow: none;
	transition: background-color .25s ease, transform .25s ease;
}

.gzh a.gzh__btn:hover,
.gzh a.gzh__btn:focus-visible {
	background: var(--gzh-ink);
	color: var(--gzh-panel);
	text-decoration: none;
	transform: translateY(-1px);
}

.gzh a.gzh__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	color: var(--gzh-ink);
	font-family: var(--gzh-sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .14em;
	text-decoration: none;
	background: none;
	box-shadow: none;
}

.gzh a.gzh__link span {
	transition: transform .25s ease;
}

.gzh a.gzh__link:hover,
.gzh a.gzh__link:focus-visible {
	color: var(--gzh-accent);
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-thickness: 1px;
}

.gzh a.gzh__link:hover span,
.gzh a.gzh__link:focus-visible span {
	transform: translateX(4px);
}

.gzh a:focus-visible,
.gzh button:focus-visible {
	outline: 2px solid var(--gzh-accent);
	outline-offset: 3px;
}

/* ---------- Image panel ---------- */

.gzh .gzh__media {
	position: relative;
	margin: var(--gzh-gap) var(--gzh-gap) var(--gzh-gap) 0;
	background: var(--gzh-media);
	overflow: hidden;
	touch-action: pan-y;
}

.gzh--image-left .gzh__media {
	order: -1;
	margin: var(--gzh-gap) 0 var(--gzh-gap) var(--gzh-gap);
}

.gzh .gzh__frame {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease, visibility 0s linear 1s;
}

.gzh .gzh__frame.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity 1s ease, visibility 0s;
}

.gzh .gzh__frame img.gzh__img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	transform: scale(1.06);
	transition: transform 7s cubic-bezier(.25, .6, .3, 1);
}

.gzh .gzh__frame.is-active img.gzh__img {
	transform: scale(1);
}

/* Product card */

.gzh a.gzh__card {
	position: absolute;
	left: clamp(14px, 2vw, 24px);
	bottom: clamp(14px, 2vw, 24px);
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: calc(100% - 150px);
	padding: 8px 20px 8px 8px;
	background: color-mix(in srgb, var(--gzh-panel) 94%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--gzh-ink);
	text-decoration: none;
	box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .55);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .3s ease, transform .3s ease;
}

.gzh .gzh__frame.is-active a.gzh__card {
	opacity: 1;
	transform: none;
	transition: opacity .6s ease .55s, transform .8s var(--gzh-ease) .55s, background-color .25s ease;
}

.gzh .gzh__frame.is-active a.gzh__card:hover {
	background: var(--gzh-panel);
	color: var(--gzh-ink);
}

.gzh img.gzh__card-thumb {
	flex: 0 0 auto;
	width: 42px;
	height: 52px;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: 50% 20%;
}

.gzh .gzh__card-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.gzh .gzh__card-label {
	font-family: var(--gzh-sans);
	font-size: 9.5px;
	font-weight: 500;
	letter-spacing: .2em;
	line-height: 1.3;
	opacity: .75;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gzh .gzh__card-name {
	font-family: var(--gzh-serif);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.15;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Slide indicators */

.gzh .gzh__dots {
	position: absolute;
	right: clamp(14px, 2vw, 24px);
	bottom: clamp(18px, 2.4vw, 30px);
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 6px;
}

.gzh .gzh__dots button.gzh__dot {
	all: unset;
	box-sizing: border-box;
	position: relative;
	display: block;
	width: 26px;
	height: 24px;
	cursor: pointer;
	transition: width .5s var(--gzh-ease);
}

.gzh .gzh__dots button.gzh__dot::before,
.gzh .gzh__dot-fill {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	height: 2px;
	margin-top: -1px;
	border-radius: 2px;
}

.gzh .gzh__dots button.gzh__dot::before {
	right: 0;
	background: rgba(255, 255, 255, .45);
	transition: background-color .25s ease;
}

.gzh .gzh__dots button.gzh__dot:hover::before {
	background: rgba(255, 255, 255, .8);
}

.gzh .gzh__dot-fill {
	width: 0;
	background: #fff;
}

.gzh .gzh__dots button.gzh__dot.is-active {
	width: 54px;
}

.gzh .gzh__dots button.gzh__dot.is-active .gzh__dot-fill {
	width: 100%;
}

.gzh.is-autoplay button.gzh__dot.is-active .gzh__dot-fill {
	width: 0;
	animation: gzh-progress var(--gzh-interval, 6000ms) linear forwards;
}

.gzh.is-paused button.gzh__dot.is-active .gzh__dot-fill {
	animation-play-state: paused;
}

.gzh .gzh__dots button.gzh__dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@keyframes gzh-progress {
	from { width: 0; }
	to   { width: 100%; }
}

/* Admin-only notice when nothing is configured. */
.gzh-empty {
	padding: 16px 20px;
	border: 1px dashed #c3a58e;
	background: #fbf6ef;
	font-size: 14px;
}

/* ---------- Tablet & mobile ---------- */

@media (max-width: 900px) {
	.gzh {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.gzh .gzh__media,
	.gzh--image-left .gzh__media {
		order: -1;
		/* 4:5 portrait, but never taller than most of the screen. A plain
		   aspect-ratio + max-height would shrink the width instead. */
		height: min(calc((100vw - 2 * var(--gzh-gap)) * 1.25), 76vh);
		min-height: 340px;
		margin: var(--gzh-gap);
	}

	/* Phones and tablets show the photo only; the product card still links through. */
	.gzh .gzh__text {
		display: none;
	}

	.gzh a.gzh__card {
		max-width: calc(100% - 110px);
		padding-right: 14px;
	}

	.gzh .gzh__card-name {
		font-size: 17px;
	}

	.gzh .gzh__dots button.gzh__dot {
		width: 18px;
	}

	.gzh .gzh__dots button.gzh__dot.is-active {
		width: 36px;
	}
}

/* Small phones: dots move to the top so the product card can use the full width. */
@media (max-width: 520px) {
	.gzh .gzh__dots {
		top: 12px;
		bottom: auto;
	}

	.gzh a.gzh__card {
		max-width: calc(100% - 28px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gzh *,
	.gzh *::before,
	.gzh *::after {
		transition-duration: .01ms !important;
		transition-delay: 0s !important;
		animation: none !important;
	}

	.gzh .gzh__frame img.gzh__img {
		transform: none;
	}
}
