.noscroll {
	overflow: hidden;
}

.grid-wrap {
	margin: 10px auto 0;
	max-width: 1090px;
	width: 100%;
	padding: 0;
	-webkit-perspective: 1500px;
	perspective: 1500px;
}

.grid {
	position: relative;
	-webkit-transition: all 0.5s cubic-bezier(0,0,0.25,1);
	transition: all 0.5s cubic-bezier(0,0,0.25,1);
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	
	display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row wrap;
    flex-flow: row wrap;
}

.view-full .grid {
	-webkit-transform: translateZ(-200px);
	transform: translateZ(-200px);
}

.grid figure,
.grid .placeholder {
	width: calc(100% / 3);
    height: calc(100vh / 3);
}

.grid figure {
	position: relative;
	margin: 0;
	display: inline-block;
	cursor: pointer;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	overflow:hidden;
	z-index: 9;
    display: -webkit-flex;
	display: flex;
	-webkit-justify-content: center;
	justify-content:center;
    align-items: center;
    padding: 3rem;
    font-family: 'Merriweather';
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-step-7);
	text-align: center;
	opacity: 1;
	border:1px solid var(--color-step-7);
	margin-top: -1px;
    margin-left: -1px;
	-webkit-transition:all 300ms ease-in-out;
	-moz-transition: all 300ms ease-in-out;
	-o-transition: all 300ms ease-in-out;
	transition: all 300ms ease-in-out;
}

/*.grid figure:before {
	position: absolute;
    content: attr(data-title);
    width: 100%;
    height: 100%;
    background: rgba(17,17,17,.75);
    top: 0;
    left: 0;
    z-index: 9;
    display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    font-family: 'Merriweather';
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-step-1);
	text-align: center;
	opacity: 1;
	-webkit-transition:all 300ms ease-in-out;
	-moz-transition: all 300ms ease-in-out;
	-o-transition: all 300ms ease-in-out;
	transition: all 300ms ease-in-out;
}*/

.grid figure:hover {
	color: var(--color-step-1);
	background: var(--color-step-7);
	-webkit-transition:all 300ms ease-in-out;
	-moz-transition: all 300ms ease-in-out;
	-o-transition: all 300ms ease-in-out;
	transition: all 300ms ease-in-out;
}

.grid figure.active {
	opacity: 0;
}

.grid .placeholder {
	pointer-events: none;
	position: absolute;
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transition: all 0.5s ease-out;
	transition: all 0.5s ease-out;
}

.placeholder > div {
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.placeholder .front img {
	width: 100%;
	height: 100%;
}

.placeholder .back {
	background: white;
	-webkit-transform: rotateY(180deg);
	transform: rotateY(180deg);
}

.view-full .placeholder {
	-webkit-transition: all 0.5s 0.1s cubic-bezier(0,0,0.25,1);
	transition: all 0.5s 0.1s cubic-bezier(0,0,0.25,1);
}

.vertical .view-full .placeholder {
	-webkit-transform: translateZ(200px) rotateX(-179.9deg);
	transform: translateZ(200px) rotateX(-179.9deg); /* FF, Chrome, can we agree on one direction, pleeease? */
}

.horizontal .view-full .placeholder {
	-webkit-transform: translateZ(200px) rotateY(-179.9deg);
	transform: translateZ(200px) rotateY(-179.9deg);
}

.grid figure img {
	display: block;
	width: 100%;
}

.content-grid,
.loading {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none; /* Careful, does not work in IE < 11 http://caniuse.com/#search=pointer-events */
}

.content-grid {
	overflow-y: scroll;
	height: 0; /* What seems to be the problem, officer? Well, we have a second scroll bar in Chrome! */
	background: #fff;
	visibility: hidden;
	z-index: 400;
	-webkit-overflow-scrolling: touch;
}

.loading {
	opacity: 0;
	z-index: 1;
	background: transparent url(../img/gridfpg/preloader.gif) no-repeat center center;
	-webkit-transform: scale(0.5);
	transform: scale(0.5);
	-webkit-transition: opacity 0.5s, -webkit-transform 0.5s;
	transition: opacity 0.5s, transform 0.5s;
}

.loading.show {
	opacity: 1;
	-webkit-transform: scale(1);
	transform: scale(1);
}

.content-grid.show {
	height: auto;
	pointer-events: auto;
	visibility: visible;
}

.content-grid > div {
	z-index: 10;
	position: absolute;
	top: 0;
	width: 100%;
	overflow: hidden;
	height: 0;
	opacity: 0;
	background: #fff;
}

.content-grid > div.show {
	height: auto;
	opacity: 1;	
	-webkit-transition: opacity 0.6s;
	transition: opacity 0.6s;
}

.icon:before {
	font-family: 'Tahoma';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.close-content {
	position: fixed;
	z-index: 1000;
	top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--color-step-5);
	cursor: pointer;
	pointer-events: none;
	padding: 1em;
	opacity: 0;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
}

.close-content:hover {
	color: #999;
}

.content-grid > div.show ~ .close-content {
	opacity: 1;
	pointer-events: auto;
}

.close-content:before {
	content: "x";
}

/* Dummy content */

.grid-img,
.grid-content {
	max-width: 600px;
	width: 90%;
	opacity: 0;
	-webkit-transition: opacity 0.5s, -webkit-transform 0.5s;
	transition: opacity 0.5s, transform 0.5s;
}

.vertical .grid-img,
.vertical .grid-content {
	-webkit-transform: translateY(100px);
	transform: translateY(100px);
}

.horizontal .grid-img,
.horizontal .grid-content {
	-webkit-transform: translateX(-100px);
	transform: translateX(-100px);
}

.content-grid > div.show .grid-img,
.content-grid > div.show .grid-content {
	opacity: 1;
}

.vertical .content-grid > div.show .grid-img,
.vertical .content-grid > div.show .grid-content {
	-webkit-transform: translateY(0);
	transform: translateY(0);
}

.horizontal .content-grid > div.show .grid-img,
.horizontal .content-grid > div.show .grid-content {
	-webkit-transform: translateX(0);
	transform: translateX(0);
}

h3,
p.grid-content:nth-child(2) {
	-webkit-transition-delay: 0.1s;
	transition-delay: 0.1s;
}

h3,
p.grid-content:nth-child(3) {
	-webkit-transition-delay: 0.2s;
	transition-delay: 0.2s;
}

.grid-img {
	height: auto;
    background-color: var(--color-step-8);
    margin: 5rem auto 2rem auto;
    box-shadow: 8px 8px 0px 0px var(--color-step-5);
}

.grid-img img { min-width:100%; }

.grid-content {
	text-align: left;
	margin: 0 auto;
	padding: 10px 0;
	color: var(--color-step-5);
	font-size: 1em;
	font-family: 'Merriweather';
	font-weight: 100;
}

.grid-content.frente-titulo {
	font-weight: 700;
}

.grid-content:last-child {
	padding-bottom: 100px;
}

/* Simple fallback */
/* if any of these are not supported, a simple fallback will be shown */
.no-pointerevents .content-grid,
.no-csstransforms3d .content-grid,
.no-csstransitions .content-grid,
.no-pointerevents .content-grid > div,
.no-csstransforms3d .content-grid > div,
.no-csstransitions .content-grid > div,
.no-pointerevents .close-content,
.no-csstransforms3d .close-content,
.no-csstransitions .close-content {
	opacity: 1;
	visibility: visible;
	display: none;
	height: auto;
}

.no-pointerevents .show .close-content,
.no-csstransforms3d .show .close-content,
.no-csstransition .show .close-content,
.no-pointerevents div.show,
.no-csstransforms3d div.show,
.no-csstransitions div.show,
.no-csstransitions .grid-img,
.no-csstransitions .grid-content,
.no-csstransforms3d .grid-img,
.no-csstransforms3d .grid-content, 
.no-pointerevents .grid-img,
.no-pointerevents .grid-content {
	display: block !important;
	opacity: 1;
}