#rg-gallery {
    clear: both;

}

#rg-gallery ul li {
	padding-left: 0 !important;
	margin: 0;
}

#rg-gallery ul li::before {
	all: unset !important;
}

.rg-image-wrapper{
	position:relative;
	min-height:20px;
}

.rg-image{
	position:relative;
	text-align:center;
	line-height:0px;
}
.rg-image img{
	/*max-height:100%;*/
	max-width:100%;
        top: 0;
        left: 0;
}


/* ckm.se add fade support */
.rg-image img.new-galimg {
    z-index: 2;
    position: absolute;
}
/* ckm.se end */

.rg-image-nav {
    position: absolute;
    z-index: 5;
    height: 100%;
    
    width: 30px;
}

.rg-navleft {
    left: 0;
}
.rg-navright {
    right: 0;
}

.rg-image-nav a{
	position:absolute;
	top:0px;
	left:0px;
	background: url(../images/nav.png) no-repeat -20% 50%;
	width:28px;
	height:100%;
	text-indent:-9000px;
	cursor:pointer;
	outline:none;
}
.rg-image-nav a.rg-image-nav-next {
	right:0px;
	left:auto;
	background-position:115% 50%;
}

.rg-caption {
	text-align:center;
	margin-top:15px;
	position:relative;
}
.rg-caption p{
	font-size:11px;
	letter-spacing:2px;
	line-height:16px;
	padding:0 15px;
	text-transform:uppercase;
}
.rg-view{
	height:30px;
}
.rg-view a{
	display:block;
	float:right;
	width:16px;
	height:16px;
	margin-right:3px;
	background:#464646 url(../images/views.png) no-repeat top left;
	border:3px solid #464646;
	opacity:0.8;
}
.rg-view a:hover{
	opacity:1.0;
}
.rg-view a.rg-view-full{
	background-position:0px 0px;
}
.rg-view a.rg-view-selected{
	background-color:#6f6f6f;
	border-color:#6f6f6f;
}
.rg-view a.rg-view-thumbs{
	background-position:0px -16px;
}
.rg-loading{
	width:46px;
	height:46px;
	position:absolute;
	top:50%;
	left:50%;
	background:#000 url(../images/ajax-loader.gif) no-repeat center center;
	margin:-23px 0px 0px -23px;
	z-index:100;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	border-radius: 10px;
	opacity:0.7;
}


/* start elastislide */


/* Elastislide Style */
.es-carousel-wrapper{
	position:relative;
        padding: 0 24px;
}
.es-carousel{
	overflow:hidden;
}
.es-carousel ul{
	display:none;
        padding: 0;
}
.es-carousel ul li{
	height:100%;
	float:left;
	display:block;
}
.es-carousel ul li a{
	display:block;
	border-style:solid;
	border-color:#FFF;
	opacity:0.8;
	-webkit-touch-callout:none;
	/* option */
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}
.es-carousel ul li.selected a{
	border-color:#000;
	opacity:1.0;
}
.es-carousel ul li a img{
	display:block;
	border:none;
	max-height:100%;
	max-width:100%;
}
.es-nav span{
	position:absolute;
	top:50%;
	left:0;
	background:transparent url(../images/nav_black.png) no-repeat top left;
	width:14px;
	height:26px;
	margin-top:-13px;
	text-indent:-9000px;
	cursor:pointer;
	opacity:0.8;
}
.es-nav span.es-nav-next {
	right:0;
	left:auto;
	background-position:top right;
}
.es-nav span:hover {
	opacity:1.0;
}

.hidethumbnav .es-nav { display: none; }

.rg-thumbs .hidethumbnav {
    padding-left: 0;
    padding-right: 0;
}