/**
 * AGL Editorial widgets — Image Spread (+ future quote / text-image / hero)
 */

.gz-spread {
	--gz-spread-radius: 2px;
	--gz-spread-chip: 72px;
	box-sizing: border-box;
	width: 100%;
	display: block;
}

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

.gz-spread__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
	align-items: start;
}

.gz-spread--stack-1024 .gz-spread__grid {
	/* default desktop */
}

@media (max-width: 1024px) {
	.gz-spread--stack-1024 .gz-spread__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.gz-spread--stack-768 .gz-spread__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.gz-spread--stack-600 .gz-spread__grid {
		grid-template-columns: 1fr;
	}
}

.gz-spread__cell {
	position: relative;
	min-width: 0;
}

.gz-spread__frame {
	position: relative;
	display: block;
	width: 100%;
	overflow: clip;
	color: inherit;
	text-decoration: none;
}

.gz-spread--round .gz-spread__frame {
	border-radius: var(--gz-spread-radius);
}

.gz-spread__media {
	position: relative;
	width: 100%;
	overflow: clip;
	background: #b2b2b2;
	aspect-ratio: var(--gz-spread-aspect, auto);
	display: flex;
	align-items: center;
	justify-content: center;
}

.gz-spread--round .gz-spread__media {
	border-radius: var(--gz-spread-radius);
}

.gz-spread__img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	object-position: center;
	vertical-align: middle;
}

/* Locked aspect: fill the frame */
.gz-spread[style*="--gz-spread-aspect"] .gz-spread__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.gz-spread[style*="--gz-spread-aspect"] .gz-spread__media {
	position: relative;
}

/* Parallax: taller image clipped by media, nudged on scroll via JS */
.gz-spread--parallax .gz-spread__media {
	overflow: clip;
}

.gz-spread--parallax[style*="--gz-spread-aspect"] .gz-spread__img {
	height: 118%;
	top: -9%;
	bottom: auto;
	will-change: transform;
	transform: translate3d(0, 0, 0);
}

/* Auto aspect + parallax: keep natural height, light translate only */
.gz-spread--parallax:not([style*="--gz-spread-aspect"]) .gz-spread__img {
	will-change: transform;
	transform: translate3d(0, 0, 0);
}

.gz-spread__caption {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: #666;
	letter-spacing: 0.01em;
}

/* Featured artwork chip (bottom-left) — expand via opacity/max-width, not width/display */
.gz-spread__featured {
	position: absolute;
	z-index: 2;
	left: 12px;
	bottom: 12px;
	display: flex;
	pointer-events: none;
}

.gz-spread__chip {
	--gz-chip-ease: cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: auto;
	display: inline-flex;
	align-items: stretch;
	gap: 2px;
	min-height: 44px;
	max-width: min(100%, 360px);
	text-decoration: none;
	color: #111;
	overflow: clip;
	border-radius: var(--gz-spread-radius);
	cursor: pointer;
	touch-action: manipulation;
}

.gz-spread__chip:focus-visible {
	outline: 2px solid #18181b;
	outline-offset: 2px;
}

.gz-spread__chip-thumb {
	flex: 0 0 var(--gz-spread-chip);
	width: var(--gz-spread-chip);
	height: var(--gz-spread-chip);
	min-width: 44px;
	min-height: 44px;
	padding: 8px;
	border-radius: var(--gz-spread-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(240, 240, 240, 0.85);
	transform: translateZ(0);
	transition: transform 220ms var(--gz-chip-ease);
}

.gz-spread__chip-img,
.gz-spread__chip-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.gz-spread__chip-info {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	box-sizing: border-box;
	max-width: 0;
	opacity: 0;
	padding: 8px 0;
	overflow: hidden;
	min-width: 0;
	border-radius: var(--gz-spread-radius);
	background: rgba(240, 240, 240, 0.85);
	transform: translate3d(-6px, 0, 0);
	pointer-events: none;
	transition:
		max-width 240ms var(--gz-chip-ease),
		opacity 200ms ease-out,
		transform 220ms var(--gz-chip-ease),
		padding 220ms var(--gz-chip-ease);
}

.gz-spread__chip-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	width: 180px;
}

.gz-spread__chip-artist {
	font-size: 11px;
	line-height: 1.25;
	font-weight: 500;
}

.gz-spread__chip-title {
	font-size: 11px;
	line-height: 1.3;
	opacity: 0.65;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gz-spread__chip-view {
	font-size: 11px;
	line-height: 1.2;
	white-space: nowrap;
	margin-top: 6px;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gz-spread__chip:hover .gz-spread__chip-thumb,
.gz-spread__chip:focus-visible .gz-spread__chip-thumb,
.gz-spread__chip.is-open .gz-spread__chip-thumb {
	transform: scale(1.04);
}

.gz-spread__chip:hover .gz-spread__chip-info,
.gz-spread__chip:focus-visible .gz-spread__chip-info,
.gz-spread__chip:focus-within .gz-spread__chip-info,
.gz-spread__chip.is-open .gz-spread__chip-info {
	max-width: 200px;
	opacity: 1;
	padding: 8px 10px;
	transform: translate3d(0, 0, 0);
	pointer-events: auto;
}

@media (hover: none), (pointer: coarse) {
	.gz-spread__chip-title {
		-webkit-line-clamp: 2;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gz-spread--parallax .gz-spread__img,
	.gz-ed--parallax .gz-ed__img {
		height: 100%;
		top: 0;
		transform: none !important;
		will-change: auto;
	}

	.gz-spread__chip-thumb,
	.gz-spread__chip-info,
	.gz-ed-chip__thumb,
	.gz-ed-chip__info {
		transition: none !important;
	}

	.gz-spread__chip:hover .gz-spread__chip-thumb,
	.gz-spread__chip.is-open .gz-spread__chip-thumb,
	.gz-ed-chip:hover .gz-ed-chip__thumb,
	.gz-ed-chip.is-open .gz-ed-chip__thumb {
		transform: none;
	}
}

/* ── Shared editorial media / chip ─────────────────────────────────────── */

.gz-ed-frame {
	position: relative;
	display: block;
	width: 100%;
	overflow: clip;
	color: inherit;
	text-decoration: none;
}

.gz-ed-media {
	position: relative;
	width: 100%;
	overflow: clip;
	background: #b2b2b2;
	aspect-ratio: var(--gz-ed-aspect, auto);
	display: flex;
	align-items: center;
	justify-content: center;
}

.gz-ed__img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	object-position: center;
}

[style*="--gz-ed-aspect"] .gz-ed-media {
	position: relative;
}

[style*="--gz-ed-aspect"] .gz-ed__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.gz-ed--parallax .gz-ed-media {
	overflow: clip;
}

.gz-ed--parallax[style*="--gz-ed-aspect"] .gz-ed__img,
.gz-ed--parallax .gz-wide__media .gz-ed__img {
	position: absolute;
	inset: auto 0 auto 0;
	top: -9%;
	width: 100%;
	height: 118%;
	will-change: transform;
	transform: translate3d(0, 0, 0);
	object-fit: cover;
}

/* Hero: extra height BELOW the fold; JS translates upward — no top black bar */
.gz-exhero.gz-ed--parallax .gz-exhero__img .gz-ed__img,
.gz-exhero.gz-ed--parallax .gz-exhero__media .gz-ed__img {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: calc(100% * (1 + (var(--gz-parallax-amount, 35) / 100)));
	max-width: none;
	will-change: transform;
	transform: translate3d(0, 0, 0);
	object-fit: cover;
	object-position: center top;
}

.gz-ed-chip-wrap {
	position: absolute;
	z-index: 2;
	left: 12px;
	bottom: 12px;
	display: flex;
	pointer-events: none;
}

.gz-ed-chip {
	--gz-ed-radius: 2px;
	--gz-ed-chip: 72px;
	--gz-chip-ease: cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: auto;
	display: inline-flex;
	align-items: stretch;
	gap: 2px;
	min-height: 44px;
	max-width: min(100%, 360px);
	text-decoration: none;
	color: #111;
	overflow: clip;
	border-radius: var(--gz-ed-radius);
	cursor: pointer;
	touch-action: manipulation;
}

.gz-ed-chip:focus-visible {
	outline: 2px solid #18181b;
	outline-offset: 2px;
}

.gz-ed-chip__thumb {
	flex: 0 0 var(--gz-ed-chip);
	width: var(--gz-ed-chip);
	height: var(--gz-ed-chip);
	min-width: 44px;
	min-height: 44px;
	padding: 8px;
	border-radius: var(--gz-ed-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(240, 240, 240, 0.85);
	transform: translateZ(0);
	transition: transform 220ms var(--gz-chip-ease);
}

.gz-ed-chip__img,
.gz-ed-chip__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.gz-ed-chip__info {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	box-sizing: border-box;
	max-width: 0;
	opacity: 0;
	padding: 8px 0;
	overflow: hidden;
	min-width: 0;
	border-radius: var(--gz-ed-radius);
	background: rgba(240, 240, 240, 0.85);
	transform: translate3d(-6px, 0, 0);
	pointer-events: none;
	transition:
		max-width 240ms var(--gz-chip-ease),
		opacity 200ms ease-out,
		transform 220ms var(--gz-chip-ease),
		padding 220ms var(--gz-chip-ease);
}

.gz-ed-chip__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	width: 180px;
}

.gz-ed-chip__artist {
	font-size: 11px;
	line-height: 1.25;
	font-weight: 500;
}

.gz-ed-chip__title {
	font-size: 11px;
	line-height: 1.3;
	opacity: 0.65;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gz-ed-chip__view {
	font-size: 11px;
	line-height: 1.2;
	white-space: nowrap;
	margin-top: 6px;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gz-ed-chip:hover .gz-ed-chip__thumb,
.gz-ed-chip:focus-visible .gz-ed-chip__thumb,
.gz-ed-chip.is-open .gz-ed-chip__thumb {
	transform: scale(1.04);
}

.gz-ed-chip:hover .gz-ed-chip__info,
.gz-ed-chip:focus-visible .gz-ed-chip__info,
.gz-ed-chip:focus-within .gz-ed-chip__info,
.gz-ed-chip.is-open .gz-ed-chip__info {
	max-width: 200px;
	opacity: 1;
	padding: 8px 10px;
	transform: translate3d(0, 0, 0);
	pointer-events: auto;
}

@media (hover: none), (pointer: coarse) {
	.gz-ed-chip__title {
		-webkit-line-clamp: 2;
	}
}

/* ── Pull Quote ────────────────────────────────────────────────────────── */

.gz-quote {
	display: flex;
	width: 100%;
	box-sizing: border-box;
	padding: 18px;
	color: #111;
}

.gz-quote--center {
	justify-content: center;
	text-align: center;
}

.gz-quote--left {
	justify-content: flex-start;
	text-align: left;
}

.gz-quote--right {
	justify-content: flex-end;
	text-align: right;
}

.gz-quote__inner {
	width: 100%;
}

.gz-quote__text {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(28px, 3.6vw, 46px);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.gz-quote__cite {
	display: block;
	margin-top: 18px;
	font-style: normal;
	font-size: 13px;
	line-height: 1.4;
	color: #666;
	letter-spacing: 0.02em;
}

/* ── Text & Image ─────────────────────────────────────────────────────── */

.gz-ti {
	--gz-ed-radius: 2px;
	box-sizing: border-box;
	width: 100%;
	display: block;
}

.gz-ti__columns {
	display: grid;
	grid-template-columns: 1fr;
	width: 100%;
	align-items: stretch;
}

@media (min-width: 769px) {
	.gz-ti__columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gz-ti--left .gz-ti__text {
		order: 2;
	}

	.gz-ti__text {
		display: flex;
		flex-direction: column;
		gap: 16px;
		min-width: 0;
	}

	.gz-ti--top .gz-ti__text {
		justify-content: flex-start;
	}

	.gz-ti--middle .gz-ti__text {
		justify-content: center;
	}

	.gz-ti--bottom .gz-ti__text {
		justify-content: flex-end;
	}
}

.gz-ti__heading {
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #888;
}

.gz-ti__body {
	font-size: 15px;
	line-height: 1.65;
}

.gz-ti__body > *:first-child {
	margin-top: 0;
}

.gz-ti__body > *:last-child {
	margin-bottom: 0;
}

.gz-ti__cta {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: inherit;
}

.gz-ti__media-col {
	min-width: 0;
}

.gz-ti--round .gz-ed-frame,
.gz-ti--round .gz-ed-media {
	border-radius: var(--gz-ed-radius);
}

.gz-ti__text {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 4px 0;
}

/* ── Exhibition Hero ───────────────────────────────────────────────────── */

.gz-exhero {
	position: relative;
	display: block;
	width: 100%;
	overflow: clip;
	background: transparent;
}

.gz-exhero__container {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	min-height: 100svh;
	overflow: clip;
	background: transparent;
}

.gz-exhero__media,
.gz-exhero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: clip;
}

.gz-exhero__media {
	overflow: clip;
	background: transparent;
}

.gz-exhero__img .gz-ed__img,
.gz-exhero__media .gz-ed__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

/* Non-parallax hero: always fill the frame */
.gz-exhero:not(.gz-ed--parallax) .gz-exhero__img .gz-ed__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.gz-exhero__img--mobile {
	display: none;
}

@media (max-width: 767px) {
	.gz-exhero__img--mobile {
		display: block;
	}

	.gz-exhero__img--desktop {
		display: none;
	}
}

.gz-exhero__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: rgba(0, 0, 0, 0.3);
	pointer-events: none;
}

.gz-exhero__inner {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 18px 18px 28px;
	color: #fff;
	max-width: min(920px, 92vw);
}

.gz-exhero__title,
.gz-exhero__subtitle,
.gz-exhero__meta {
	color: inherit;
}

.gz-exhero__main {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: inherit; /* beat theme/Elementor kit H1 color */
}

.gz-exhero__title {
	display: block;
}

.gz-exhero__subtitle {
	display: block;
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
}

.gz-exhero__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.gz-exhero__meta {
	display: block;
	font-size: 13px;
	line-height: 1.4;
	opacity: 0.92;
}

/* Goodman-style clipped line reveal */
.gz-exhero__line {
	display: block;
	overflow: clip;
}

.gz-exhero__line-inner {
	display: block;
	transform: translate3d(0, 110%, 0);
	transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.gz-exhero--reveal:not(.is-revealed) .gz-exhero__line-inner {
	transform: translate3d(0, 110%, 0);
}

.gz-exhero.is-revealed .gz-exhero__line-inner {
	transform: translate3d(0, 0, 0);
}

.gz-exhero__main > .gz-exhero__line:nth-child(1) .gz-exhero__line-inner {
	transition-delay: 0.05s;
}

.gz-exhero__main > .gz-exhero__line:nth-child(2) .gz-exhero__line-inner {
	transition-delay: 0.14s;
}

.gz-exhero__info > .gz-exhero__line:nth-child(1) .gz-exhero__line-inner {
	transition-delay: 0.24s;
}

.gz-exhero__info > .gz-exhero__line:nth-child(2) .gz-exhero__line-inner {
	transition-delay: 0.32s;
}

.gz-exhero__link {
	position: relative;
	z-index: 3;
	display: inline-block;
	margin: 12px 18px 18px;
	color: #fff;
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.gz-exhero__line-inner {
		transform: none !important;
		transition: none !important;
	}
}

/* ── Wide Image ────────────────────────────────────────────────────────── */

.gz-wide {
	--gz-ed-radius: 2px;
	box-sizing: border-box;
	width: 100%;
	display: block;
	position: relative;
}

.gz-wide__frame {
	display: block;
	width: 100%;
	position: relative;
	overflow: clip;
}

.gz-wide--round .gz-wide__frame,
.gz-wide--round .gz-wide__media {
	border-radius: var(--gz-ed-radius);
}

.gz-wide__media {
	position: relative;
	width: 100%;
	overflow: clip;
	background: #b2b2b2;
}

.gz-wide__media .gz-ed__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gz-wide__caption {
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: #666;
}

/* ── Image Slider (free-scroll strip) ──────────────────────────────────── */

.gz-islider {
	--gz-islider-h: 420px;
	--gz-islider-gap: 20px;
	--gz-islider-pad: 20px;
	--gz-islider-radius: 2px;
	box-sizing: border-box;
	width: 100%;
	display: block;
	user-select: none;
	-webkit-user-select: none;
}

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

.gz-islider__title {
	margin: 0 0 28px;
	padding: 0 var(--gz-islider-pad);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #888;
}

.gz-islider__viewport {
	position: relative;
	width: 100%;
	height: var(--gz-islider-h);
	overflow: hidden;
	outline: none;
	cursor: grab;
	touch-action: pan-y;
}

.gz-islider__viewport.is-dragging {
	cursor: grabbing;
}

.gz-islider__track {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	height: 100%;
	gap: var(--gz-islider-gap);
	padding-inline: var(--gz-islider-pad);
	will-change: transform;
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;
}

.gz-islider__slide {
	flex: 0 0 auto;
	height: 100%;
	min-width: 0;
	position: relative;
}

.gz-islider__frame {
	display: block;
	height: 100%;
	width: auto;
	max-width: none;
	overflow: clip;
	background: #b2b2b2;
	color: inherit;
	text-decoration: none;
	/* Width follows aspect-ratio at fixed strip height */
	aspect-ratio: 3 / 2;
	position: relative;
}

.gz-islider--round .gz-islider__frame {
	border-radius: var(--gz-islider-radius);
}

.gz-islider__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
	-webkit-user-drag: none;
}

.gz-islider__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 10px 10px 8px;
	font-size: 11px;
	line-height: 1.35;
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.45));
	pointer-events: none;
}

.gz-islider__progress {
	height: 1px;
	margin: 16px var(--gz-islider-pad) 0;
	background: #ddd;
	position: relative;
	overflow: hidden;
}

.gz-islider__progress-bar {
	display: block;
	height: 100%;
	width: 100%;
	background: #111;
	transform-origin: left center;
	transform: scaleX(0);
	will-change: transform;
}

.gz-islider__live.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (prefers-reduced-motion: reduce) {
	.gz-islider__track {
		will-change: auto;
	}
}
