.galleryoverlay {
    display: none;
    left: 0;
    position: absolute;
    top: 0;
    z-index: 10000;
}

.gallerycontrolscontrols {
    display: none;
}

#bgLt {
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 190px;
    z-index: 0;
}

#myGallery {
    float: left;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.gallerymontage_wrap {
    padding: 0;
}

#gallerymontage a {
    text-decoration: none;
}

.galleryhover_overlay {
    background: url("../images/zoom_icon.png") no-repeat scroll center center transparent;

    display: block;
    height: 100% !important;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 100% !important;
}

.gallery_wrapper {
    -moz-user-select: none;
    display: none;
    overflow: hidden;
    position: absolute;
    z-index: 10001;
}

.gallery_imagepreloader {
background: url("../images/ajax-loader.gif") no-repeat scroll center center transparent;
display: -webkit-inline-box;
height: 48px;
left: 50%;
position: absolute;
top: 50%;
width: 48px;
margin-left: -24px;
margin-top: -24px;

z-index: 999;
}

.gallery_image {
	background-color: #fff;
    overflow: hidden;
    text-align: center;
    width: 100%;
    height: 100%;
}
.gallery_image img{
    position: relative;
    left: 0 !important;
}



.gallery_image_captionposition {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.gallery_image_imageonly {
    position: absolute;
}

.gallery_image_viewportwidth {
    position: absolute;
    width: 100%;
}

.gallery_image_viewportheight {
    height: 100%;
    position: absolute;
}

.gallery_image_fullviewport {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.gallery_caption {
    background: url("../images/caption_bg.png") repeat scroll 0 0 transparent;
    bottom: 15px;
    color: #FFFFFF;
    left: 15px;
    position: fixed;
    width: auto;
    display: block;
    white-space: pre-wrap;
    float: left;
}

.gallery_captiontext {
color: #C1C1C1;
    font-size: 16px;
    padding: 10px 20px;
    width: 100%;
    display: block;
}


.gallery_captiontext span{
float: left;
}



.gallery_social {
    position: relative;
    z-index: 100000;
}

.gallery_socialcontent {
    background: none repeat scroll 0 0 #FBFBFB;
    left: 20px;
    padding: 10px 5px 5px;
    position: absolute;
    top: 0;
    z-index: 100000;
    display: none;
}

.gallery_contain_next {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAAAAAA6fptVAAAACXZwQWcAAAABAAAAAQDHlV/tAAAAAnRSTlMA/1uRIrUAAAAKSURBVAjXY/gPAAEBAQAbtu5WAAAAAElFTkSuQmCC");
    height: 100%;
    left: 50%;
    position: absolute;
    top: 0;
    width: 50%;
    cursor: url("../images/arrowNext.png"), auto;
}

.gallery_wrapper_next {
    position: relative;
    text-align: right;
    top: 50%;
}

.gallery_wrapper2_next {
    position: relative;
    text-align: right;
    top: -50%;
}

.gallery_item_next {
    background: url("../images/right-cursor.png") no-repeat scroll right center transparent;
    height: 38px;
    position: absolute;
    right: 10px;
    top: -29px;
    width: 38px;
}

.gallery_contain_prev {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAAAAAA6fptVAAAACXZwQWcAAAABAAAAAQDHlV/tAAAAAnRSTlMA/1uRIrUAAAAKSURBVAjXY/gPAAEBAQAbtu5WAAAAAElFTkSuQmCC");
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 50%;
    cursor: url("../images/arrowPrev.png"), auto;
}

.gallery_wrapper_prev {
    position: relative;
    top: 50%;
}

.gallery_wrapper2_prev {
    position: relative;
    top: -50%;
}

.gallery_item_prev {
    background: url("../images/left-cursor.png") no-repeat scroll right center transparent;
    height: 38px;
    left: 10px;
    position: absolute;
    top: -29px;
    width: 38px;
}

.gallery_close {
    background: url("../images/close.png") no-repeat scroll right top transparent;
    cursor: pointer;
    height: 96px;
    position: absolute;
    right: 15px;
    top: 15px;
    width: 96px;

}
/* iPad Landscape Only */
@media only screen and (min-device-width : 768px)  and (max-device-width : 1024px){
    .gallery_contain_prev{
        background-image: url("../images/arrowPrev.png");
        background-repeat: no-repeat;
        background-position: 5% 50%;
    }
    .gallery_contain_next{
        background-image: url("../images/arrowNext.png");
        background-repeat: no-repeat;
        background-position: 95% 50%;
    }

}

/* GALLERY CATEGORY
*********************************************************** */

.grid {
	background-position: center center;
	background-repeat: no-repeat;
}
.grid *{
	box-sizing: border-box;
}
.grid .grid-item {
	position: relative;
	float: left;
	width: 33.3%;
	padding: 5px;
}
.grid .grid-item a {
	display: block;
}
.grid .grid-item a figure {
	overflow: hidden;
}
.grid .grid-item a figure img {
	width: 100%;
	max-width: 100%;
	-webkit-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}
.grid .grid-item a figure:hover img {
	-webkit-transform: scale(1.05);
	-ms-transform: scale(1.05);
	transform: scale(1.05);
	opacity: 0.85;
}
.grid .grid-item.grid-item-filter {
	text-align: center;
}
.grid .grid-item.grid-item-filter .filter-inner {
	display: table;
	height: 100%;
	width: 100%;
}
.grid .grid-item.grid-item-filter .filter-inner .filter-inner-content {
	display: table-cell;
	vertical-align: middle;
}
.grid .grid-item.grid-item-filter .filter-inner .filter-inner-content ul {
	padding-left: 0;
	list-style: none;
}
.grid .grid-item.grid-item-filter .filter-inner .filter-inner-content ul li {
	text-transform: uppercase;
}

.grid .grid-item.grid-item-filter .filter-inner .filter-inner-content ul li.active a{
	text-decoration: underline;
}

.grid .grid-item.grid-item-filter .filter-inner .filter-inner-content ul li a:hover {
	opacity: 0.7;
}

@media only screen and (min-width : 1280px)  and (max-width : 1680px){
	.grid .grid-item {
		width: 25%;
	}
}

@media only screen and (min-width : 1680px) {
	.grid .grid-item {
		width: 20%;
	}
}