.dg-container{
	width: 100%;
	/*height: 409px;*/
	height:340px;
	position: relative;
}
.dg-wrapper{
	/*width: 481px;*/
	/*width: 430px;
	height: 316px;*/
	width: 350px;
	height: 243px;
	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{
	width: 100%;
	height:auto;
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	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:0;
	border:solid 1px #000;
	width:100%;
	/*height:316px;*/
	height:243px;
}
.dg-wrapper a div{
	font-style: italic;
	text-align: center;
	/*line-height: 50px;*/
	line-height: 45px;	
	text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
	color: #8B0000;
	font-size: 12px;
	width: 100%;
	bottom: -55px;
	display: none;
	position: absolute;
}

.dg-wrapper a div:hover{
	color: #FF0000;
}

.dg-wrapper a.dg-center div{
	display: block;
}
.dg-container nav{
	width: 58px;
	position: absolute;
	z-index: 1000;
	bottom: 14px;
	left: 50%;
	margin-left: -29px;
}
.dg-container nav span{
	text-indent: -9000px;
	float: left;
	cursor:pointer;
	width: 24px;
	height: 25px;
	opacity: 0.8;
	background: transparent url(https://royomachinery.com/img/arrows.png) no-repeat top left;
}
.dg-container nav span:hover{
	opacity: 1;
}
.dg-container nav span.dg-next{
	background-position: top right;
	margin-left: 10px;
}
@media screen and (max-width: 1199px) {
	.dg-wrapper{
		width:350px;
		height:190px;
	}
}
@media screen and (max-width: 991px) {
	.dg-wrapper{
		-webkit-perspective: 300px;
		-moz-perspective: 300px;
		-o-perspective: 300px;
		-ms-perspective: 300px;
		perspective: 300px;
	}
	.codrops-top a{
		padding:0 5px;
	}
}
@media screen and (max-width: 767px) {
	.dg-container{
		height:280px;
	}
	.dg-wrapper{
		width:180px;
		height:100px;
		-webkit-perspective: 80px;
		-moz-perspective: 80px;
		-o-perspective: 80px;
		-ms-perspective: 80px;
		perspective: 80px;
	}
	
	.dg-wrapper a img{
		display: block;
		padding:0;
		border:solid 1px #000;
		width:100%;
		height:160px;
	}
	
	.dg-wrapper a div{
		font-style: italic;
		text-align: center;
		line-height: 22px;
		text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
		color: #333;
		font-size: 12px;
		width: 100%;
		bottom: -55px;
		display: none;
		position: absolute;
	}
	
	.container > header{
		padding:20px 10px 10px 10px;
	}
	.codrops-top a{
		width:100%;
		letter-spacing:0;
	}
	.codrops-top span.right{
		float:left;
		width:100%;
	}
}





