/* stylelint-disable property-no-vendor-prefix */

@keyframes fadeIn {
	0%   { opacity: 0; }
	100% { opacity: 1; }
}
@keyframes blurOut {
	to {
		filter: blur(4px) grayscale(100%);
		transform: scale(.9);
		opacity: .2;
	}
}
@keyframes returnFromBlur {
	0% {
		filter: blur(4px) grayscale(100%);
		transform: scale(.9);
		opacity: .2;
	}
	100% {
		filter: none;
		transform: none;
		opacity: 1;
	}
}
@keyframes slideFooter {
	0% {
		bottom: 0;
		opacity: 0;
	}
	100% {
		bottom: .75em;
		opacity: 1;
	}
}
@keyframes slideFooterHalted {
	0% {
		bottom: 0;
		opacity: 0;
	}
	50% {
		bottom: 0;
		opacity: 0;
	}
	100% {
		bottom: .75em;
		opacity: 1;
	}
}


* {
	box-sizing: border-box;
}


html {
	background: #000;
	height: 100%;
}

body {
	height: 100%;
	font-family: Avenir, Helvetica, sans-serif;
	color: #fff;
	line-height: 1.4;
}

a {
	color: #56bc8a;
	text-decoration: none;
}
a:hover,
a:active {
	color: #5cc993;
	text-decoration: underline;
}

h1 {
	font-size: 3em;
	font-family: "Josefin Slab", Georgia, serif;
}
h2 {
	font-size: 2em;
	font-family: "Josefin Slab", Georgia, serif;
}

em {
	font-style: italic;
}

article p + p {
	margin-top: .7em;
}

.swipe {
	overflow: hidden;
	visibility: hidden;
	position: relative;
	height: 100%;
}
.swipe-wrap {
	overflow: hidden;
	position: relative;
	height: 100%;
}

.slide {
	position: relative;
	height: 100%;
	max-height: 100%;
	padding: 3em 4em;
	float: left;
	width: 100%;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
.slide img {
	max-width: 100%;
	max-height: 100%;
}
.slide.cover {
	background: #000;
}
.slide > p {
	margin-top: -20vh;
	max-width: 40em;
	padding-bottom: 1.4em;
}
.slide > .title {
	color: hsl(0, 0%, 30%);
	position: absolute;
	bottom: .75em;
	font-family: Avenir, Helvetica, sans-serif;
	font-size: .82em;
}
.slide.not-in-front {
	visibility: hidden;
}
.about-is-open .slide img,
.home.about-is-open .slide.cover {
	animation: .4s ease-in-out forwards blurOut;
}
.about-is-closed .slide img,
.home.about-is-closed .slide.cover {
	animation: .4s ease-in-out forwards returnFromBlur;
}

.previous,
.next {
	display: none;
	height: 100%;
	position: fixed;
	width: 30%;
	top: 0;
	left: 0;
	cursor: pointer;
	transition: opacity .4s ease-in-out;
}
.initialized .previous,
.initialized .next {
	display: block;
}
.about-is-open .previous,
.about-is-open .next {
	opacity: 0;
}
.next {
	left: auto;
	right: 0;
}
.at-end .next {
	display: none;
}
.previous::after,
.next::after {
	content: "";
	pointer-events: none;
	position: relative;
	top: 50%;
	display: block;
	width: 3em;
	height: 3em;
	margin: -1.5em 1.5em 0 1.5em;
	float: left;
	border-top: 1px solid hsl(0, 0%, 20%);
	border-left: 1px solid hsl(0, 0%, 20%);
	transform: rotate(-45deg);
	transition: border-color .8s ease-in-out;
}
.next::after {
	float: right;
	transform: rotate(135deg);
}
.previous:hover::after,
.next:hover::after {
	border-color: hsl(0, 0%, 60%);
	transition: border-color .3s ease-in-out;
}
.previous:active::after,
.next:active::after {
	border-color: hsl(0, 0%, 100%);
}

.fullscreen {
	width: 50px;
	height: 50px;
	display: none;
	position: fixed;
	top: 5px;
	right: 5px;
	cursor: pointer;
	text-align: right;
	transition: opacity .4s ease-in-out;
}
.initialized .fullscreen {
	display: block;
}
.about-is-open .fullscreen {
	opacity: 0;
}
.fullscreen svg {
	transition: all 1.5s ease-in-out;
}
.is-fullscreen .fullscreen svg {
	transform: rotate(-180deg);
}
.fullscreen path {
	stroke: hsl(0, 0%, 30%);
	transition: stroke .8s ease-in-out;
}
.fullscreen:hover path {
	stroke: hsl(0, 0%, 60%);
	transition: stroke .4s ease-in-out;
}
.fullscreen:active path {
	stroke: hsl(0, 0%, 100%);
}

.back {
	position: fixed;
	top: 5px;
	left: 5px;
	transform: rotate(180deg);
}
.back path {
	stroke: hsl(0, 0%, 30%);
	transition: stroke .8s ease-in-out;
}
.back:hover path {
	stroke: hsl(0, 0%, 60%);
	transition: stroke .4s ease-in-out;
}
.back:active path {
	stroke: hsl(0, 0%, 100%);
}

.playbutton {
	cursor: pointer;
	animation: 6s ease-in-out forwards fadeIn;
}
.playbutton path {
	transition: stroke .8s ease-in-out;
}
.playbutton:hover path {
	stroke: hsl(0, 0%, 60%);
	transition: stroke .4s ease-in-out;
}
.playbutton:active path {
	stroke: hsl(0, 0%, 100%);
}

header {
	text-align: center;
	width: calc(100% - 8em);
	position: absolute;
	bottom: 20vh;
	text-shadow: 0 0 .4em #000;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}
header h1 {
	font-family: "Josefin Slab", Georgia, serif;
	position: relative;
	bottom: -2vh;
	opacity: 0;
	transition: all 1s ease-in-out .5s;
}
header p {
	color: #ccc;
	font-size: 1.333em;
	font-variant: small-caps;
	text-transform: lowercase;
	text-indent: .8em;
	letter-spacing: .8em;
	position: relative;
	line-height: 1;
	bottom: -2vh;
	opacity: 0;
	transition: all 2s ease-in-out .5s;
}
.loaded header {
	opacity: 1;
}
.loaded header h1 {
	bottom: 0;
	opacity: 1;
}
.loaded header p {
	bottom: 0;
	opacity: 1;
}

footer {
	position: fixed;
	right: 1em;
	bottom: .75em;
	font-family: Avenir, Helvetica, sans-serif;
	display: none;
	animation: .5s ease-in-out forwards slideFooter;
	transition: opacity .2s ease-in-out;
	font-size: .82em;
}
.cover footer {
	animation: 3s ease-in-out forwards slideFooterHalted;
}
footer span:last-child {
	color: #ccc;
}
.initialized footer {
	display: block;
}
.about-is-open footer {
	opacity: 0;
}


.thumb {
	width: 20vw;
	height: 20vh;
	display: inline-block;
	transition: all 2s ease-in-out .8s;
	opacity: 0;
	margin-top: -20vh;
	margin-left: 1.4rem;
	margin-right: 1.4rem;
	box-shadow: inset 0 0 1px rgba(255, 255, 255, .5);
	line-height: 20vh;
	text-decoration: none;
	color: transparent;
	position: relative;
	overflow: hidden;
}
.thumb::before {
	content: "";
	background: #000 no-repeat center center;
	background-size: cover;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	transition: all 2s ease-in-out .8s;
}
.thumb:hover,
.thumb:active {
	color: #fff;
	text-shadow: 0 0 .4em #000;
	text-decoration: none;
	will-change: transform;
	transition: all ease-in-out .8s;
}
.thumb.polaroid::before {
	background-image: url("polaroid.jpg");
}
.thumb.travel::before {
	background-image: url("travel.jpg");
}
.loaded .thumb {
	opacity: 1;
}
.loaded .thumb::before {
	transform: scale(1.2);
}

.about {
	display: none;
	z-index: 2;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 3em;
	color: #ccc;
	overflow: auto;
}
.about-is-open .about {
	display: block;
	animation: .4s ease-out fadeIn;
}
.about > * {
	max-width: 33rem;
	margin: 0 auto;
}
.about h2 {
	color: #fff;
}
.about p {
	margin: 1em auto;
}

.signature {
	font-weight: 500;
	margin-top: 2em;
}

.close {
	position: fixed;
	top: 2em;
	right: 2em;
	opacity: .4;
	transition: opacity .8s ease-in-out;
}
.close:hover {
	transition: opacity .4s ease-in-out;
	opacity: .8;
}
.close:active {
	opacity: 1;
}



@media (max-width: 480px) {
	header h1 {
		font-size: 2em;
	}
	header p {
		font-size: 1em;
	}
}
