/* FONTS
===================================================================================================*/
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Regular.woff");
 	font-weight:400	
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Italic.woff");
	font-style:italic
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Bold.woff");
	font-weight:700
} 


/* BASIC PAGE SETUP 
===================================================================================================*/
*,
*:after,
*:before {
	margin: 0;
	padding: 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

html, 
body {
	height: 100%;
	min-height: 100%;
}
	
body {
	width: 100%;
	min-height: 100%;
	margin: auto 0;
	padding: 0;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.55;
	color: #fff;
	text-align: left;
	background-color: #111;
	-webkit-font-smoothing: antialiased; /* Fix for webkit rendering */
	-moz-osx-font-smoothing: grayscale;
	-webkit-text-size-adjust: 100%;
	-webkit-transition: background-color 0.8s ease-out;
	-moz-transition: background-color 0.8s ease-out;
	-o-transition: background-color 0.8s ease-out;
	transition: background-color 0.8s ease-out;
}


/* TYPE & ELEMENTS
===================================================================================================*/
h1 {
	margin-top: 0px;
}

p {
	letter-spacing: 0;
	margin: 0px 0px 1rem;
}

/* Serif typeface */
h1.serif,
h2.serif,
h3.serif,
h4.serif,
h5.serif,
h6.serif,
p.serif,
.serif h1,
.serif h2,
.serif h3,
.serif h4,
.serif h5,
.serif h6,
.serif p {
  font-family: 'IBM Plex Sans', 'Times New Roman', Georgia, serif; /* I know it is not a serifed typeface */
  font-style: italic;
  font-weight: 400;
}

.uppercase {
	text-transform: uppercase;
}

ul,li,ol {
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
	border: none;
	-webkit-transition: color .3s ease-in-out;
	-moz-transition: color .3s ease-in-out;
	-ms-transition: color .3s ease-in-out;
	-o-transition: color .3s ease-in-out;
	transition: color .3s ease-in-out;
}

a:hover,
a:focus {
  color: #999;
}

a.link {
	padding-bottom: 2px;
	border-bottom: 2px solid #999;
}

a.link:hover {
	border-bottom: 2px solid tomato;
}


/* PAGE STRUCTURE
===================================================================================================*/
#header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
}

#main {
	padding-bottom: 3rem;
}

#footer {
}

section {
	margin-bottom: 1rem;
}

.container {
	position: relative;
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 60px;
}

@media screen and (max-width: 1660px) {
	.container { padding: 0 30px; } 
}

@media screen and (max-width: 480px) {
	.container { padding: 0 16px; } 
}

/* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
.container:before, 
.container:after {
	content: " ";
	display: table;
}

.container:after {
	clear: both;
}

/* HEADER
===================================================================================================*/
#header > .container {
	padding-top: 2rem;
}

#header h1 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.1rem;
	line-height: 1.25;
	float: left;
}

#header h1 .current_position {
	opacity: .75;
}

@media screen and (max-width: 480px) {
	#header > .container {
		padding-top: 1rem;
	}
	#header h1 { 
		font-size: 1.25rem;	
	}
	.current_position {
 		display: none;
 	}
}

.landing_pg #header {
	color: #fff;
}


/* FOOTER
===================================================================================================*/
footer {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 3rem 4rem;
  order: 4;
}

#copy > span {
  color: #999;
}

/* NAVIGATION TOOGLE
===================================================================================================*/
.nav-toggle {
	cursor: pointer;
	height: 30px;
	width: 50px;
	position: absolute;
	right: 60px;
	z-index: 2000;
}

@media screen and (max-width: 1660px) {
	.nav-toggle {
		right: 30px;
	}
}

@media screen and (max-width: 480px) { 
	.nav-toggle {
		right: 16px;
		top: .9rem;
	}
}

.nav-toggle:before {
	content: "";
	display: block;
	position: absolute;
	bottom: -20px;
	left: -20px;
	right: 0;
	top: -20px;
	z-index: 2000;
}

.nav-toggle .bar {
	background-color: #000;
	display: block;
	height: 2px;
	margin-top: 0;
	opacity: 1;
	position: absolute;
	right: 0;
	top: calc( 50% - 1px );
	transform: rotate( 0deg );
	transition: transform .15s ease-in 0s, margin 0.15s ease-in 0.15s, opacity 0s ease-in 0.2s;
	width: 20px;
	z-index: 1;
}

.dark-mode .nav-toggle .bar {
	background-color: rgba( 255, 255, 255, 1 );
}

.nav-toggle .bar:nth-child(1) { margin-top: -7px; }
.nav-toggle .bar:nth-child(2) { margin-top: -1px; }
.nav-toggle .bar:nth-child(3) { margin-top: 5px; }

.nav-toggle.nav-is-open .bar {
	transition: margin 0.15s ease-in, opacity 0s ease-in 0.15s, transform 0.15s ease-out 0.2s;
	background-color: #000;
}

.nav-toggle.nav-is-open .bar:nth-child(1) {
	margin-top: -1px;
	transform: rotate( 45deg );
}

.nav-toggle.nav-is-open .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.nav-is-open .bar:nth-child(3) {
    margin-top: -1px;
    transform: rotate( -45deg );
}

#header.nav-is-open {
	color: #000;
}


/* NAVIGATION OVERLAY
===================================================================================================*/
/* Overlay style */
#navigation-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	padding-top: 10rem;
	background-color: #fff;
	color: #000;
}

@media screen and (max-width: 480px) {
	#navigation-overlay { padding-top: 7rem; }
}

/* Menu style */
#navigation-overlay nav {
	text-align: center;
}

#navigation-overlay ul {
	font-size: 3rem;
}

#navigation-overlay ul li.navigation-social {
	font-size: 1.25rem;
	line-height: 2;
}

#navigation-overlay ul li.email {
	padding-top: 2rem;
}

/* Effects */
#navigation-overlay {
	filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
	opacity:0;
	visibility:hidden;
	-moz-transition:opacity 0.3s,visibility 0s 0.3s;
	-o-transition:opacity 0.3s,visibility 0s 0.3s;
	-webkit-transition:opacity 0.3s,visibility 0s;
	-webkit-transition-delay:0s,0.3s;
	transition:opacity 0.3s,visibility 0s 0.3s;
}

#navigation-overlay.nav-is-open {
	filter:progid:DXImageTransform.Microsoft.Alpha(enabled=false);
	opacity:1;
	-moz-transition:opacity 0.3s;
	-o-transition:opacity 0.3s;
	-webkit-transition:opacity 0.3s;
	transition:opacity 0.3s;
	visibility:visible
}

#navigation-overlay nav {
	filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
	opacity:0.4;
	-moz-transform:translateY(25%);
	-ms-transform:translateY(25%);
	-webkit-transform:translateY(25%);
	transform:translateY(25%);
	-moz-transition:-moz-transform 0.5s,opacity 0.5s;
	-o-transition:-o-transform 0.5s,opacity 0.5s;
	-webkit-transition:-webkit-transform 0.5s,opacity 0.5s;
	transition:transform 0.5s,opacity 0.5s
}

#navigation-overlay.nav-is-open nav{
	filter:progid:DXImageTransform.Microsoft.Alpha(enabled=false);
	opacity:1;
	-moz-transform:translateY(0);
	-ms-transform:translateY(0);
	-webkit-transform:translateY(0);
	transform:translateY(0)
}


/* 01. LANDING PAGE
===================================================================================================*/
.landing_pg #intro {
	padding-top: 13rem;
	padding-bottom: 10rem;
}

.landing_pg #intro h2 {
	margin: 0;
	font-size: 3rem;
	line-height: 1.25;		
	font-weight: 400;
	opacity: .8;
}

.landing_pg #intro h2 > div {
	display: inline-block;
	margin: 0;
	letter-spacing: 0.1rem;
	opacity: 0;
}

@media only screen and (max-width: 1024px) {
	.landing_pg #intro {
		padding-top: 10rem;		
		padding-bottom: 8rem;
	}
	.landing_pg #intro h2 {
		font-size: 2.5rem;
	}
}
@media only screen and (max-width: 850px) {
	.landing_pg #intro {
		padding-top: 9rem;
		padding-bottom: 7rem;
	}
	.landing_pg #intro h2 {
		font-size: 2rem;
	}
}
@media only screen and (max-width: 700px) {
	.landing_pg #intro {
		padding-top: 10rem;
		padding-bottom: 5rem;
	}
	.landing_pg #intro h2 {
		font-size: 1.75rem;
	}
}
@media only screen and (max-width: 480px) {
	.landing_pg #intro {
		padding-top: 8rem;
		padding-bottom: 4rem;
	}
	.landing_pg #intro h2 {
		font-size: 1.5rem;
	}
}
@media only screen and (max-width: 560px) {
	.landing_pg #intro .introBR {
		display: none;
	}
}

@media only screen and (max-width: 375px) {
	.landing_pg #intro {
		padding-top: 6rem;
		padding-bottom: 3rem;
	}
	.landing_pg #intro h2 {
		font-size: 1.25rem;
	}
}

.landing_pg #intro #keywordDisplay {
	border-bottom: 2px solid;
	border-color: #f5c477;
	padding-bottom: :.2rem;
}


/* Project Grid */
.grid {
	position: relative;
}

/* clearfix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

.grid-sizer
{
	width: 50%;
	height: 0 !important;
	visibility: hidden;
	opacity: 0;
}

.grid-item {
	float: left;
	position: relative;
}

@media screen and (max-width: 480px) { 
	.grid-item {
		padding: 0px 16px 16px 16px;
	}
}
@media screen and (min-width: 640px) {
	.grid-sizer,
	.grid-item { 
		width: 50%; 
		margin: 0;
	} 
}
@media screen and (min-width: 1280px) {
	.grid-sizer,
	.grid-item { width: 33.33333%}
}
@media screen and (min-width: 1900px) {
	.grid-sizer,
	.grid-item { width: 25%; } 
}

.grid-item img {
	display: block;
	width: 100%;
	max-width: 100%;
}

.grid-item a div {
	position: absolute;
	left: 0px;
	top: 0px;
	right: 0px;
	bottom: 0px;
	background: rgba(0,0,0,.7);
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: flex;
	-webkit-align-items: center;
	-moz-align-items: center;
	-ms-align-items: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity .35s;
}

.grid-item a:hover div {
	opacity: 1;
}

.grid-item a div h3 {
	width: 100%;
	color: #fff;
	font-size: 1.35rem;
	letter-spacing: 2px;
	padding: 0 10px;
}

.grid-item a div h3 span {
	color: #999;
	font-size: 1rem;
	display: block;
	font-weight: 400;
}


/* 02. PAGES
===================================================================================================*/
.page_pg header {
	color: #111;
}

.page_pg main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  
  padding-top: 10rem;
  font-size: 1rem;
}

.page_pg #intro {
  max-width: 60vw;
  padding-bottom: 5rem; 
}

.personal_pg main,
.page_pg main {
  padding-top: 10rem;
  font-size: 1rem;
}

.page_pg main {
	background-color: #fff;
	color: #666;
	padding-top: 8rem;
}

#pageTitle {
  text-align: left;
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.page_pg #pageContent {
	max-width: 75vw;
}

@media screen and (max-width: 480px) { 
	.page_pg #main {
		padding-top: 5rem;
	}
	.page_pg #pageContent {
		max-width: 100vw;
	}	
	.page_pg #intro {
		padding: 0rem 1rem 2rem 1rem;
		max-width: 100vw;
	}
}
@media screen and (min-width: 640px) {
	.page_pg #pageContent {
		max-width: 75vw;
	}
}
@media screen and (min-width: 1280px) {
	.page_pg #pageContent {
		max-width: 55vw;
	}
}
@media screen and (min-width: 1900px) {
	.page_pg #pageContent {
		max-width: 40vw;
	}
}


/* 03. PROJECT PAGE
===================================================================================================*/
.project_pg main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  
  padding-top: 10rem;
  font-size: 1rem;
}

.project_pg #intro {
  max-width: 50vw;
  padding-bottom: 5rem; 
}

.project_pg #projectTitle {
  text-align: left;
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.project_pg #projectTitle h1 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.15rem;
}

.project_pg #projectTitle h2 {
  font-weight: 400;
  font-size: 1.2rem;
  color: #aaa;
  margin: 0;
}

.project_pg #projectDescription {
  font-size: 1.2rem;
  line-height: 1.35;
  color: #aaa;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.project_pg #projectText {
  width: 60%
}

.project_pg #projectFacts {
  font-size: 1rem;    
  color: #aaa;
  padding-left: 25px;
  border-left: 1px solid rgb(50,50,50);
}

.project_pg #projectFacts div {
  padding-bottom: 0.5rem;
}

.project_pg #projectFacts div span {
  display: block;
  text-transform: none;
  color: #fff;
}

.project_pg footer {
  display: flex;
  justify-content: center;
}

@media only screen and (max-width: 90rem) {
  .project_pg #projectDescription {
    flex-direction: column;
  }

  .project_pg #projectText {
      width: 100%;
      margin-bottom: 20px;
      padding-bottom: 10px;
      border-bottom: 1px solid rgb(50,50,50);
  }
  
  .project_pg #projectFacts {
      padding-left: 0;
      border: none;
  }
}

@media only screen and (max-width: 60rem) {
  .project_pg #intro {
    max-width: 75vw;
  }
}

@media only screen and (max-width: 480px) {
	.project_pg main {
		padding-top: 0rem;
	}

	.project_pg #intro {
		padding: 6rem 1rem 2rem 1rem;
		max-width: 100vw;
	} 

	.project_pg #projectTitle h1 {
		font-size: 1rem;
	}

	.project_pg #projectTitle h2 {
		font-size: 0.9rem;
	}

	.project_pg #projectText {
		font-size: 1rem;
	}

	.project_pg #projectFacts {
		font-size: 0.8rem;
	} 
}

#prev-next-nav {
  display: flex;
  justify-content: center; 
  max-width: 75vw;
}


/* MEDIA CONTAINER & IMAGES
===================================================================================================*/
#mediaContainer {
  margin: 0;
  padding: 0;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 75vw;	
}

#mediaContainer .image_container {
  margin-bottom: 30px;
}

#mediaContainer img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

#mediaContainer img.placeholder {
	background-color: #171717;
}

@media only screen and (min-width: 50rem) {
	#mediaContainer .half {
    max-width: 49%;
  }
}

#mediaContainer .image_description {
  display: block;
  margin-top: 2rem;
  margin-bottom: .5rem;
  font-size: 1.25rem;
  text-align: left;
}

@media only screen and (max-width: 30rem) {
  #mediaContainer .image_container {
      margin-bottom: 10px;
  }
}

@media only screen and (max-width: 480px) {
	#mediaContainer {
		max-width: 100vw;
	}
}
