.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;
}
.gallery_pic123 a img{display:block !important; height:100%; width:100%; height:160px !important;}
.galleryhover_overlay, .galleryhover_overlay1  {
    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;
}
.galleryhover_overlay1{display:none;} .gallery_pic123 a:hover .galleryhover_overlay1{display:block; opacity:1;} .gallery_pic123 a{position:relative; display:inline-block; float:none;}
.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: rgba(0, 0, 0, 0.9);
    overflow: hidden;
    text-align: center;
    width: 100%;
    height: 200%;
}

.gallery_image img {
    position: relative;  max-width: 100% !important;
    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: 20px;
    color: #FFFFFF;
    left: 15px;
    position: fixed;
    width: 100%; text-align:center;
    display: block;
    white-space: pre-wrap;
    float: left; left:0 !important; /*background:#000;*/
}

.gallery_captiontext {
    color: #C1C1C1;
    font-size: 16px;
    width: 100% !important;
    display: block;
}

.gallery_captiontext span {
/*float: left;*/ background:rgba(0, 0, 0, 0.7) none repeat scroll 0 0; display:block; padding:10px 0; color:#ffffff;
}

.gallery_social,
#facebook-share,
#twitter-share,
#google-plus-share,
#pinterest-share {
    display: none;
}

.gallery_social {
    position: fixed;
    z-index: 100000;
    right: 20px;
    bottom: 20px;
}

.gallery_social .gallery_socialcontent {
    padding: 10px 5px 5px;
}

.gallery_social .gallery_socialcontent li {
    display: inline-block;
    vertical-align: middle;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1;
}

.gallery_social .gallery_socialcontent li a {
    display: block;
}

.gallery_social .gallery_socialcontent li:first-child {
    margin-right: 15px;
}

.gallery_social .gallery_socialcontent li a svg {
    transition: all .3s ease-in-out;
}

.gallery_social .gallery_socialcontent li a:hover svg {
    cursor: pointer;
    opacity: .7;
}

.gallery_contain_next {
    height: 100%;
    left: 50%;
    position: absolute;
    top: 0;
    width: 50%;

    opacity: 0;
    transition: all 0.3s ease-in-out;
}



@media screen and (-ms-high-contrast: none), (-ms-high-contrast: active) {
.gallery_contain_next {
    background: url("../images/arrowNext.png") no-repeat 96% 50% transparent;
}
.gallery_contain_prev{
	background: url("../images/arrowPrev.png") no-repeat 4% 50% transparent;
}
.gallery_contain_next:hover {
    opacity: 1;
}
.gallery_contain_prev:hover {
    opacity: 1;
}
}



.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 {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 50%;
    
    opacity: 0;
    transition: all 0.3s ease-in-out;
}



.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: 360px) and (max-device-width: 1024px) {
    .gallery_contain_prev {
        background-image: url("../images/arrowPrev.png");
        background-repeat: no-repeat;
        background-position: 10% 50%;
    }
    .gallery_contain_next {
        background-image: url("../images/arrowNext.png");
        background-repeat: no-repeat;
        background-position: 90% 50%;
    }
	.gallery_contain_next, .gallery_contain_prev{opacity:1;}
}


/* 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%;
    }
}

@media (max-width: 991px) {
    .gallery_pic123 a img{height:auto !important;}
}

.desbg h2 {
    margin-top: 10px;
}