/* Galería inmersiva — scroll snap pantalla completa */

body.eza-immersive-gallery {
	overflow: hidden;
}

body.eza-immersive-gallery .eza-header,
body.eza-immersive-gallery .eza-footer,
body.eza-immersive-gallery .eza-main > .eza-page-header,
body.eza-immersive-gallery .eza-main > .eza-section:not(.eza-gallery-immersive-wrap) {
	display: none;
}

body.eza-immersive-gallery .eza-main {
	padding: 0;
}

body.admin-bar.eza-immersive-gallery .eza-scroll-gallery-root {
	top: 32px;
	height: calc(100dvh - 32px);
}

@media (max-width: 782px) {
	body.admin-bar.eza-immersive-gallery .eza-scroll-gallery-root {
		top: 46px;
		height: calc(100dvh - 46px);
	}
}

.eza-gallery-immersive-wrap {
	padding: 0;
	margin: 0;
	max-width: none;
}

.eza-scroll-gallery-root {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: var(--eza-cream, #faf6f0);
	--eza-scroll-nav-height: 118px;
}

.eza-scroll-gallery-loader {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: grid;
	place-items: center;
	background: var(--eza-cream, #faf6f0);
	color: var(--eza-gold-dark, #8b6f47);
	font-family: var(--eza-font-serif, "Cormorant Garamond", serif);
	letter-spacing: 0.03em;
	transition: opacity 0.45s ease, visibility 0.45s ease;
}

.eza-scroll-gallery-loader.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* Menú fijo — pestañas colgando desde arriba */
.eza-scroll-gallery-nav {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 30;
	pointer-events: none;
}

.eza-scroll-gallery-nav__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.55rem clamp(0.75rem, 3vw, 1.25rem);
	background: var(--eza-cream, #faf6f0);
	border-bottom: 1px solid var(--eza-sand, #e8ddd0);
	pointer-events: auto;
}

.eza-scroll-gallery-logo img {
	display: block;
	height: 38px;
	width: auto;
	max-width: 140px;
}

.eza-scroll-gallery-back {
	font-size: 0.85rem;
	text-decoration: none;
	color: var(--eza-brown-soft, #5c4f44);
	white-space: nowrap;
}

.eza-scroll-gallery-back--ghost {
	padding: 0.35rem 0.75rem;
	border: 1px solid rgba(139, 111, 71, 0.35);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.7);
}

.eza-scroll-gallery-cats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	padding: 0 0.75rem 0.85rem;
	background: var(--eza-cream, #faf6f0);
	pointer-events: auto;
}

.eza-scroll-gallery-cats a {
	display: inline-block;
	font-size: 0.76rem;
	text-decoration: none;
	padding: 0.5rem 0.9rem 0.65rem;
	border: 1px solid rgba(139, 111, 71, 0.35);
	border-top: none;
	border-radius: 0 0 12px 12px;
	color: var(--eza-brown-soft, #5c4f44);
	background: var(--eza-white, #fff);
	box-shadow: 0 8px 18px rgba(61, 50, 41, 0.08);
	transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.eza-scroll-gallery-cats a:hover {
	transform: translateY(2px);
	border-color: var(--eza-gold-dark, #8b6f47);
}

.eza-scroll-gallery-cats a.is-active {
	background: var(--eza-ivory, #f3ebe1);
	border-color: var(--eza-gold-dark, #8b6f47);
	color: var(--eza-brown, #3d3229);
	font-weight: 600;
}

.eza-scroll-gallery-counter {
	font-size: 0.8rem;
	color: var(--eza-gold-dark, #8b6f47);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	text-align: center;
	flex: 1;
}

.eza-scroll-gallery {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: var(--eza-scroll-nav-height);
	overflow-y: auto;
	overflow-x: hidden;
	scroll-snap-type: y mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-y: contain;
}

.eza-scroll-slide {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	overflow: hidden;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 0.75s ease-out, transform 0.75s ease-out;
	will-change: transform, opacity;
	background: var(--eza-cream, #faf6f0);
}

.eza-scroll-slide.visible {
	opacity: 1;
	transform: scale(1);
}

.eza-scroll-slide--title {
	display: grid;
	place-items: center;
	text-align: center;
	padding: 2rem 1.5rem;
}

.eza-scroll-slide__title-inner {
	max-width: 520px;
}

.eza-scroll-slide__title-inner h2 {
	font-size: clamp(2rem, 5vw, 3rem);
	margin-bottom: 0.75rem;
}

.eza-scroll-slide__eyebrow {
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--eza-gold-dark, #8b6f47);
	margin-bottom: 0.5rem;
}

.eza-scroll-slide__hint {
	margin-top: 1.5rem;
	font-size: 0.9rem;
	opacity: 0.7;
	font-style: italic;
}

.eza-scroll-frame {
	position: absolute;
	top: 50%;
	left: 50%;
	width: calc(100vw - clamp(20px, 7vw, 100px));
	height: calc(100% - clamp(70px, 12dvh, 110px));
	max-height: calc(100dvh - var(--eza-scroll-nav-height) - 80px);
	transform: translate(-50%, -50%);
	padding: clamp(8px, 1.4vw, 14px);
	border: 1px solid rgba(139, 115, 85, 0.3);
	border-radius: 14px;
	background: linear-gradient(145deg, rgba(255, 251, 245, 0.9), rgba(245, 241, 235, 0.82));
	box-shadow:
		0 10px 30px rgba(139, 115, 85, 0.12),
		inset 0 0 0 1px rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

.eza-scroll-frame img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	filter: sepia(12%) contrast(105%) brightness(98%);
	transition: filter 0.5s ease;
	user-select: none;
	-webkit-user-drag: none;
	border-radius: 10px;
	background: #efe8dd;
}

.eza-scroll-frame video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	border-radius: 10px;
	background: #1a1510;
}

.eza-scroll-slide:hover .eza-scroll-frame img,
.eza-scroll-slide.touch-reveal .eza-scroll-frame img {
	filter: none;
}

.eza-scroll-caption {
	position: absolute;
	left: 50%;
	bottom: clamp(10px, 2dvh, 22px);
	transform: translateX(-50%);
	z-index: 2;
	margin: 0;
	padding: 0.4rem 0.9rem;
	font-size: 0.85rem;
	color: var(--eza-brown-soft, #5c4f44);
	background: rgba(250, 246, 240, 0.75);
	border-radius: 999px;
	backdrop-filter: blur(4px);
	white-space: nowrap;
}

.eza-scroll-caption span {
	opacity: 0.75;
	margin-left: 0.35rem;
}

@media (max-width: 700px) {
	.eza-scroll-gallery-cats a {
		font-size: 0.68rem;
		padding: 0.4rem 0.65rem 0.55rem;
	}
}
