/*--gallery--*/
.gallery {
    padding-top: 6em;
}
.gallery-top {
    padding: 0;
}

.service-head .grid-ga {
	padding: 0.5em;
}
.grid-ga {
	position: relative;
	clear: both;
	margin: 0 auto;
	list-style: none;
	text-align: center;
}

/* Common style */
.grid-ga figure {
	position: relative;
	float: left;
	overflow: hidden;
	height: 16em;
	width: 100%;
	background: #3085a3;
	text-align: center;
	cursor: pointer;
}
.category_box .grid-ga figure {
	height: 22em;
}
.grid-ga figure img {
	position: relative;
	display: block;
	min-height: 100%;
	width: 100%;
	opacity: 0.8;
}

.grid-ga figure figcaption {
	padding: 2em;
	color: #fff;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.grid-ga figure figcaption::before,
.grid-ga figure figcaption::after {
	pointer-events: none;
}

.grid-ga figure figcaption {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.grid-ga figure h4 {
	font-size: 2em;
}
.grid-ga figure p {
	font-size: 1em;

}

/*---------------*/
/***** Ming *****/
/*---------------*/

figure.effect-img {
	background: #030c17;
}

figure.effect-img img {
	opacity: 0.9;
	-webkit-transition: opacity 0.35s;
	transition: opacity 0.35s;
}

figure.effect-img figcaption::before {
	position: absolute;
	top: 10px;
	right: 10px;
	bottom: 10px;
	left: 10px;
	border: 1px dashed #fff;
	box-shadow: 0 0 0 30px rgba(255,255,255,0.2);
	content: '';
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale3d(1.4,1.4,1);
	transform: scale3d(1.4,1.4,1);
}

figure.effect-img h4 {
	margin: 10% 0 10px 0;
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	opacity: 0;
}
figure.effect-img h4.w3-gallery{
	margin: 32% 0 10px 0;
}
figure.effect-img h4.w3-gallery1{
	margin: 15% 0 10px 0;
}
figure.effect-img h4 span{
	font-size: 0.7em;
	color: #ccc;
}

figure.effect-img p {
	padding: 1em;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale(1.5);
	transform: scale(1.5);
}

figure.effect-img:hover h4 {
	-webkit-transform: scale(0.9);
	transform: scale(0.9);
}

figure.effect-img:hover figcaption::before,
figure.effect-img:hover p ,figure.effect-img:hover h4 {
	opacity: 1;
	-webkit-transform: scale3d(1,1,1);
	transform: scale3d(1,1,1);
}

figure.effect-img:hover figcaption {
	background-color: rgba(58,52,42,0);
}

figure.effect-img:hover img {
	opacity: 0.4;
}
figure.effect-img .ga-text h4 {
	margin: 6% 0 10px 0;
}
figure.effect-img .ga-text p {
	padding:0 1em;
}