﻿.grid {
	position: relative;
	width: 100%;
	list-style: none;
	text-align: center;
}


.grid figure {
	position: relative;
	float: left;
	overflow: hidden;
	text-align: center;
	cursor: pointer;
}
.grid figure img{
	width: 100%;
	height: 100%; 
	vertical-align:middle;
}
.grid figure figcaption {
	color: #fff;
	text-transform: uppercase;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.grid figure figcaption::before,
.grid figure figcaption::after {
	pointer-events: none;
}

.grid figure figcaption{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

figure.effect-bubba {
	background: #e60012;
	width: 100%;
	height: 100%;
}


figure.effect-bubba:hover img {
	opacity: 0;
}

figure.effect-bubba figcaption::before,
figure.effect-bubba figcaption::after {
	position: absolute;
	top: 15px;
	right: 15px;
	bottom: 15px;
	left: 15px;
	content: '';
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
}

figure.effect-bubba figcaption::before {
	border-top: 1px solid #fff;
	border-bottom: 1px solid #fff;
	-webkit-transform: scale(0,1);
	transform: scale(0,1);
}

figure.effect-bubba figcaption::after {
	border-right: 1px solid #fff; height:80%; margin-top:3%;
	border-left: 1px solid #fff;
	-webkit-transform: scale(1,0);
	transform: scale(1,0);
}
figure.effect-bubba figcaption b img{ width: 22px; height: 22px; display: block; opacity: 0; padding-top: 5%; padding-left: 6%;
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	-webkit-transform: translate3d(0,-20px,0);
	transform: translate3d(0,-20px,0);
}

figure.effect-bubba h3 { opacity: 0; font-size: 32px; margin-top:10px;
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	-webkit-transform: translate3d(0,-20px,0);
	transform: translate3d(0,-20px,0);
}

figure.effect-bubba span { display: block; font-size: 24px; margin:15px 0;
	padding:0;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(0,20px,0);
	transform: translate3d(0,20px,0);
}

figure.effect-bubba i { display: block; font-size: 36px;
	opacity: 0; padding-top: 30px;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(0,20px,0);
	transform: translate3d(0,20px,0);
}

figure.effect-bubba p { font-size: 18px;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(0,20px,0);
	transform: translate3d(0,20px,0);
}

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

figure.effect-bubba:hover h3,figure.effect-bubba:hover span,figure.effect-bubba:hover i,figure.effect-bubba:hover b img,
figure.effect-bubba:hover p {
	opacity: 1 !important;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}

figure.effect-bubba .cenghui{
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	background-color: rgba(0,0,0,0.2);
	transition: all 600ms;
}
figure.effect-bubba .cenghui .logoku{
	width: 100%;height: 100%;display: table; text-align: center;
}
figure.effect-bubba .cenghui .logoku .neik{
	width: 100%;height: 100%;display: table-cell;vertical-align: middle;text-align: center;
}
figure.effect-bubba .cenghui .logoku img{
	 width:auto !important;max-width: 200px !important;max-height: 150px !important;opacity: 0.7;
}
figure.effect-bubba:hover .cenghui {
	opacity: 0;
	filter: alpha(opacity=0);
}

@media screen and (max-width:1465px){

	figure.effect-bubba span {
    font-size: 20px;
    margin: 5px 0;}
	
	figure.effect-bubba figcaption::before, figure.effect-bubba figcaption::after {
    position: absolute;
    top: 12px;
    right: 15px;
    bottom: 12px;
    left: 15px;

}

	figure.effect-bubba h3 { opacity: 0; font-size: 22px; margin-top: 0;
	}

	figure.effect-bubba i { font-size: 30px;
	padding-top: 15px;

	}
	figure.effect-bubba figcaption b img {
   padding-top: 30px;
    padding-left: 30px;}

	figure.effect-bubba p { font-size: 14px;
	}

}

@media screen and (max-width:768px){