html, body, p {
	font-size: 19.2px;
	letter-spacing: -0.0175em;
	line-height: 24px;
}

body {
	color: black;
	font-family: 'ABCMarist', serif;
	font-variation-settings: 'wght' 500;
	background-color: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100dvh;
	display: grid;
	grid-template-rows: auto 1fr auto;
}

/* global elements */

img {
	display: block;
	width: 100%;
	height: auto;
}

h1, h2 {
	font-size: 40px;
	letter-spacing: -0.015em;
	line-height: 48px;
}

.text-block p + p {
	padding-top: var(--space-page-y);
}

i, b, em, strong {
	font-style: italic;
}

/* links */

a {
	color: inherit;
	text-decoration: none;
}

a:visited,
a:active {
	color: inherit;
}

a:hover {
	color: black;
	font-style: normal;
}

.press-title a:hover {
	font-style: italic;
}

/* helpers / utilities */

.wrapper {
	padding-left: var(--space-page-x);
	padding-right: var(--space-page-x);
}

.inline-blue {
	color: var(--blue);
}

.sm-caps {
	font-size: 16px;
	font-variant: small-caps;
	line-height: 20px;
	letter-spacing: 0.05em;
	text-transform: lowercase;
}

/* spacing */

/* baseline spacing */
#main-container > * + * {
	margin-top: var(--space-page-section);
}

/* spacing variant for text  blocks */
#main-container > .exhibition-text-spacing {
	margin-top: 120px;
}

#main-container > .home-text-spacing {
	margin-top: 120px;
}

.exh-block {
	display: flex;
    flex-direction: column;
    gap: var(--space-page-section-half);
}

/* visibility utilities */

.mobile-only {
	display: none;
}

.desktop-only {
	display: block;
}

/* typography helpers */

.section-heading,
.section-heading *,
.contact-heading,
.contact-heading *,
.gallery-heading,
.gallery-heading * {
	font-size: 40px;
	line-height: 48px;
	letter-spacing: -0.015em;
}

.section__header p {
	text-align: center;
}

.gallery-heading * {
	padding-top: 48px;
}

.gallery-heading *:first-child {
	padding-top: 0;
}

.section-eyebrow {
	margin-bottom: 8px;
}

.inline-link {
	margin-top: 6px;
}

.slideshow-counter {
	margin-top: 12px;
}

.artist__header .section-eyebrow {
	color: var(--blue);
}

/* layout */

#main-container {
	color: black;
	background-color: #fff;
	margin: 0;
	padding-top: var(--main-pt);
	padding-bottom: var(--space-page-section);
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--gutter-gap);
	align-content: start;
}

#main-container.v-center {
	align-content: center;
	place-items: center;
	text-align: center
}

.pt--minus-24 { --main-pt: calc(var(--space-page-section-half) - 24px); }
.pt--plus-28  { --main-pt: calc(var(--space-page-section-half) + 28px); }


/* column spans */

.col-span--all { grid-column: 1 / -1; }
.col-span--11  { grid-column: 1 / span 11; }
.col-span--10  { grid-column: 2 / span 10; }
.col-span--8   { grid-column: 3 / span 8; }
.col-span--6   { grid-column: 4 / span 6; }
.col-span--4   { grid-column: 5 / span 4; }

.artist__list--left  { grid-column: 1 / span 6; }
.artist__list--right { grid-column: 7 / span 3; }

.contact__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: var(--gutter-gap);
}

.contact__grid > div > * + * {
	margin-top: 48px;
}

/* hero blocks */

.artist__hero,
.exhibition__hero {
	display: grid;
	column-gap: var(--gutter-gap);
	row-gap: var(--space-page-section-half);
	text-align: center;
}

.artist__hero {
	text-align: left;
}

.artist__header {
	text-align: center;
}

.artist__portrait {
	width: 65%;
	margin: 0 auto;
}

.artist__text {
	display: flex;
	flex-direction: column;
	gap: var(--space-page-y);
}

/* sections */

.exhibitions,
.exhibitions__previous,
.exhibitions__upcoming,
.selected-works {
	display: grid;
	row-gap: var(--space-page-section-half);
	text-align: center;
}

/* grids */

.exhibitions__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: var(--space-page-section);
	row-gap: var(--space-page-section-96);
}

.exhibitions__grid > :first-child {
	grid-column: 1 / -1;
	width: 80%;
	margin: 0 auto;
}

.exhibitions__card iframe {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	display: block;
}

.selected-works__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	column-gap: var(--gutter-gap);
	row-gap: var(--space-page-section);
	margin-bottom: var(--space-page-section-half);
}

.selected-works__grid figure {
	display: flex;
	flex-direction: column;
}

.selected-works__grid figure:hover {
	cursor: pointer;
}

.selected-works__grid img {
	width: 100%;
	height: calc(25vw - var(--gutter-gap));
	display: flex;
	object-fit: contain;
}

/* artist page */

.artist-bio {
	padding-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
/* press page */

.press__grid {
	display: grid;
	row-gap: var(--space-page-section-half);
	text-align: center;
}

.exh-image,
.press-block {
	position: relative;
}

.exh-image__desktop-asset {
	display: flex;
	height: calc(100dvh - 280px);
	object-fit: cover;
}

.exh-image__mobile-asset {
	display: none;
}

.exh-image__caption {
	display: grid;
	justify-items: center;
	padding-top: var(--space-page-y);
	gap: 0;
}

.institution * {
	font-size: 16px;
	line-height: 20px;
	letter-spacing: -0.01em;
}

.hero-institution * {
	font-size: 19.2px;
	letter-spacing: -0.0175em;
	line-height: 24px;
}

.inline-link {
	color: var(--blue);
	text-align: center;
	opacity: 0;
	visibility: hidden;
	padding-top: 0;
}

.exh-image:hover .inline-link,
.press-block:hover .inline-link,
.inline-link:focus-within {
	opacity: 1;
	visibility: visible;
	cursor: pointer;
}

.inline-link a {
	color: var(--blue);
	text-decoration: none;
	cursor: pointer;
}

.inline-link:hover,
.inline-link:focus,
.inline-link:active { 
	color: black; 
}

.inline-link:not(:has(a)) {
	cursor: default;
	color: var(--blue);
}

.inline-link .artwork-caption {
	display: inline-block;
	padding-top: 12px;
	font-size: 16px;
	line-height: 20px;
	color: black;
}

.inline-link .artwork-caption,
.lb-caption,
.lb-caption > * {
	letter-spacing: -0.01em;
}

.inline-link .artwork-caption .exh-artist,
.inline-link .artwork-caption .exh-title {
	display: block;
}

/* Navigation */

#nav-menu {
	position: sticky;
	top: 0;
	z-index: 999;
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding-top: var(--nav-padding-top);
	padding-bottom: var(--nav-padding-bottom);
	gap: var(--gutter-gap);
	color: var(--blue);
	background-color: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.nav-right-subgrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gutter-gap);
}

/* Footer */

#footer {
	color: var(--blue);
	background-color: #fff;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--gutter-gap);
	padding-top: var(--space-page-x);
	padding-bottom: var(--space-page-y);
}

.footer-col { align-self: start; }

.footer-col--right .footer-right-subgrid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: var(--gutter-gap);
}

.footer__email { padding-left: 24px; }

.footer-links {
	display: grid;
	grid-column: span 2;
}

.footer-links a {
	display: block;
}

input, button {
	font: inherit;
	color: inherit;
	background-color: inherit;
	border: none;
}

input:focus,
input:focus-visible {
	border: none;
	outline: none;
}

/* blue pages */

body,
#main-container,
#nav-menu,
#footer {
	transition: background-color 0.25s ease, color 0.25s ease;
}

.no-transition,
.no-transition * {
	transition: none !important;
}

.page--blue.is-blue {
	color: #fff;
	background-color: var(--bg-color);
}

.page--blue.is-blue #nav-menu,
.page--blue.is-blue #footer,
.page--blue.is-blue #main-container {
	background-color: var(--bg-color);
	color: #fff;
}

.page--blue.is-blue #nav-menu {
	color: #fff;
	background-color: rgba(40, 45, 145, 0);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.page--blue.is-blue .inline-link {
	color: #fff;
}

.page--blue.is-blue .inline-link .artwork-caption,
.page--blue.is-blue .inline-link .exh-artist,
.page--blue.is-blue .inline-link .exh-title {
	color: inherit;
}

.page--blue.is-blue .inline-blue,
.page--blue.is-blue .artist__header .section-eyebrow {
	color: #fff;
}

/* artists page */

#main-container > #artist__list,
#main-container > #artist__preview {
  margin-top: 0 !important;
}

#artist__list ul {
	list-style: none;
	padding: 0;
}

#artist__list .artists-names {
	list-style: none;
	margin: 0 0 48px 0;
	padding: 0;
}

#artist__list :last-child {
	margin: 0;
}

.artist__list__portrait {
	opacity: 0; 
}

.artist__list__portrait.is-active {
	opacity: 1;
}

#artist-preview {
	display: block;
	width: 100%;
	height: auto;
}

.exhibition__hero .exh-image { position: relative; } 

.exh-hero-zone {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 35%;
	background: transparent;
	z-index: 2;
	touch-action: pan-y;
}

.exh-hero-prev {
	left: 0;
	cursor:
		url("../images/cursors/arrow-left.svg") 6 18,
		url("../images/cursors/arrow-left@2x.png?v=4") 12 32,
		url("../images/cursors/arrow-left@1x.png?v=4") 6 18,
		w-resize;
}

.exh-hero-next {
	right: 0;
	cursor:
		url("../images/cursors/arrow-right.svg") 30 18,
		url("../images/cursors/arrow-right@2x.png?v=4") 52 32,
		url("../images/cursors/arrow-right@1x.png?v=4") 30 18,
		e-resize;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
	.exhibition__hero .exh-hero-prev {
		cursor:
			url("../images/cursors/arrow-left.svg") 6 18,
			url("../images/cursors/arrow-left@2x.png?v=4") 12 32,
			w-resize;
	}
	.exhibition__hero .exh-hero-next {
		cursor:
			url("../images/cursors/arrow-right.svg") 30 18,
			url("../images/cursors/arrow-right@2x.png?v=4") 52 32,
			e-resize;
	}
}

@media (max-width: 480px) {
	.exhibition__hero .exh-hero-prev { left: 0; width: 50%; }
	.exhibition__hero .exh-hero-next { right: 0; width: 50%; }
}

body.debug-hitzones .exhibition__hero .exh-hero-prev { background: rgba(0, 0, 255, .25); }
body.debug-hitzones .exhibition__hero .exh-hero-next { background: rgba(255, 0, 0, .25); }

@media (min-width: 768px) and (max-width: 1080px) {
	.nav-right-subgrid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: var(--gutter-gap);
	}
}

@media (max-width: 768px) {
	:root {
		--space-page-x: 24px;
		--space-page-section: 96px;
		--space-page-section-half: 48px;
		--space-page-section-96: 96px;
		--gutter-gap: 24px;
		--nav-padding-top: 20px;
		--nav-padding-bottom: 20px;
		--body-line-height: 20px;
	}

	html, body, p {
		font-size: 15px;
		line-height: 20px;
		letter-spacing: -0.01em;
	}

	h1, h2,
	.contact-heading.section-heading, 
	.section-heading, 
	.section-heading * {
		font-size: 30px;
		letter-spacing: -0.01em;
		line-height: 36px;
	}

	.sm-caps {
		font-size: 12.5px;
		font-variant: small-caps;
		line-height: 20px;
		letter-spacing: 0.05em;
		text-transform: lowercase;
	}

	.contact-heading, 
	.contact-heading *, 
	.gallery-heading, 
	.gallery-heading * {
		font-size: inherit;
		letter-spacing: inherit;
		line-height: inherit;
	}

	.gallery-heading * {
		padding-top: 20px;
	}

	.slideshow-counter { margin-top: 10px; }

	.section-eyebrow { margin-bottom: 6px; }

	#artist__list .artists-names:first-of-type {
		margin-bottom: calc(20px + 32px);
	}

	#artist__list h1 {
		font-size: inherit;
		line-height: inherit;
		letter-spacing: inherit;
		font-variation-settings: inherit;
		margin: 0;
	}

	#artist__list li {
		list-style: none;
		padding-top: 16px;
	}

	#artist__list .section-eyebrow { margin-bottom: 0; }

	.contact__grid > div > * + * { margin-top: var(--gutter-gap); }

	.wrapper {
		padding-left: var(--space-page-x);
		padding-right: var(--space-page-x);
	}

	#main-container {
		grid-template-columns: 1fr;
		padding-top: 36px;
		padding-bottom: var(--space-page-section);
	}

	#main-container > .exhibition-text-spacing {
		margin-top: 72px; 
	}

	#main-container > .home-text-spacing {
		margin-top: 96px; 
	}

	#main-container.v-center { 
		padding-bottom: var(--space-page-y); 
	}

	#main-container .exhibitions__grid,
	.contact__grid,
	.selected-works__grid {
		grid-template-columns: 1fr 1fr;
		row-gap: var(--space-page-section-half);
		column-gap: var(--gutter-gap);
		margin-bottom: 0;
	}

	.pt--minus-24 {
		--main-pt: calc(var(--space-page-section-half) - 0px); 
	}

	.pt--plus-28 {
		--main-pt: calc(var(--space-page-section-half) + 0px);
	}

	.pt--artist-bio {
		padding-top: 8px;
	}

	.pt--text-pages {
		padding-top: 36px !important;
	}

	.contact__grid { 
		grid-template-columns: 1fr;
	}

	.exhibitions__grid > :first-child {
		width: 100%;
		padding-bottom: 24px;
	}
	.exh-block {
		gap: 36px;
	}

	.exh-image__caption {
		padding-top: 16px;
	}

	.exhibitions__grid > .exhibitions__card:first-child .exh-image__caption { 
		width: 75%; 
		margin: auto;
	}

	.selected-works__grid img { height: calc(50vw - var(--gutter-gap)); }

	.contact__grid { row-gap: var(--gutter-gap); }

	.exhibition__hero,
	.artist__hero,
	.text-block,
	.exhibition-block,
	.col-span--all,
	.col-span--11,
	.col-span--10,
	.col-span--8,
	.col-span--6,
	.col-span--4,
	.artist__list--left,
	.artist__list--right {
		grid-column: 1 / -1 !important;
	}

	.exhibitions,
	.exhibitions__previous,
	.exhibitions__upcoming,
	.artist__hero,
	.exhibition__hero,
	.selected-works {
		display: grid;
		row-gap: 36px;
	}

	.mobile-only { 
		display: block; 
	}

	.desktop-only { 
		display: none; 
	}

	#footer.wrapper.desktop-only {
		display: none;
	}

	.none { 
		display: none; 
	}

	.newsletter label { 
		display: block; 
	}

	.selected-works__grid .exh-image .inline-link {
		position: static;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		margin-top: 16px;
		text-align: center;
	}

	.selected-works__grid .exh-image .inline-link .artwork-caption {
		display: inline-block;
		padding-top: 0;
	}

	.exh-block--home .inline-link,
	.exh-block .inline-link,
	.press-block .inline-link,
	.exhibitions__card .inline-link {
		display: none;
		height: 0;
	}

	.exh-image__desktop-asset { display: none; }

	.exh-image__mobile-asset {
		display: flex;
		height: calc(100svh - 220px);
		object-fit: cover;
	}

	.inline-link .artwork-caption, 
	.institution, 
	.institution *, 
	.hero-institution,
	.hero-institution * {
		font-size: 13.5px;
		line-height: 18px;
		letter-spacing: -0.01em;
	}
}

@media (max-width: 1000px) {
	#footer .mobile-only { 
		display: block; 
	}

	#footer .desktop-only {
		display: none; 
	}

	#footer {
		grid-template-columns: 1fr;
		padding-bottom: 36px;
	}

	.footer-col--right .footer-right-subgrid { 
		grid-template-columns: 1fr; 
	}

	.footer-col--right .footer-links,
	.footer-col--right .newsletter { 
		grid-column: 1 / -1; 
	}

	.footer-col--right .newsletter__row input {
		min-width: 0;
		width: 100%;
	}

	.footer-col--right .newsletter__row button { 
		justify-self: start; 
	}
}