.grid-wrap {
	clear: both;
	margin: 0 auto;
	padding: 0;
	max-width: 1260px;
}

.grid {
	/* margin: 76px auto 62px; */
	padding: 0px;
	/* list-style: none; */
	min-height: 500px;
}

/* .js .grid {
	background: url(../img/loading.gif) no-repeat 50% 100px;
} */

/* .js .grid.loaded {
	background: none;
} */

.grid ul {
    display: table;
    width: 100%;
}

.grid li {
    display: table-cell;
    width: 30%;
}

.grid li:nth-child(2) {
    text-align: center;
}

.grid li:last-child {
    text-align: right;
}

.grid li {
	display: inline-block;
	overflow: visible;
	width: 300px;
	text-align: left;
	vertical-align: top;
}

/* .js .grid li {
	display: none;
	float: left;
}

.js .grid.loaded li {
	display: block;
} */

/* Title box */
.title-box h2 {
	display: block;
	margin: 7px;
	padding: 20px;
	background: #000000;
	color: #D3EEE2;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 300;
}

.title-box h2 a {
	display: block;
	font-weight: 900;
}

.title-box h2 a:hover {
	color: #D3EEE2;
}

/* Anchor and image */
.grid li > .listLink,
.grid li img {
	display: block;
	outline: none;
	/* height: 250px; */
	width: 300px;
	/* border: none; */
}

/* .grid li > a {
	position: relative;
	overflow: visible;
	margin: 7px;
} */

/* Shadow */
/* .grid .curtain {
	position: relative;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0);
	content: '';
} */
/* .grid.swipe-right .curtain,
.grid.swipe-rotate .curtain {
	left: -100%;
} */

/* .grid.swipe-down .curtain {
	top: -100%;
} */
.portfolioSlide{
	padding-bottom: 116px;
	background-color: #f8f7f8;
	}

/* Title */
.grid li h3 {
	position: absolute;
	bottom: 0;
	left: 0;
	margin: 0px;
	padding: 37px 31px 32px;
	width: 100%;
	background: #f8f7f8;
	color: #000000;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 800;
	font-size: 16px;
	-webkit-transition: -webkit-transform 0.2s, color 0.2s;
	transition: transform 0.2s, color 0.2s;
	line-height:27px;
	z-index:10;
}
.grid li h3 a{
	color: #000000;
}
.grid li h3 a:hover{
	text-decoration:none
}
.grid li iframe, .grid li video{
	position:relative;
	z-index:15;
	}

.grid li h3 span{
	display:block;
	font-size:13px;
	color:#898889;
	font-weight:normal;
	line-height:21px;
	}

/* Pseudo element for hover effect */
.grid li > .listLink a::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100.5%;
	height: 100.5%;
	z-index:12;
	border: 0px solid transparent;
	background: rgba(0,0,0,0);
	content: '';
	-webkit-transition: border-width 0.2s, border-color 0.2s;
	transition: border-width 0.2s, border-color 0.2s;
}

/* Hover effects */
.grid li.shown:hover h3 {
	color: #000000;
	-webkit-transform: translate3d(0,-30px,0);
	transform: translate3d(0,-30px,0);
}

.grid li.shown:hover > .listLink a::before {
	border-width: 14px;
	/*border-color: rgba(248,247,248,0.8);*/
	border-color:#f8f7f8;
}

/* Animations */

/* Swipe right */
.grid.swipe-right li.animate .curtain {
	-webkit-animation: swipeRight 0.5s cubic-bezier(0.6,0,0.4,1) forwards;
	animation: swipeRight 0.5s cubic-bezier(0.6,0,0.4,1) forwards;
}

@-webkit-keyframes swipeRight {
	0% {} /* fixes Chrome 35.0.1916.114 issue (easing breaks) */
	50%, 60% { -webkit-transform: translate3d(0,0,0); }
	100% { -webkit-transform: translate3d(100%,0,0); }
}

@keyframes swipeRight {
	0% {}
	50%, 60% { -webkit-transform: translate3d(0,0,0); transform: translate(0); }
	100% { -webkit-transform: translate3d(100%,0,0); transform: translate3d(100%,0,0); }
}

/* Swipe down */
.grid.swipe-down li.animate .curtain {
	-webkit-animation: swipeDown 0.5s cubic-bezier(0.6,0,0.4,1) forwards;
	animation: swipeDown 1.5s cubic-bezier(0.6,0,0.4,1) forwards;
}

@-webkit-keyframes swipeDown {
	0% {} /* fixes Chrome 35.0.1916.114 issue (easing breaks) */
	50%, 60% { -webkit-transform: translate3d(0,0,0); }
	100% { -webkit-transform: translate3d(0,100%,0); }
}

@keyframes swipeDown {
	0% {}
	50%, 60% { -webkit-transform: translate(0); transform: translate(0); }
	100% { transform: translate3d(0,100%,0); transform: translate3d(0,100%,0); }
}

/* Swipe rotate */
.grid.swipe-rotate li.animate .curtain {
	-webkit-animation: swipeRotate 0s ease forwards;
	animation: swipeRotate 0s ease forwards;
}

@-webkit-keyframes swipeRotate {
	0% {} /* fixes Chrome 35.0.1916.114 issue (easing breaks) */
	50%, 60% { -webkit-transform: rotate3d(0,0,1,0deg); }
	100% { -webkit-transform: rotate3d(0,0,1,-90deg); }
}

@keyframes swipeRotate {
	0% {}
	50%, 60% { -webkit-transform: rotate3d(0,0,1,0deg); transform: rotate3d(0,0,1,0deg); }
	100% { -webkit-transform: rotate3d(0,0,1,-90deg); transform: rotate3d(0,0,1,-90deg); }
}

/* Shadow */
.grid li.animate .curtain::after {
	-webkit-animation: fadeOut 0s ease forwards;
	animation: fadeOut 0s ease forwards;
	-webkit-animation-delay: inherit;
	animation-delay: inherit;
}

@-webkit-keyframes fadeOut {
	0% {} /* fixes Chrome 35.0.1916.114 issue (easing breaks) */
	50%, 60% { opacity: 1; }
	100% { opacity: 0; }
}

@keyframes fadeOut {
	0% {}
	50%, 60% { opacity: 1; }
	100% { opacity: 0; }
}

/* Hide image and title and show at half time */
.js .grid li img,
.js .grid li h3,
 .js .grid li iframe{
	visibility: visible;
}

.grid li.animate img,
.grid li.animate h3 {
	-webkit-animation: showMe 1.5s step-end forwards;
	animation: showMe 1.5s step-end forwards;
}

@-webkit-keyframes showMe {
	from { visibility: visible; }
	60%, 100% { visibility: visible; }
}

@keyframes showMe {
	from { visibility: visible; }
	60%, 100% { visibility: visible; }
}

.grid li.shown img,
.grid li.shown h3,
.js .grid li.shown iframe {
	visibility: visible;
}
