.dg-container{
	width: 100%;
	height: 366px;
	position: relative;
	margin: 0 auto;
}
.dg-wrapper{
	width: 500px;
	height: 330px;
	margin: 0 auto;
	position: relative;
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	-o-transform-style: preserve-3d;
	-ms-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-perspective: 1000px;
	-moz-perspective: 1000px;
	-o-perspective: 1000px;
	-ms-perspective: 1000px;
	perspective: 1000px;
}
.dg-wrapper a{
	display: block;
	position: absolute;
	left: 0;
	top: 30px;
	box-shadow: 0px 10px 20px rgba(0,0,0,0.3);
}
.dg-wrapper a.dg-transition{
	-webkit-transition: all 0.5s ease-in-out;
	-moz-transition: all 0.5s ease-in-out;
	-o-transition: all 0.5s ease-in-out;
	-ms-transition: all 0.5s ease-in-out;
	transition: all 0.5s ease-in-out;
}
.dg-wrapper a img{
	display: block;
	padding: 0px;
	width: 100%;
	height: auto;
}
.dg-wrapper a div{
	text-align: center;
	line-height: 50px;
	text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
	color: #000;
	font-size: 1rem;
	width: 100%;
	top: -40px;
	display: none;
	position: absolute;
}
.dg-wrapper a.dg-center div{
	display: block;
}

@media screen and (max-width: 648px) {
	.dg-container {
		width: 100%;
		height: 280px;
	}

	.dg-wrapper {
		width: 100%;
		height: 260px;
		transform: scale(0.8);
		perspective: 800px;
	}

	.dg-wrapper a img {
		width: 100%;
		height: auto;
		padding: 0px;
	}

	.dg-wrapper a div {
		line-height: 40px;
	}

}