/* Shared layout for theatre painting gallery listing pages. */
body {
	margin: 0;
	background: #d9c29a url("../_images/background.new.5.jpg") repeat;
	color: black;
	font-family: Georgia, Verdana, Arial, Times, serif;
	font-size: 12px;
}

a {
	color: #112011;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.main {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 24px 36px;
	box-sizing: border-box;
}

.content {
	width: min(100%, 760px);
	padding-top: 18px;
	margin: 0 auto;
}

.gallery-wrap {
	width: max-content;
	margin: 0 auto;
}

.title-strip {
	display: flex;
	align-items: flex-end;
	width: max-content;
	margin: 0 0 10px;
}

.title-strip img,
.gallery-card img {
	display: block;
}

.page-note {
	margin: 0 0 18px;
	color: #112011;
	font-size: 18px;
	text-align: right;
}

.page-note small {
	font-size: 1em;
}

.gallery-stack {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(var(--desktop-cols, 2), max-content);
	column-gap: 108px;
	row-gap: 18px;
	justify-content: start;
}

.gallery-card {
	display: block;
	line-height: 0;
}

.gallery-card img {
	height: auto;
}

.pager {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: min(100%, 400px);
	margin: 24px auto 0;
}

.pager-spacer {
	display: block;
	width: 73px;
	height: 31px;
}

@media (max-width: 820px) {
	.main {
		align-items: flex-start;
		padding-right: 16px;
		padding-left: 16px;
		padding-top: 34px;
	}

	.content {
		width: min(100%, 640px);
	}

	.gallery-wrap {
		width: 100%;
	}

	.title-strip,
	.page-note {
		margin-right: auto;
		margin-left: auto;
	}

	.gallery-grid {
		justify-content: center;
	}
}

@media (max-width: 560px) {
	.content {
		padding-top: 34px;
	}

	.gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: min(100%, 360px);
		margin: 0 auto;
		column-gap: 18px;
		row-gap: 18px;
	}

	.gallery-card {
		width: 100%;
	}

	.gallery-card img {
		width: 100%;
	}

	.title-strip {
		max-width: min(100%, var(--title-strip-mobile-width, 212px));
	}

	.title-strip img {
		max-width: 100%;
		height: auto;
	}

	.page-note {
		width: min(100%, 360px);
		font-size: 18px;
		line-height: 1.4;
	}

	.pager {
		width: min(100%, 240px);
	}
}
