.grid {
	position: relative;
	clear: both;
	max-width: 1000px;
	overflow:hidden;
	list-style: none;
	text-align: center;
	margin-top: 0;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
}

/* Common style */
.grid figure {
	position: relative;
	overflow: hidden;
	text-align: center;
	cursor: pointer;
	margin-bottom: 0;
}

.grid figure img {
	position: relative;
	display: block;
	opacity: 1;
	width:100%;
}

.grid figure figcaption {
	padding: 1em;
	color: #fff;
	font-size: 1.25em;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
@media screen and (min-width: 0px) and (max-width: 768px) {
	.grid figure figcaption {
		font-size: 1em;
	}
}

.grid figure figcaption::before,
.grid figure figcaption::after {
	pointer-events: none;
}

.grid figure figcaption,
.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 */
.grid figure figcaption > a {
	z-index: 1000;
	text-indent: 200%;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
}
/* Individual effects */

/*---------------*/
/***** Julia *****/
/*---------------*/

figure.effect-julia {
	padding:2em;
	background: #f9f9f9;
	background: -moz-linear-gradient(-45deg, #f9f9f9 0%, #e1e1e1 100%);
	background: -webkit-linear-gradient(-45deg, #f9f9f9 0%,#e1e1e1 100%);
	background: linear-gradient(135deg, #f9f9f9 0%,#e1e1e1 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f9f9f9', endColorstr='#e1e1e1',GradientType=1 );
}

figure.effect-julia img {
	max-width: none;
	-webkit-transition: opacity 1s, -webkit-transform 1s;
	transition: opacity 1s, transform 1s;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

figure.effect-julia figcaption {
	display:table-cell;
	vertical-align:middle;
	background: #f0832d;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
figure.effect-julia h2 {
	color: #fff;
	position: absolute;
    bottom: 50%;
    left: 0;
    width: 100%;
    text-align: left;
}
figure.effect-julia h2 {
  	font-weight: 300;
  	font-size: 1.2em;
	opacity: 0;
	text-align: center;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale3d(0.9,0.9,1);
	transform: scale3d(0.9,0.9,1);
	z-index: 10;
	margin-bottom: -15px;
}
figure.effect-julia h2 span{
  	text-transform: uppercase;
  	font-weight: 600 !important;
}

figure.effect-julia:hover figcaption {
    opacity: 1;
}
figure.effect-julia:hover img {
	opacity: 0;
	-webkit-transform: scale3d(1.1,1.1,1);
	transform: scale3d(1.1,1.1,1);
}
figure.effect-julia:hover h2 {
	opacity: 1;
	-webkit-transform: scale3d(1,1,1);
	transform: scale3d(1,1,1);
}

/*---------------*/
/***** Julia2 *****/
/*---------------*/

figure.effect-julia2 {
	background: #f9f9f9;
	background: -moz-linear-gradient(-45deg, #f9f9f9 0%, #e1e1e1 100%);
	background: -webkit-linear-gradient(-45deg, #f9f9f9 0%,#e1e1e1 100%);
	background: linear-gradient(135deg, #f9f9f9 0%,#e1e1e1 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f9f9f9', endColorstr='#e1e1e1',GradientType=1 );
}

figure.effect-julia2 img {
	max-width: none;
	-webkit-transition: opacity 1s, -webkit-transform 1s;
	transition: opacity 1s, transform 1s;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

figure.effect-julia2 figcaption {
	display:table-cell;
	vertical-align:middle;
	background: #f0832d;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
figure.effect-julia2 h2 {
	color: #fff;
	position: absolute;
    bottom: 50%;
    left: 0;
    width: 100%;
    text-align: left;
}
figure.effect-julia2 h2 {
  	font-weight: 300;
  	font-size: 1.2em;
	opacity: 0;
	text-align: center;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale3d(0.9,0.9,1);
	transform: scale3d(0.9,0.9,1);
	z-index: 10;
	margin-bottom: -15px;
}
figure.effect-julia2 h2 span{
  	text-transform: uppercase;
  	font-weight: 600 !important;
}

figure.effect-julia2:hover figcaption {
    opacity: 1;
}
figure.effect-julia2:hover img {
	opacity: 0;
	-webkit-transform: scale3d(1.1,1.1,1);
	transform: scale3d(1.1,1.1,1);
}
figure.effect-julia2:hover h2 {
	opacity: 1;
	-webkit-transform: scale3d(1,1,1);
	transform: scale3d(1,1,1);
}