/* Shared layout for diptych oil painting pages with sketch/final toggles. */
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;
}

button {
	font: inherit;
}

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

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

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

.work-header {
	margin: 0 0 18px;
	text-align: center;
	color: #112011;
}

.work-title {
	margin: 0;
	font-size: 15px;
	line-height: 1.25;
	font-weight: bold;
	font-style: italic;
}

.work-meta {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.35;
}

.viewer {
	display: contents;
}

.artwork-row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 42px;
	margin: 0 0 18px;
}

.side-image,
.main-image,
.thumbnail-button img {
	display: block;
	height: auto;
}

.side-image {
	order: 1;
}

.main-image {
	order: 2;
}

.controls {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 12px;
	width: min(100%, 380px);
	margin: 0 auto;
	color: #112011;
}

.thumbnails {
	display: flex;
	gap: 8px;
	padding-top: 2px;
	order: 1;
}

.thumbnail-button {
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 0;
}

.thumbnail-button img {
	border: 1px solid #112011;
	box-sizing: border-box;
}

.thumbnail-button.is-active img {
	border-width: 2px;
}

.note {
	margin: 0;
	font-size: 11px;
	line-height: 1.35;
	order: 2;
}

.mobile-note {
	display: none;
}

@media (max-width: 820px) {
	.main {
		padding-right: 16px;
		padding-left: 16px;
	}
}

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

	.content {
		width: min(100%, 420px);
		padding-top: 0;
	}

	.work-header {
		margin-bottom: 24px;
	}

	.work-title {
		font-size: 24px;
		line-height: 1.25;
	}

	.work-meta {
		margin-top: 10px;
		font-size: 18px;
		line-height: 1.35;
	}

	.viewer {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.artwork-row {
		display: contents;
		margin-bottom: 0;
	}

	.main-image {
		order: 1;
		width: 80vw;
		max-width: 80vw;
		margin: 0 auto 22px;
	}

	.controls {
		order: 2;
		width: min(100%, 320px);
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0;
		text-align: center;
	}

	.note {
		margin-bottom: 12px;
		font-size: 18px;
		line-height: 1.35;
		order: 1;
	}

	.desktop-note {
		display: none;
	}

	.mobile-note {
		display: inline;
	}

	.thumbnails {
		justify-content: center;
		gap: 18px;
		order: 2;
	}

	.thumbnail-button img {
		width: 56px;
	}

	.side-image {
		order: 3;
		width: min(56vw, 180px);
		margin: 28px auto 0;
	}
}
