/* Project teaser
-------------------------------------------------- */
.grid {
	list-style: none;
	margin: 0 -1em 0;
}
ul.grid {
	margin-bottom: 0;
}
.grid li a {
	color: #fff;
	border: none;
	text-align: center;
	text-shadow: 0 1px 4px rgba(0,0,0,.25);
	background: #000000;
	display: block;
	overflow: hidden;
	position: relative;
	transition: background .25s ease;
}
.grid li a:hover {
	color: #fff;
}
.grid li a > div {
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	z-index: 1;
}
.grid li a > div:before {
	content: '';
	height: 100%;
	display: inline-block;
	vertical-align: middle;
}
.grid li a > div > div {
	display: inline-block;
	vertical-align: middle;
}
.grid li h1 {
	margin-bottom: 0;
	padding: 10px;
	font-weight: bold;
}
.grid li img {
	width: 100%;
	display: block;
	opacity: .98;
	transform: scale(1);
	transition: opacity .25s ease, transform .25s ease, transform .25s ease;
}
.grid li:hover img {
	opacity: .15;
	transform: scale(1.05);
}

@media screen and (min-width: 48em) {
	.grid {
		margin: 3em -3em 0;
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
		grid-gap: 2rem;
	}
	li.column {
		display: -webkit-box;
		display: -moz-box;
		display: -ms-flexbox;
		display: -webkit-flex;
		display: flex;
	}
}

.grid {
	scroll-margin-top: 120px;
}


/* Project tags
-------------------------------------------------- */
.tags .box-left h1 {
	color: #9ba5a8;
	font-weight: 400;
}
.tags .box-right h1 {
	font-weight: 900;
}
@media screen and (min-width: 48em) {
	.box-left {
		padding-right: .2em;
	}
	.box-right {
		padding-left: .2em;
	}
}


/* Next/Prev nav
-------------------------------------------------- */
.nextprev {
	padding: 1em 0;
}
.nextprev a,
.nextprev a:hover {
	border: 0;
}
.nextprev .next {
	float: left;
}
.nextprev .prev {
	float: right;
}



/* Full screen video
-------------------------------------------------- */
.video-container {
	width: calc(100vw + 2em);
    height: 100vh;
	overflow: hidden;
	margin: -6em -1em 0;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media screen and (min-width: 48em) {
	.video-container {
		margin: -8em -1em 0;
		width: 100vw;
	}
}

@media screen and (min-width: 65em) {
	.video-container {
		left: calc((100vw - 65em) / -2);
	}
}

.video-container iframe {
	aspect-ratio: 16/9;
	display: block;
	width: 100%;
	height: auto;
	z-index: -1;
	max-width: none;
}

@media screen and (max-aspect-ratio: 16/9) {
	.video-container iframe {
		width: auto;
		height: 100%;
	}
}


/* Down arrow
-------------------------------------------------- */

.down-arrow-background {
	position: absolute;
	top: calc(100vh - 2.5vw - 110px - 4px);
	left: calc(50% - 2.5vw - 4px);
	box-sizing: border-box;
	height: calc(5vw + 8px);
	width: calc(5vw + 8px);
	padding: 2px;
	border-style: solid;
	border-color: #000;
	border-width: 0px 12px 12px 0px;
	transform: rotate(45deg);
	animation: jumpInfinite 2s infinite;
	z-index: 10;
}

.down-arrow {
	position: absolute;
	top: calc(100vh - 2.5vw - 110px);
	left: calc(50% - 2.5vw);
	box-sizing: border-box;
  	height: 5vw;
  	width: 5vw;
  	border-style: solid;
  	border-color: #fff;
  	border-width: 0px 4px 4px 0px;
  	transform: rotate(45deg);
	animation: jumpInfinite 2s infinite;
	z-index: 20;
}

.down-arrow a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    z-index: 30;
}

@keyframes jumpInfinite {
	0% {
		margin-top: 0;
	}

	50% {
		margin-top: 20px;
	}

	100% {
		margin-top: 0;
	}
}
