.gallery {
	position: relative;
	padding-top: var(--section-padding-lg);
	padding-bottom: var(--section-padding-lg);
	
	display: grid;
	gap: var(--gap-md);
	grid-template-columns: 1fr;
}
.gallery__squiggle {
	position: absolute;
	width: 30%;
	right: 10%;
	top: 50px;
}
.gallery-image__img {
	display: flex;
	justify-content: center;
	align-items: center;
	/*height: 60vh;*/
	height: auto;
}
.gallery-image img {
	width: auto !important;
	height: auto !important;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	border-radius: var(--border-radius-lg);
}

.gallery-nav {
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 10px;
}
.gallery-nav ul {
	display: flex;
	flex-flow: row nowrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;	
}
.gallery-nav li {
	flex: 0 0 auto;
	width: 70px;
	padding: 0;
	margin: 0;
}

.gallery-nav-item {
	display: block;
}

.gallery-nav-item img {
	display: block;
	border-radius: var(--border-radius-sm);
}

@media (min-width: 800px) {
	.gallery {
		grid-template-columns: repeat(24, 1fr);
	}
	.gallery-header {
		grid-column: 1 / span 6;
	}
	.gallery__squiggle {
		position: static;
		width: 180px;
		right: unset;
		top: unset;
		margin: 1em 0;
	}
	.gallery-main {
		grid-column: 7 / span 15;
	}
	.gallery-image figcaption {
		position: absolute;
		left: 0;
		bottom: var(--section-padding-lg);
		width: 22%;
		word-break: break-word;
	}
.gallery-nav {
	grid-column: 22 / span 3;
	max-height: 85vh;
	/* max-height: auto; */
	overflow-x: hidden;
	overflow-y: auto;
	padding-bottom: 0;
	padding-right: 10px;
	height: 70vh;
}
	.gallery-nav ul {
		flex-flow: column;
	}
	.gallery-nav li {
		width: unset;
	}
}