.gallery-section-wrapper{
	width:642px;
	height:260px;
	padding: 8px 0;
    overflow: hidden;
}
.gallery-section-wrapper .flexslider{
	width: 642px;
}
.gallery-section-wrapper .flexslider .slides li{
	width:306px;
	height:260px;
	text-align: center;
	margin-right:30px;
    position: relative;
}
.flexslider .slides li{
    text-align: center;
    position: relative;
}
.gallery-section-wrapper .flexslider .slides li a{
	width:306px;
	height:228px;
	display: table-cell;
	vertical-align: middle;
    position: relative;
    background: #ebebeb;
}
/*.flexslider:hover .flex-next {
    background-position: -18px -30px !important;
}
.flex-next:hover{
    opacity: 0 !important;
    background-position: -18px -30px;
    right: 0;
    top: 104px;
    background-color: black;
    background-size: 42px;
    height: 40px;
}*/
#slider-lightbox .flex-direction-nav .flex-next, #lightbox-flexslider  .flex-direction-nav .flex-next{
    right: 0px;
    background: url(/public/images/gallery-carousel-sprite.png) no-repeat -80px -34px !important;
    height: 75px;
    width: 30px;
}
.gallery-section-wrapper .flex-direction-nav .flex-next {
    right: 0px;
    background: url(/public/images/gallery-carousel-sprite.png) no-repeat -80px -53px !important;
    width:30px;
    height: 36px;
}
.gallery-section-wrapper .flex-direction-nav .flex-next:hover {
    right: 0px;
    background: url(/public/images/gallery-carousel-sprite.png) no-repeat  -162px -53px !important;
}
#lightbox-flexslider  .flex-direction-nav .flex-next:hover{
    right: 0px;
    background: url(/public/images/gallery-carousel-sprite.png) no-repeat  -162px -34px !important;
    height: 75px;
    width: 30px;
}
#slider-lightbox .flex-direction-nav .flex-prev, #lightbox-flexslider  .flex-direction-nav .flex-prev {
    background: url(/public/images/gallery-carousel-sprite.png) no-repeat -37px -34px !important;
    height: 75px;
    width: 30px;
}
#lightbox-flexslider  .flex-direction-nav .flex-prev:hover {
    background: url(/public/images/gallery-carousel-sprite.png) no-repeat -119px -34px !important;
    height: 75px;
    width: 30px;
}

.gallery-section-wrapper .flex-direction-nav .flex-prev {
    background: url(/public/images/gallery-carousel-sprite.png) no-repeat -37px -53px !important;
    width:30px;
    height: 36px;
}
.gallery-section-wrapper .flex-direction-nav .flex-prev:hover {
    background: url(/public/images/gallery-carousel-sprite.png) no-repeat -119px -53px !important;
}
#lightbox-flexslider-carousel .flex-direction-nav .flex-next{
    background: url(/public/images/thumnail-scrolling_normal.png) no-repeat -44px 0px !important;
    height: 75px;
    top: 32px;
    margin-right: 5px;
    width: 30px;
}
#lightbox-flexslider-carousel .flex-direction-nav .flex-prev{
    background: url(/public/images/thumnail-scrolling_normal.png) no-repeat 0px 0px !important;
    height: 75px;
    top: 27px;
    margin-left: 5px;
    width: 30px;
}
.lightbox{
    top:12px !important;
    position: fixed !important;
}
#lightbox-flexslider-carousel .flex-direction-nav .flex-next{
    right: 0px;
    /*top: 40px;*/
    background: url(/public/images/thumnail-scrolling_normal.png) no-repeat -41px 0px !important;
}
#lightbox-flexslider  .flex-direction-nav .flex-prev {
    left: 5px !important;
}
#lightbox-flexslider-carousel .flex-direction-nav .flex-next:hover{
    background: url(/public/images/thumnail-scrolling_hover.png) no-repeat -41px 0px !important;
}
#lightbox-flexslider-carousel .flex-direction-nav .flex-prev:hover{
    background: url(/public/images/thumnail-scrolling_hover.png) no-repeat 0px 0px !important;
}
#lightbox-flexslider-carousel .flex-direction-nav .flex-next{
    right: 0px;
    height: 75px;
    background: url(/public/images/thumnail-scrolling_normal.png) no-repeat -41px 0px !important;
    top:27px;   
}
.lightbox-wrapper{
    z-index:100000 !important;
}
.lightbox{
    box-shadow: 0 0 10px -1px #000000 !important;
}
#lightbox-flexslider  .flex-direction-nav .flex-next{
    right: 5px !important;
}
#lightbox-flexslider-carousel> .flex-viewport{
    margin:0px 40px;
}

.gallery-section-wrapper .flex-direction-nav .flex-prev {
    left: 0;
    top: 130px;
}
#gallery-wrap{
	margin-right: 30px;
}

.subheading {
    font-size: 18px;
    margin: 20px 0 8px;
}

#maincontainer #content .leftdiv {
    float: left;
    margin-right: 20px;
    width: 660px;
}
#maincontainer #content .leftdiv{
	width: 642px;
}

.right-panel.onecol {
    float: right;
    margin-top: 46px;
}

#slider-lightbox .lb-header {
    background: none repeat scroll 0 0 #D6D6D6;
    color: #000000;
    height: 40px;
    line-height: 40px;
    text-align: left;
    padding-left:10px;
    font-weight: bold;
    font-size:14px;
}
#slider-lightbox .flexslider {
    background: none repeat scroll 0 0 #FFFFFF;
    padding: 0px 5px;
    width: 642px;
}
#lightbox-flexslider .slides a{
    width:642px;
    height: 482px;
    display: table-cell;
    vertical-align: middle;
    float: none !important;
    position: relative;
}
#lightbox-flexslider .flex-slide-margin .locality-gallery-tooltip{
    width: 99.5% !important;
    top: 482px !important;
    margin-left: 0px;
    padding-left: 3px;
}
.lightbox-wrapper.active>.lightbox.active{
    display: inline-block !important;
}
.lightbox-wrapper>.lightbox.active{
    display: none !important;
}
.lightbox{
    min-height: 642px !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
       -webkit-animation: fadein 1s; /* Safari and Chrome */
       -moz-animation: fadein 1s; /* Firefox */
        -ms-animation: fadein 1s; /* Internet Explorer */
         -o-animation: fadein 1s; /* Opera */
            animation: fadein 1s;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Firefox */
@-moz-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Safari and Chrome */
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}​

/* Opera */
@-o-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}​
#lightbox-flexslider .flex-slide-margin{
    margin-top: 5px;
    position: relative;
    background-color: #ebebeb;

}
#lightbox-flexslider .flex-slide-margin {
    margin-top: 5px;
    position: relative;
    background-color: #ebebeb;
    height: 512px;
}
#lightbox-flexslider-carousel .slides a{
    width:100px;
    height:80px;
    padding:5px 5px 5px;
    display: table-cell;
    vertical-align: middle;
    float: none !important;
}
#lightbox-flexslider .slides a{
    /*bottom: 3.5%;
    top: 5px !important;*/
}
#lightbox-flexslider-carousel .slides img{
    width:100%;
    height: 75px;
}
#slider-lightbox .flex-direction-nav .flex-next {
    background-position: -37px 0;
    right: 0;
}

#slider-lightbox .flex-direction-nav .flex-prev {
    left: 0;
}
.lightbox-catagory {
    float: right;
    height: 30px;
    line-height: 30px;
    margin-right: 40px;
    margin-top: 5px;
    padding: 5px;
    min-width: 100px;
    border-radius: 3px;
    color: #999;
    border: solid 1px #999;
}
.lightbox-wrapper{

    position:fixed !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}
.locality-gallery-tooltip {
    /*background: black;*/
    width: 97%;
    position: absolute;
    top: 228px;
    left: 0px;
    height: 30px;
    color: white;
    line-height: 30px;
    font-weight: bold;
    text-align: left;
    padding-left: 8px;
    font: 14px arial;
    line-height: 30px;
    margin-left: 1px;
   /* -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
    filter: alpha(opacity=60);
    -moz-opacity:0.6;    
    -khtml-opacity: 0.6;
    opacity: 0.6;*/
    background: url('/public/images/rehome-slider-images/slider_bottomBG.png') repeat-x 0px 0px;
}
.popup-close {
    display: inline-block;
    height: 44px;
    width: 32px !important;
    margin-left: 12px;
    background: url(/public/images/gallery-carousel-sprite.png) no-repeat -50px -107px !important;
    margin-top: -4px;
}
.popup-close:hover {
    background: url(/public/images/gallery-carousel-sprite.png) no-repeat -74px -107px !important;
}
.gallery-section-wrapper img{
}
.lightbox.active {
    margin-top: 0px !important;
}
.gallery-section-wrapper .flex-disabled, #lightbox-flexslider .flex-disabled, #lightbox-flexslider-carousel .flex-disabled{
    opacity: 1 !important;
}
#lightbox-flexslider ul>li>a>img{
    max-height: 482px;
 }
