/*
Theme Name: Shannon Jager (shannonjager.com)
Author: Jacob Macdonald
*/

/* Font Imports */

/*
	* MyFonts Docs say your fonts won't work without this line, but it just counts your pageviews for their licensing purposes.
	* This site shouldn't ever hit the 250,000 limit, and it will load faster with this line commented out.
	@import url("//hello.myfonts.net/count/388e1e");
*/

@font-face {font-family: 'ModernMTPro-Extended';src: url('/fonts/388E1E_0_0.eot');src: url('/fonts/388E1E_0_0.eot?#iefix') format('embedded-opentype'),url('/fonts/388E1E_0_0.woff2') format('woff2'),url('/fonts/388E1E_0_0.woff') format('woff'),url('/fonts/388E1E_0_0.ttf') format('truetype');}
@font-face {font-family: 'ModernMTPro-ExtendedItalic';src: url('/fonts/388E1E_1_0.eot');src: url('/fonts/388E1E_1_0.eot?#iefix') format('embedded-opentype'),url('/fonts/388E1E_1_0.woff2') format('woff2'),url('/fonts/388E1E_1_0.woff') format('woff'),url('/fonts/388E1E_1_0.ttf') format('truetype');}

/* End Font Imports */

/**************************************/

/* Global */

#landing-page { display: none !important; } /* REMOVE THIS LINE TO ADD THE BLACK LANDING PAGE BACK IN */

* {
	box-sizing: border-box;
	margin: 0;
}

html {
	font-size: 16px;
	font-weight: normal;
	/*font-family: Helvetica;*/
	font-family: ModernMTPro-Extended;
}

a {
	text-decoration: none;
	color: inherit;
}

a:hover {
	color: #888;
}

.parent {
	width: 100%;
	height: 100%;
	position: relative;
}

.parent canvas {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}

.parent img {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	min-width: 100%;
	min-height: 100%;
	transform: translate(-50%, -50%);
}

.parent .background-image {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
}

/* End Global */

/**************************************/

/* Header */

#header {
	position: fixed;
	width: 100vw;
	height: 50px;
	background-color: white;
	padding: 0 30px;
	z-index: 1;
}

#header a {
	line-height: 50px;
	margin: 0 10px;
}

#header .left {
	float: left;
}

#header .right {
	float: right;
}

#header #mobile-menu-button {
	display: none;
}

#header-buffer {
	width: 100vw;
	height: 50px;
}

#mobile-menu {
	display: none;
}

/* End Header */

/**************************************/

/* Footer */

#footer {
	overflow: hidden;
	border-top: 1px solid black;
	padding: 20px 40px;
}

#footer .logo {
	float: left;
	height: 54px;
	margin-right: 20px;
	padding-right: 20px;
	border-right: 1px solid black;
	line-height: 54px;
}

#footer .left {
	float: left;
}

#footer .left .copy {
	max-width: 600px;
}

#footer .right {
	float: right;
}

/* End Footer */

/**************************************/

/* Landing Page */

#landing-page {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 0;
	background-color: black;
	color: white;
	font-size: 2.75rem;
	line-height: 3.75rem;
	z-index: 3;
	overflow: hidden;
	pointer-events: none;
	transition: all 1s ease-out;
}

#landing-page .content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	padding: 40px;
}

#landing-page.active {
	height: 100vh;
	pointer-events: all;
}

/* End Landing Page */

/**************************************/

/* Home Page */

#home .projects {
	font-size: 0;
}

/** All projects **/
#home .projects .project-row {
	margin-bottom: 60px;
	padding: 0 30px;
}

#home .projects .project-row .project {
	font-size: 1rem;
}

#home .projects .project-row .project .slick-slider {
	width: 100%;
}

#home .projects .project-row .project .slick-slider .slick-arrow {
	position: absolute;
	top: 0;
	width: 300px;
	max-width: 40%;
	height: 100%;
	z-index: 1;
	color: white;
}

#home .projects .project-row .project .slick-slider .slick-arrow.prev {
	left: 0;
	cursor: url('/icons/arrow-left.png') 100 50, pointer;
}

#home .projects .project .slick-slider .slick-arrow.next {
	right: 0;
	cursor: url('/icons/arrow-right.png') 0 50, pointer;
}

#home .projects .project-row .project .slick-slider .slick-slide .background-image {
	width: 100%;
	height: 100%;
}

#home .projects .project-row .project .info {
	position: relative;
	padding-top: 5px;
}

#home .projects .project-row .project .info .left {
	float: left;
}

/** Large projects **/
#home .projects .project-row .project.large {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
}

#home .projects .project-row .project.large .slick-slider {
	height: 650px;
}

#home .projects .project-row .project.large .slick-slider .slick-slide {
	height: 650px;
}

#home .projects .project-row .project.large .info .right {
	float: right;
	text-align: right;
}

/** Small projects **/
#home .projects .project-row .project.small {
	display: inline-block;
	width: 50%;
}

#home .projects .project-row .project.small:first-child {
	padding-right: 10px;
}

#home .projects .project-row .project.small:last-child {
	padding-left: 10px;
}

#home .projects .project-row .project.small .slick-slider {
	height: 450px;
}

#home .projects .project-row .project.small .slick-slider .slick-slide {
	height: 450px;
}

#home .projects .project-row .project.small .info .right {
	position: absolute;
	top: 5px;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
}

#mobile-home {
	display: none;
}

@media (min-width: 1500px) {

	#home .projects .project-row .project.small .slick-slider {
		height: 700px;
	}

	#home .projects .project-row .project.small .slick-slider .slick-slide {
		height: 700px;
	}
}

@media (min-width: 2000px) {

	#home .projects .project-row .project.small .slick-slider {
		height: 800px;
	}

	#home .projects .project-row .project.small .slick-slider .slick-slide {
		height: 800px;
	}
}

/* End Home Page */

/**************************************/

/* Single Project Page */

#project #hero {
	width: 100vw;
	height: calc(100vh - 50px);
	background-size: cover;
	background-position: center;
}

#project #info {
	width: 100%;
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 20px;
	overflow: hidden;
}

#project #info .left {
	float: left;
	width: 35%;
	font-size: 1.375rem;
}

#project #info .right {
	float: right;
	width: 65%;
	line-height: 1.5rem;
}

#project #info .right .link {
	display: block;
	font-style: italic;
}

#project #images .image {
	width: 100%;
	padding-bottom: 66%;
	background-position: center;
	background-size: cover;
}

#project #images .image-grid {
	width: 100%;
	max-width: 1200px;
	margin: 10px auto 0;
	padding: 0 10px;
	font-size: 0;
}

#project #images .image-grid .image {
	display: inline-block;
	width: calc(50% - 5px);
	padding-bottom: 33%;
	margin-bottom: 10px;
	background-position: center;
	background-size: cover;
}

#project #images .image-grid .image:nth-child(2n) {
	margin-left: 5px;
}

#project #images .image-grid .image:nth-child(2n + 1) {
	margin-right: 5px;
}

/* End Single Project Page */

/**************************************/

/* Selected Projects Page */

#selected-projects {
	font-size: 0;
	padding: 20px;
}
#selected-projects .project-image {
	display: inline-block;
	width: 20%;
	padding: 5px;
	font-size: 1rem;
	position: relative;
}

#selected-projects .project-image .background-image {
	padding-bottom: 70%;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
}

#selected-projects .project-image .pixelate-container {
	padding-bottom: 66%;
	overflow: hidden;
	position: relative;
}

#selected-projects .project-image .pixelate-container img {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
	opacity: 0;
}

#selected-projects .project-image .pixelate-container canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
}

#selected-projects .project-image .info {
	position: absolute;
	top: 0;
	left: 0;
	width: calc(100% - 10px);
	height: calc(100% - 10px);
	margin: 5px;
	background-color: #E6E6FA;
	color: black;
	opacity: 0;
	transition: opacity 0.3s;
}

#selected-projects .project-image .info p {
	position: absolute;
	bottom: 0;
	padding: 10px;
	line-height: 1.25rem;
}

#selected-projects .project-image:hover .info {
	opacity: 1;
}

/* End Selected Projects Page */

/**************************************/

/* Contact Page */

#contact {
	width: calc(100% + 20px);
	height: calc(100vh - 50px);
	background-color: black;
	color: white;
	line-height: 1.5rem;
	padding: 0 40px 40px;
	overflow-y: scroll;
}

#contact #sections {
	display: none;
}

#contact .column {
	float: left;
	width: 33%;
}

#contact .column.about {
	padding-right: 30px;
}

#contact .column.clients {
	padding: 0 15px;
}

#contact .column.press {
	padding-left: 30px;
}

#contact .column .header {
	padding: 40px 0;
}

#contact .column .contact-item {
	display: block;
	padding: 10px 0;
	border-top: 1px solid white;
	color: white;
}

#contact .column .contact-item:last-child {
	border-bottom: 1px solid white;
}

#contact .column .contact-item:hover {
	color: #de3901;
}

#contact .column .contact-item:hover:before {
	content: '\2192\0000a0';
}

#contact .about .contact-header {
	display: none;
}

#contact .about .contact-copy {
	padding-top: 40px;
}

#contact .about .contact-copy a {
	color: white;
}

/* End Contact Page */

/**************************************/

/* Misc */

#selected-projects-link {
	display: block;
	margin: 80px 0 40px;
	text-align: center;
}

/* End Misc */

/**************************************/

/* Mobile */

@media (max-width: 768px) {

	#header {
		padding: 0 10px;
	}

	#header a {
		margin: 0;
	}

	#header .right {
		display: none;
	}

	#header #mobile-menu-button {
		display: block;
		float: right;
		margin-right: -10px;
	}

	#header #mobile-menu-button img {
		width: 50px;
		height: 50px;
		padding: 5px;
	}

	#mobile-menu {
		display: block;
		position: fixed;
		top: 50px;
		left: 0;
		width: 100vw;
		height: calc(100vh - 50px);
		background-color: black;
		z-index: 2;
		opacity: 0;
		pointer-events: none;
	}

	#mobile-menu.active {
		opacity: 1;
		pointer-events: all;
	}

	#mobile-menu a {
		display: block;
		height: calc(33vh - 40px);
		border-top: 1px solid white;
		padding-top: 10px;
		margin: 20px 10px 0;
		color: white;
	}

	#footer {
		display: none;
	}
	
	#landing-page {
		font-size: 2rem;
		line-height: 3rem;
		padding: 10px;
	}

	#home {
		display: none;
	}

	#mobile-home {
		display: block;
	}

	#project #hero {
		height: 66vw;
	}

	#project #info {
		padding: 0 10px;
	}
	
	#project #info .left {
		float: none;
		width: 100%;
		margin-bottom: 40px;
	}
	
	#project #info .right {
		float: none;
		width: 100%;
	}

	#selected-projects {
		padding: 0;
	}

	#selected-projects .project-image {
		width: 50%;
	}

	#selected-projects a:nth-child(5n + 1) .project-image, #selected-projects a:nth-child(5n + 3) .project-image {
		padding-left: 10px;
	}

	#selected-projects a:nth-child(5n + 2) .project-image, #selected-projects a:nth-child(5n + 4) .project-image {
		padding-right: 10px;
	}

	#selected-projects a:nth-child(5n) .project-image {
		width: 100%;
		padding: 5px 0;
	}

	#selected-projects a:nth-child(5n) .project-image .info {
		margin: 5px 0;
		width: 100%;
	}

	#contact {
		padding: 30px 10px;
	}

	#contact #sections {
		display: block;
	}
	
	#contact #sections p {
		display: inline-block;
		margin-right: 20px;
		color: rgba(255, 255, 255, 0.4);
	}

	#contact #sections p.active {
		color: white;
	}

	#contact .column {
		display: none;
		float: none;
		width: 100%;
		padding: 40px 0 0 !important;
	}

	#contact .column.active {
		display: block;
	}
	
	#contact .column .header:not(.awards-header) {
		display: none;
	}

	#contact.contact-page #sections, #contact.contact-page .about .about-copy {
		display: none;
	}

	#contact.contact-page .about {
		display: block;
		padding: 0 !important;
	}

	#contact.contact-page .about .contact-header {
		display: block;
	}

	#selected-projects-link {
		text-align: left;
		margin-top: 40px;
		padding: 10px;
	}

	#selected-projects-link span {
		color: #de3901;
	}
}

/* End Mobile */
