* {
	margin: 0;
	padding: 0;
	border: 0;
	box-sizing: border-box;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
ol, ul {
	list-style: none;
}

@font-face {
    font-family: 'Alte Haas Grotesk';
    src: url('font/AlteHaasGrotesk_Bold.woff2') format('woff2'),
        url('font/AlteHaasGrotesk_Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alte Haas Grotesk';
    src: url('font/AlteHaasGrotesk.woff2') format('woff2'),
        url('font/AlteHaasGrotesk.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
	color: #334;
	width: 100vw;

	font-family: 'Alte Haas Grotesk';
	font-weight: normal;
	font-style: normal;

	display: flex;
	flex-direction: row;
	justify-content: space-between;

	line-height: 1.3;

	overflow: hidden;

	height: 100vh;
}

body, header {
	background: #fffdfb; 	/* #fefbf5; */
}

header {
	/* position: fixed;
	left: 0; top: 0;
	z-index: 2; */
	padding: 4rem 2.5rem 2.5rem;
	font-size: 2rem;
	height: 100vh;
	display: flex;
	flex-direction: column;
}

h1, h2 {
	text-transform: uppercase;
	font-size: inherit;
}

header h2, #links, #buttons {
	margin-bottom: 2.5rem;
	white-space: nowrap;
}

button, a {
	cursor: pointer;
	background: none;
	outline: none;
	font-size: inherit;
	color: inherit;
	text-decoration: none;
}

button#prev {
	margin-right: 2rem;
}

a:hover, button:hover {
	color: #31b25f;
	text-decoration: none;
}

a:active, button:active {
	color: #f0523c;
}

.green {
	color: #31b25f;
}

#photo-info {
	color: #677;
	font-size: 0.75rem;
	margin-top: auto;
	line-height: 1.5;
}

main {
	padding: 0;

}

main#gallery {
	flex: 1; /* fill available */
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
  align-items: flex-end;
	background-size: contain;
	background-repeat: no-repeat;
	overflow: hidden;
}

main#gallery img {
	height: 100%;
	width: auto;
}

main#prints {
	display: flex;
	flex-direction: row;
	height: 100%;
	overflow: scroll;
}

main#prints .print {
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: row;
}

main#prints .print img {
	width: auto;
	height: 100%;
	margin: 0;
}

main#prints .print .print-info {
  width: auto;
	margin: 1.5rem 6rem 1.5rem 1.5rem;
	align-self: flex-end;
	font-size: 0.875rem;
	line-height: 1.5;
}

main#prints .print h2,
main#prints .print p {
	font-size: inherit;
	line-height: inherit;
	white-space: nowrap;
}

main#prints .print p a {
  border-bottom: 1px solid #334;
}

main#prints .print p a:hover {
	border-bottom: 1px solid #31b25f;
}


/* case-by-case image rendering for awkward images */
/* see also responsive section below */
img.flower {
	height: 125%;
	margin-bottom: -25vh;
}

img.isaac-pond {
	height: 115%;
}

/* shrink a bit briefly */
/* breakpoints are at 50/50 layout */
@media (max-width: 808px) { header { font-size: 1.75rem; } }
@media (max-width: 728px) { header { font-size: 1.5rem; } }

/* actual small device layout */
@media (max-width: 646px) {
	body {
		flex-direction: column;
		justify-content: start;
		height: 100dvh;
	}

	main {
		align-items: flex-start;
	}

	header {
		height: auto;
		width: 100vw;
		padding: 3rem 1.5rem 1.5rem;  /* tighter */
		font-size: 1.25rem;
	}

	h2, #links { margin-bottom: 1.5rem; }
	#buttons {
		margin-bottom: 0;
		width: 100%;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
	}

	a:active, button:active,
	a:hover, button:hover {
		color: inherit; /* gets stuck otherwise */
	}

	main#prints {
		flex-direction: column;
		width: 100%;
	}

	main#prints .print {
		flex-direction: column;
	}

	main#prints .print img {
		width: 100%;
		height: auto;
	}

	main#prints .print .print-info {
		align-self: flex-start;
		margin: 1rem 0 4rem 1rem;
	}

	main#prints .print p a:hover {
		border-bottom: 1px solid #334;
	}

	#photo-info { display: none; }

	img {
		height: auto;
		width: 100%;
		margin-top: auto;
	}

	/* case-by-case image rendering for mobile */

	img.flower {
		height: auto;
		margin-top: 0;
		margin-bottom: auto;
	}

	img.isaac-pond {
		height: auto;
		width: 105%;
		margin-top: -33%;
		margin-bottom: auto;
	}

	img.niki-portrait {
		margin-top: 0;
	}

	img.mr-snail,
	img.mushroom,
	img.twig {
		width: 115%;
	}

	img.isorno-riso,
	img.areuse,
	img.onsernone-fog,
	img.stefan-catalogue {
		width: 110%;
	}

}
