/* CSS Document */
html, body { 
	font-family: 'Roboto', Arial;
	overflow-x: hidden; 
	background: #fff;
	margin: 0; 
	padding: 0; 
	text-rendering: optimizeLegibility; 
} 
* { 
	box-sizing: border-box; 
}
button:focus {outline:0;}
h1, h2, h3 {
	font-family: 'Literata', "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif"; 
}
h1, h2, h3 + p {
	margin-bottom: 0;
}
nav {
	font-size: 1vw;
	z-index: 10;
	text-align: center;
	width: 100%;
	background: #fff;
}
a {
	color: inherit;
	text-decoration: inherit;
}
figure p {
	font-size: 0.8em;
	opacity: 0.8;
	color: black;
	text-decoration: none;
	margin: 5.5em 0;
}
nav > a {
	color: inherit;
	text-decoration: none;
	font-family: 'Nunito', "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
	position: relative;
	transition: color 0.3s ease, opacity 0.3s ease;
	position: relative;
}
nav a + a{
	margin-left: 2em;
}
nav > a:not(:hover){
	opacity: 0.5;
}
nav > a:hover {
	opacity: 1;
}
nav h1 {
	margin: 0;
    line-height: 1.1em;
}
nav a.active {
	color: #E94F37;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(8, 2fr);
    grid-auto-rows: 5vw;
    grid-gap: 2px;
}
.gallery figure {
	margin: 0;
	width: unset;
	position: relative;
	background: #fff;
}
.gallery figure:not(.nav) {
	animation: breathe 2s infinite;
}
.gallery figure.nav {
	padding: 2.2vw 3.3vw;
}
.gallery figure img:not(.social) {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: none;
	cursor: pointer;
}
.social {
	height: 2em;
}
.gallery figure {
    grid-column-end: span 2;
    grid-row-end: span 3;
}
.gallery figure.portrait {
	grid-column-end: span 2;
	grid-row-end: span 6;
}
.gallery figure.active img:not(.social) {
	position: fixed;
	max-height: 90%;
	width: auto;
	height: auto;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: block;
	z-index: 5;
}
.overlay {
	z-index: -1;
	opacity: 0;
	background: #000;
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
}
.overlay::before, .overlay::after{
	content: '';
	background: #fff;
	width: 2vw;
	height: 2px;
	border-radius: 999px;
	position: absolute;
	top: 50px;
	left: 50px;
}
.overlay::before {
	transform: rotate(-45deg);
}
.overlay::after {
	transform: rotate(45deg);
}
.overlay.active {
	z-index: 3;
	opacity: 0.9;
}
::-webkit-scrollbar { 
    display: none;
}
@media screen and (max-width: 1080px) {
	.gallery figure.nav {
		font-size: 1.5vw;
	}
}
@media only screen and (max-width: 768px) {
	.gallery {    
		display: flex;
		flex-direction: column;
	}
	.gallery figure, figure:nth-child(10n+1), figure:nth-child(1){
		width: 100%;
		height: 40vh;
	}
	.gallery figure.portrait {
		height: 100vh;
	}
	.gallery figure + figure {
		margin-top: 2px;
	}
	nav {
		font-size: 3.2vh;
	}
}
@media only screen and (orientation: landscape) and (max-height: 768px) and (hover:none) {
	.gallery {    
		display: flex;
		flex-direction: column;
	}
	.gallery figure, figure:nth-child(10n+1), figure:nth-child(1){
		width: 100%;
		height: 100vh;
	}
	.gallery figure.portrait {
		height: 200vh;
	}
}
@keyframes breathe {
	0% {
		background: #FCFAFF;
	}
	70% {
		background: #F0F0F0;
	}
	100% {
		background: #FCFAFF;
	}
}