#grid-figure-services {
	min-width: 380px;
	max-width: 380px;
	max-height: 350px;
	margin: 0px;
	background: #d7a408;
}

#grid-figure-photo {
	min-width: 545px;
	max-width: 545px;
	max-height: 450px;
	margin: 10px 1%;
	background: #16a7a7;
}

#grid-figure-video {
	min-width: 545px;
	max-width: 545px;
	max-height: 400px;
	margin: 10px 1%;
	background: #721166;
}

.grid {
	font-family: 'Geometria-Medium';
	position: relative;
	margin: 0 auto;
	padding: 1em 0 4em;
	max-width: 1170px;
	list-style: none;
	text-align: center;
}

/* Common style */
.grid figure {
	position: relative;
	float: left;
	overflow: hidden;
	width: 48%;
	text-align: center;
	cursor: pointer;
}

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

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

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

.grid figure h3 {
	word-spacing: -0.15em;
	font-weight: 300;
}

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

.grid figure h3,
.grid figure p {
	margin: 0;
}

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

/* Individual effects */



/*---------------*/
/***** services *****/
/*---------------*/

figure.effect-services {
	/*background: -webkit-linear-gradient(45deg, #22682a 0%, #9b4a1b 40%, #3a342a 100%);
	background: linear-gradient(45deg, #22682a 0%,#9b4a1b 40%,#3a342a 100%);*/
}

figure.effect-services img {
	opacity: 0.9;
	-webkit-transition: opacity 0.35s;
	transition: opacity 0.35s;
}

figure.effect-services figcaption {
	padding: 3em;
	/* Градиент неактивного блока
	background-color: rgba(58,52,42,0.7);*/
	-webkit-transition: background-color 0.5s;
	transition: background-color 0.5s;
}

figure.effect-services figcaption::before {
	position: absolute;
	top: 20px;
	right: 20px;
	bottom: 20px;
	left: 20px;
	border: 2px solid #fff;
	content: '';
}

figure.effect-services h3 {
	margin: 20px 0 10px 20px;
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	-webkit-transform: translate3d(0,100%,0);
	transform: translate3d(0,100%,0);
	font-size: 24pt;
	text-align: left;
	padding-top: 20px;
	background-image: url(../images/zigzag-white.png);
	background-repeat: no-repeat;
}

figure.effect-services figcaption::before,
figure.effect-services p {
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale(0);
	transform: scale(0);
}

figure.effect-services:hover h3 {
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
	height: 160px;
}

figure.effect-services:hover figcaption::before,
figure.effect-services:hover p {
	opacity: 1;
	-webkit-transform: scale(1);
	transform: scale(1);
	text-align: left;
}

figure.effect-services:hover figcaption {
	/*background-color: rgba(58,52,42,0);*/
}

figure.effect-services:hover img {
	opacity: 0.2;
}





/*---------------*/
/***** photo *****/
/*---------------*/

figure.effect-photo {
	/*background: -webkit-linear-gradient(45deg, #22682a 0%, #9b4a1b 40%, #3a342a 100%);
	background: linear-gradient(45deg, #22682a 0%,#9b4a1b 40%,#3a342a 100%);*/
}

figure.effect-photo img {
	opacity: 0.9;
	-webkit-transition: opacity 0.35s;
	transition: opacity 0.35s;
}

figure.effect-photo figcaption {
	padding: 3em;
	/* Градиент неактивного блока
	background-color: rgba(58,52,42,0.7);*/
	-webkit-transition: background-color 0.35s;
	transition: background-color 0.35s;
}

figure.effect-photo figcaption::before {
	position: absolute;
	top: 40px;
	right: 40px;
	bottom: 40px;
	left: 40px;
	border: 2px solid #fff;
	content: '';
}

figure.effect-photo h3 {
	opacity: 0;
	margin: 20px 0 10px 20px;
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	-webkit-transform: translate3d(0,100%,0);
	transform: translate3d(0,100%,0);
	text-align: left;
	padding-top: 20px;
	background-image: url(../images/zigzag-white.png);
	background-repeat: no-repeat;
}

figure.effect-photo figcaption::before,
figure.effect-photo p {
	padding: 170px 0 20px 20px;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale(0);
	transform: scale(0);
	text-align: left;
}

figure.effect-photo:hover h3 {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}

figure.effect-photo:hover figcaption::before,
figure.effect-photo:hover p {
	opacity: 1;
	-webkit-transform: scale(1);
	transform: scale(1);
}

figure.effect-photo:hover figcaption {
	background-color: rgba(58,52,42,0);
}

figure.effect-photo:hover img {
	opacity: 0.4;
}




@media screen and (max-width: 50em) {
	.content {
		padding: 0 10px;
		text-align: center;
	}
	.grid figure {
		display: inline-block;
		float: none;
		margin: 10px auto;
		width: 100%;
	}
}