/*
    Colorbox Core Style:
    The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999999; overflow:hidden;font-size:12px}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
#cboxTitle{margin:0}
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
.cboxIframe{width:100%; height:100%; display:block; border:0;}
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}

/*
    User Style:
    Change the following styles to modify the appearance of Colorbox.  They are
    ordered & tabbed in a way that represents the nesting of the generated HTML.
*/
#cboxOverlay{background:#000;}
#colorbox{outline:0;}
#cboxContent{margin-top:20px;background:#000;}
.cboxIframe{background:#fff;}
#cboxError{padding:50px; border:1px solid #ccc;}
#cboxLoadedContent{border:5px solid #000; background:#fff;}
#cboxTitle{position:absolute; top:-20px; left:0; color:#ccc;}
#cboxCurrent{position:absolute; top:-20px; right:0px; color:#ccc;}
#cboxLoadingGraphic{background:url(../images/mxcploading.gif) no-repeat center center;}

/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; }

/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}

#cboxSlideshow{position:absolute; top:-20px; right:90px; color:#fff;}
#cboxPrevious{position:absolute; top:50%; left:5px; margin-top:-32px; background:url(../images/controls.png) no-repeat top left; width:28px; height:65px; text-indent:-9999px;}
#cboxPrevious:hover{background-position:bottom left;}
#cboxNext{position:absolute; top:50%; right:5px; margin-top:-32px; background:url(../images/controls.png) no-repeat top right; width:28px; height:65px; text-indent:-9999px;}
#cboxNext:hover{background-position:bottom right;}
#cboxClose{position:absolute; top:-19px; right:0; display:block; background:url(../images/controls.png?v=1) no-repeat top center; width:38px; height:19px; text-indent:-9999px;}
#cboxClose:hover{background-position:bottom center;}
@media only screen and (min-width: 1024px) {
.dg-container{
width: 100%;
position: relative;
top:50px;
margin-bottom:130px;}
.dg-container .two-box{}
.dg-container .two-box a{text-decoration:none;color:inherit;width: 342px;
height: 215px;
display: block;
box-shadow: 0px 10px 10px rgba(0,0,0,0.2);}
.dg-container .two-box a div{margin-top:20px}
.dg-container .two-box a:nth-child(1){float:left;text-align:center}
.dg-container .two-box a:nth-child(2){float:right;text-align:center}
.dg-wrapper{
width: 382px;
height: 228px;
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: 382px;
height: 228px;
display: block;
position: absolute;
left: 0;
top: 0;
box-shadow: 0px 10px 10px rgba(0,0,0,0.2);}
.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;}
.dg-wrapper a div{
text-align: center;
text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
color: #777;
font-size: 14px;
width: 100%;
bottom: -45px;
display: none;
position: absolute;}
.dg-wrapper a.dg-center div{display: block;}
.dg-container nav{display:block;}
.dg-container nav span{
position:absolute;
top:0;
cursor:pointer;
height: 215px;}
.dg-container nav span.dg-prev{left:0;}
.dg-container nav span.dg-next{right:0}

.dg-container nav span arrow:before{content:'';display:block;position:absolute;top:95px;width:30px;height:30px;background:#aeaeae;
transform:rotate(45deg);
-ms-transform:rotate(45deg);
-moz-transform:rotate(45deg);
-webkit-transform:rotate(45deg);
-o-transform:rotate(45deg);}
.dg-container nav span arrow:after{content:'';display:block;position:absolute;top:95px;width:30px;height:30px;background:#fff;
transform:rotate(45deg);
-ms-transform:rotate(45deg);
-moz-transform:rotate(45deg);
-webkit-transform:rotate(45deg);
-o-transform:rotate(45deg);}
.dg-container nav span.dg-prev arrow:before{left:40px}
.dg-container nav span.dg-prev arrow:after{left:42px}
.dg-container nav span.dg-next arrow:before{right:40px}
.dg-container nav span.dg-next arrow:after{right:42px}
}