@import url("https://use.typekit.net/rlq5hyg.css");

*, *:after, *:before { -webkit-box-sizing: border-box; box-sizing: border-box; }
.clearfix:before, .clearfix:after { content: ''; display: table; }
.clearfix:after { clear: both; }

body {
    font-family: museo-sans, Helvetica, Arial, sans-serif;
    font-weight: 300; 
}

.redeyedesign { background: #231F20; }
.redeyedesign a { text-decoration: none; }

.ip-header {
	position: fixed;
	top: 0;
	z-index: 100;
	min-height: 480px;
	width: 100%;
	height: 100%;
	background: #C14229;
    text-align: center;
}

.ip-header h1 {
	margin: 0;
}

.ip-logo,
.ip-loader {
	position: absolute;
	left: 0;
	width: 100%;
	opacity: 0;
	cursor: default;
	pointer-events: none;
}

.ip-logo {
	top: 0;
	height: 100%;
	-webkit-transform: translate3d(0,25%,0);
	transform: translate3d(0,25%,0);
}

.ip-loader {
	bottom: 20%;
}

.ip-header .ip-inner {
	display: block;
	margin: 0 auto;
}

.ip-header .ip-logo svg {
	min-width: 360px;
	max-width: 360px;
	width: 25%;
}

.ip-header .ip-loader svg path {
	fill: none;
	stroke-width: 6;
}

.ip-header .ip-loader svg path.ip-loader-circlebg {
	stroke: #E5E5E5;
}

.ip-header .ip-loader svg path.ip-loader-circle {
	-webkit-transition: stroke-dashoffset 0.2s;
	transition: stroke-dashoffset 0.2s;
	stroke: #77251F;
}

/* Content */
.red-main {
	overflow: hidden;
	margin: 0 auto;
	padding: 320px 0 30px 0;
	max-width: 1350px;
	width: 100%;
}

.red-main nav {
    text-align: center;
}

.red-main nav ul {
    margin: 0 0 30px;
    padding: 0;
}

.red-main nav ul li, footer ul li {
    display: inline;
    list-style-type: none;
    padding: 0 24px;
    font-family: museo-sans, Helvetica, Arial, sans-serif;
    font-weight: 300;
}

.red-main nav ul li a, footer ul li a {
    color: #E5E5E5;
    opacity: 0.5;
    font-size: 16px;
    line-height: 1;
    transition: 0.3s ease-in-out;
    -webkit-transition: 0.3s ease-in-out;
    -moz-transition: 0.3s ease-in-out;
    -o-transition: 0.3s ease-in-out;
}

.red-main nav ul li a:hover, footer ul li a:hover {
    opacity: 1;
    cursor: pointer
}

.red-main nav ul li a.current {
    opacity: 1;
}

.red-main h2 {
    color: #E5E5E5;
	margin: 0;
	text-align: center;
	font-size: 2em;
	font-size: 2vw;
	line-height: 1;
    font-family: museo-sans, Helvetica, Arial, sans-serif;
    font-weight: 100;
}

footer {
    width: 100%;
    max-width: 1350px;
    text-align: center;
    margin: 0 auto;
}

footer ul {
    margin: 0 0 30px;
    padding: 0;
}

footer p {
    font-size: 0.75em;
    line-height: 1;
    color: #E5E5E5;
    opacity: 0.5;
    letter-spacing: 0.75px;
    font-weight: 300;
    font-family: museo-sans, Helvetica, Arial, sans-serif;
}

.portfolio-grid {
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    align-content: flex-start;
    margin: 0 auto;
    list-style: none;
}

.portfolio-grid .portfolio-item {
    width: 30%;
    height: 300px;
    background: #d8d8d8;
    margin: 20px 1.5%;
}

/* Common style */
.portfolio-grid figure {
	position: relative;
	overflow: hidden;
    margin: 20px 1.5%;
	max-width: 100%;
    width: 30%;
	max-height: 300px;
    background: #d8d8d8;
	text-align: center;
	cursor: pointer;
}

.portfolio-grid figure img {
	position: relative;
	display: block;
	min-height: 100%;
	max-width: 100%;
	opacity: 1;
}

.portfolio-grid figure figcaption {
	padding: 2em;
	color: #fff;
	text-transform: uppercase;
	font-size: 1.25em;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.portfolio-grid figure figcaption::before,
.portfolio-grid figure figcaption::after {
	pointer-events: none;
}

.portfolio-grid figure figcaption,
.portfolio-grid figure figcaption > a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.portfolio-grid figure figcaption > a {
	z-index: 1000;
	text-indent: 200%;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
}

.portfolio-grid figure h2 {
	font-weight: 300;
    font-size: 1.5em;
    line-height: 1.5;
}

.portfolio-grid figure h2 span {
	font-weight: 800;
}

.portfolio-grid figure h2,
.portfolio-grid figure p {
	margin: 0;
}

.portfolio-grid figure p {
	letter-spacing: 1px;
	font-size: 68.5%;
}

figure.effect-red {
	background: #C14229;
}

figure.effect-red img {
	opacity: 1;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale3d(1.05,1.05,1);
	transform: scale3d(1.05,1.05,1);
}

figure.effect-red figcaption::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(35,31,32,0.6);
	content: '';
	-webkit-transition: -webkit-transform 0.6s;
	transition: transform 0.6s;
	-webkit-transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,-100%,0);
	transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,-100%,0);
}

figure.effect-red p {
	position: absolute;
	right: 0;
	bottom: 0;
	margin: 3em;
	padding: 0 1em;
	max-width: 70%;
	border-right: 2px solid #fff;
	text-align: right;
	opacity: 0;
	-webkit-transition: opacity 0.35s;
	transition: opacity 0.35s;
}

figure.effect-red h2 {
	text-align: left;
    opacity: 0;
	-webkit-transition: opacity 0.35s;
	transition: opacity 0.35s;
}

figure.effect-red:hover img {
	opacity: 0.1;
	-webkit-transform: scale3d(1,1,1);
	transform: scale3d(1,1,1);
}

figure.effect-red:hover figcaption::before {
	-webkit-transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,100%,0);
	transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,100%,0);
}

figure.effect-red:hover p, figure.effect-red:hover h2 {
	opacity: 1;
	-webkit-transition-delay: 0.1s;
	transition-delay: 0.1s;
}



/* Animations */

/* Initial animation of header elements */
.loading .ip-logo,
.loading .ip-loader {
	opacity: 1;
	-webkit-animation: animInitialHeader 1s cubic-bezier(0.7,0,0.3,1) both;
	animation: animInitialHeader 1s cubic-bezier(0.7,0,0.3,1) both;
}

.loading .ip-loader {
	-webkit-animation-delay: 0.2s;
	animation-delay: 0.2s;
}

@-webkit-keyframes animInitialHeader {
	from { opacity: 0; -webkit-transform: translate3d(0,800px,0); }
}

@keyframes animInitialHeader {
	from { opacity: 0; -webkit-transform: translate3d(0,800px,0); transform: translate3d(0,800px,0); }
}

/* Header elements when loading finishes */
.loaded .ip-logo,
.loaded .ip-loader {
	opacity: 1;
}

.loaded .ip-logo {
	-webkit-transform-origin: 50% 0;
	transform-origin: 50% 0;
	-webkit-animation: animLoadedLogo 1s cubic-bezier(0.7,0,0.3,1) forwards;
	animation: animLoadedLogo 1s cubic-bezier(0.7,0,0.3,1) forwards;
}

@-webkit-keyframes animLoadedLogo {
	to { -webkit-transform: translate3d(0,100%,0) translate3d(0,50px,0) scale3d(0.65,0.65,1); }
}

@keyframes animLoadedLogo {
	to { -webkit-transform: translate3d(0,100%,0) translate3d(0,50px,0) scale3d(0.65,0.65,1); transform: translate3d(0,100%,0) translate3d(0,50px,0) scale3d(0.65,0.65,1); }
}

.loaded .ip-loader {
	-webkit-animation: animLoadedLoader 0.5s cubic-bezier(0.7,0,0.3,1) forwards;
	animation: animLoadedLoader 0.5s cubic-bezier(0.7,0,0.3,1) forwards;
}

@-webkit-keyframes animLoadedLoader {
	to { opacity: 0; -webkit-transform: translate3d(0,-100%,0) scale3d(0.3,0.3,1); }
}

@keyframes animLoadedLoader {
	to { opacity: 0; -webkit-transform: translate3d(0,-100%,0) scale3d(0.3,0.3,1); transform: translate3d(0,-100%,0) scale3d(0.3,0.3,1); }
}

/* Change the color of the logo */
.loaded .ip-logo svg path {
	-webkit-transition: all 0.5s ease 0.3s;
	transition: all 0.5s ease 0.3s;
}

/* Header animation when loading finishes */
.loaded .ip-header {
	-webkit-animation: animLoadedHeader 1s cubic-bezier(0.7,0,0.3,1) forwards;
	animation: animLoadedHeader 1s cubic-bezier(0.7,0,0.3,1) forwards;
}

@-webkit-keyframes animLoadedHeader {
	to { -webkit-transform: translate3d(0,-100%,0); }
}

@keyframes animLoadedHeader {
	to { -webkit-transform: translate3d(0,-100%,0); transform: translate3d(0,-100%,0); }
}

/* Content animations */
.loaded .ip-main h2,
.loaded .ip-main .browser,
.loaded .ip-main .browser .box,
.loaded .codrops-demos {
	-webkit-animation: animLoadedContent 1s cubic-bezier(0.7,0,0.3,1) both;
	animation: animLoadedContent 1s cubic-bezier(0.7,0,0.3,1) both;
}

.loaded .ip-main .browser,
.loaded .ip-main .browser .box:first-child {
	-webkit-animation-delay: 0.1s;
	animation-delay: 0.1s;
}

.loaded .ip-main .browser .box:nth-child(2) {
	-webkit-animation-delay: 0.15s;
	animation-delay: 0.15s;
}

.loaded .ip-main .browser .box:nth-child(3) {
	-webkit-animation-delay: 0.2s;
	animation-delay: 0.2s;
}

@-webkit-keyframes animLoadedContent {
	from { opacity: 0; -webkit-transform: translate3d(0,200px,0); }
}

@keyframes animLoadedContent {
	from { opacity: 0; -webkit-transform: translate3d(0,200px,0); transform: translate3d(0,200px,0); }
}

/* Change layout class for header */
.layout-switch .ip-header {
	position: absolute;
}

/* No JS */
.no-js .ip-header {
	position: relative;
	min-height: 0px;
}

.no-js .ip-header .ip-logo {
	margin-top: 20px;
	height: 180px;
	opacity: 1;
	-webkit-transform: none;
	transform: none;
}

.no-js .ip-header .ip-logo svg path {
	fill: #fff;
}


/* Project Page Templates */

.project-header {
    width: 100%;
    background: transparent;
    padding: 40px 60px 0;
    position: relative;
    z-index: 3;
}
.project-header-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    z-index: 3;
}
.project-hero {
    width: 100%;
    background: #231F20;
    padding: 440px 0 80px;
    margin-top: -104px;
    position: relative;
    z-index: 1;
    -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 0% 100%); 
    clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 0% 100%);
}
.project-hero:after {
    content: '';
    width: 100%;
    height: 101%;
    background: rgba(35,31,32,0.90);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}
.project-hero.johnlaurito {
    background: url('../img/jl_banner_alt.jpg') no-repeat;
    background-size: cover;
    background-position: left center;
}
.project-hero-container {
    max-width: 1350px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}
.project-hero h1 {
    color: #fff;
    font-size: 60px;
    line-height: 1.1;
    letter-spacing: 1px;
    font-weight: 900;
    margin: 0 0 4px;
}
.project-category {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
}
.category-line {
    display: block;
    width: 4px;
    height: 48px;
    background-color: #C14229;
    margin-right: 20px;
    border-radius: 2px;
}
.project-hero h4 {
    color: #fff;
    font-size: 24px;
    line-height: 48px;
    letter-spacing: 0.4px;
    font-weight: 300;
    margin: 0;
}
.project-main {
    padding: 120px 0;
}
.project-main .hr {
    margin: 60px 0;
    display:block;
    width:100%;
    height:2px;
    background:#3F393A;
    border-radius: 1px;
}
.project-main-container {
    margin: 0 auto;
    max-width: 1350px;
    width: 100%;
}
.redeyedesign.project h2 {
    color: #E5E5E5;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.6px;
    margin: 0 0 30px;
}
.redeyedesign .project-main h4 {
    color: #C14229;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 60px 0 30px;
}
.redeyedesign.project p {
    color: #E5E5E5;
    font-size: 18px;
    line-height: 2;
    font-weight: 300;
    letter-spacing: 0.3px;
    margin: 0 0 30px;
}
.project-main-container.split-container {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: flex-start;
	align-content: flex-start;
	margin: 80px auto;
}
.full-container .img-holder {
    max-width: 100%;
    width: 100%;
    text-align: center;
    margin: 80px 0;
}
.split-container .img-holder {
	max-width: 48%;
	width: 100%;
}
.split-container .img-holder img, .full-container .img-holder img {
	max-width: 100%;
}

/* MMDAL LIGHTBOX */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
  animation-name: lightbox;
  animation-duration: 0.5s;
  animation-timing-function: ease-in-out;
}

@keyframes lightbox {
	from {background-color: rgba(0,0,0,0);}
	to {background-color: rgba(0,0,0,0.85);}
}
/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
}
/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 49px;
  right: 60px;
  font-size: 35px;
  font-weight: normal;
  -webkit-transition: all 0.8s ease-in-out;
     -moz-transition: all 0.8s ease-in-out;
     -o-transition: all 0.8s ease-in-out;
     -ms-transition: all 0.8s ease-in-out;
      transition: all 0.8s ease-in-out;
}
.close:hover {
     -webkit-transform: rotate(540deg);
     -o-transform: rotate(540deg);
     -moz-transform: rotate(540deg);
     -ms-transform: rotate(540deg);
     transform: rotate(540deg);
}
.mySlides {
  display: none;
  opacity: 1;
  animation-name: lightbox-img;
  animation-duration: 0.5s;
  animation-timing-function: ease-in-out;
}
@keyframes lightbox {
	from {opacity: 0;}
	to {opacity: 1;}
}
.cursor {
  cursor: pointer;
}



/* Media queries */

@media screen and (max-width: 45em) {

	.ip-main h2 {
		font-size: 2.25em;
		font-size: 10vw;
	}

	.box {
		width: 100%%;
	}

}