.grid-wrap, .cd-nav{
	margin: 10px auto 0;
	max-width: 1090px;
	width: 100%;
	padding: 0;
	-webkit-perspective: 1500px;
	perspective: 1500px;
	padding-top: 7rem;
  text-align: center;
}

.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;
}

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

.grid figure,
.grid .placeholder {
	width: 340px;
	height: 300px;
}

.grid figure {
	margin: 5px;
	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;

}
.grid figure img{
	border-radius: 0.7rem;
}
.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(1500px) rotateX(-179.9deg);
	transform: translateZ(1500px) rotateX(-179.9deg); /* FF, Chrome, can we agree on one direction, pleeease? */
}

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

.grid figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.content,
.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 {
	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;
}
.content .intro{
	background: #ccc;
	font-size: 13px;
	text-align: center;
	padding: 1rem;
	box-shadow: 0 15px 30px 0 rgba(0,0,0,0.11),0 5px 15px 0 rgba(0,0,0,0.08);
	border-radius: 0.5rem;
	border-left: 0 solid #00ff99;
	transition: border-left 300ms ease-in-out, padding-left 300ms ease-in-out;
}
.content .intro:hover {
  padding-left: 0.5rem;
  border-left: 0.5rem solid #00ff99;
}

.content .intro a{
	text-decoration: none;
}

.content .intro a img{
	height: 16px;
	width: 16px;
}
.content .title{
	text-align: left;
	text-transform: uppercase;
	color:#EE3769;
	border-left: 0.5rem solid #00ff99
}

.loading {
	opacity: 0;
	z-index: 1;
	background: transparent url(../img/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.show {
	height: auto;
	pointer-events: auto;
	visibility: visible;
}

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

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

.icon:before {
	font-family: 'fontawesome';
	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: 0;
	right: 10px;
	font-size: 1em;
	color: #aaa;
	cursor: pointer;
	pointer-events: none;
	padding: 1em;
	opacity: 0;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
}

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

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



/* Dummy content */

.content img,
.content p,
.content pre,
.content ul,
.content ol,
.content h1,
.content blockquote   {
	max-width: 600px;
	width: 90%;
	opacity: 1;
	margin: 0 auto;
	webkit-transition: opacity 0.5s, -webkit-transform 0.5s;
	transition: opacity 0.5s, transform 0.5s;
}

.content p img {
	width: 100%;
}
.ql-syntax {
	padding: 1rem;
	background: #23241f;
	color: #fff;
	border-radius: 0.5rem;

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

.horizontal .content img,
.horizontal .content p,
.horizontal .content pre,
.horizontal .content ol,
.horizontal .content h1,
.horizontal .content ul,
.horizontal .content blockquote {
	-webkit-transform: translateX(-100px);
	transform: translateX(-100px);
}

.content > div.show .content img,
.content > div.show .content p ,
.content > div.show .content pre,
.content > div.show .content ul,
.content > div.show .content ol,
.content > div.show .content h1,
.content > div.show .content blockquote {
	opacity: 1;
}

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

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

p.content p:nth-child(2),
pre.content pre:nth-child(2),
ul.content ul:nth-child(2),
ol.content ol:nth-child(2),
ol.content h1:nth-child(2),
blockquote.content blockquote:nth-child(2) {
	-webkit-transition-delay: 0.1s;
	transition-delay: 0.1s;
}

p.content p:nth-child(3),
pre.content pre:nth-child(3),
ol.content ol:nth-child(3),
ol.content h1:nth-child(3),
ul.content ul:nth-child(3),
blockquote.content blockquote:nth-child(3) {
	-webkit-transition-delay: 0.2s;
	transition-delay: 0.2s;
}

.content p ,
.content pre ,
.content ol,
.content ul,
.content blockquote{
	text-align: left;
	margin: 0 auto;
	font-size: 1em;
}


/* Simple fallback */
/* if any of these are not supported, a simple fallback will be shown */
.no-pointerevents .content,
.no-csstransforms3d .content,
.no-csstransitions .content,
.no-pointerevents .content > div,
.no-csstransforms3d .content > div,
.no-csstransitions .content > 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 .content img,
.no-csstransitions .content p,
.no-csstransitions .content pre,
.no-csstransitions .content ol,
.no-csstransitions .content h1,
.no-csstransitions .content ul,
.no-csstransitions .content blockquote,
.no-csstransforms3d .content img,
.no-csstransforms3d .content p,
.no-csstransforms3d .content pre,
.no-csstransforms3d .content ul,
.no-csstransforms3d .content ol,
.no-csstransforms3d .content h1,
.no-csstransforms3d .content blockquote,
.no-pointerevents .content img,
.no-pointerevents .content p,
.no-pointerevents .content pre,
.no-pointerevents .content ol,
.no-pointerevents .content h1,
.no-pointerevents .content ul,
.no-pointerevents .content blockquote  {
	display: block !important;
	opacity: 1;
}

@media screen and (max-width: 1000px) {
	.grid figure,
	.grid .placeholder {
		width: 240px;
		height: 212px;
	}

}
