.galleries {

}

.galleries a.gallery-album-link{
    float: left;
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-right: 20px;
    margin-bottom: 20px;
    background-color: #FFF;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
    color: #009640;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    border-radius: 8px;
    box-shadow: 1px 1px 5px 0 #B8B8B8;
}
/*
.galleries_view a.gallery-image-link:nth-child(4n+0){
    margin-right: 0px;
}
*/

.galleries a.gallery-album-link img{
    display: none;
}

.galleries a.gallery-album-link span{
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    display: block;
    width: 96%;
    white-space: normal;
    padding: 10px 2%;
    background-color: rgba(255, 255, 255, 0.7);
    position: absolute;
    bottom: 0px;
}


/* View */
.galleries_view {
    text-align: left;
    padding-bottom: 20px;
}

.galleries_view p{
    text-align: center;
}

.galleries_view a.gallery-image-link{
    float: left;
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin-right: 20px;
    margin-bottom: 20px;
    background-color: #FFF;
    white-space: nowrap;
    text-align: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    border-radius: 8px;
    box-shadow: 1px 1px 5px 0 #B8B8B8;
}
/*
.galleries_view a.gallery-image-link:nth-child(4n+0){
    margin-right: 0px;
}
*/

.galleries_view img{
    display: none;
}



/* Popup */
.popup-background {
    background-color: #000000;
    position: absolute;
    display: none;
    width: 500px;
    height: 500px;
    z-index: 1499;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
    filter: alpha(opacity=70);    /* This works in IE 8 & 9 too */
    -moz-opacity:0.70;    /* Older than Firefox 0.9 */
    -khtml-opacity: 0.70; /* Safari 1.x (pre WebKit!) */
    opacity: 0.70;    /* Firefox 0.9+, Safari 2?, Chrome, Opera 9+, IE 9+ */
}



.popup-window {
    background-color: #FFFFFF;
    display: none;
    margin-top: 0px;
    margin-left: 0px;
    position:absolute;
    text-align:center;
    z-index:9999;
    padding: 10px;
    border-radius: 5px;     /*opera chrome*/
    -webkit-border-radius: 5px;    /* for Safari */
    -moz-border-radius: 5px;       /* for Firefox */
    /*shadow*/
    -moz-box-shadow: 0px 0px 15px #333333;
   -o-box-shadow: 0px 0px 15px #333333;
    -webkit-box-shadow: 0px 0px 15px #333333;
    box-shadow: 0px 0px 15px #333333;
}

.popup-window .close{
    background-color: transparent;
    float: right;
    width: 30px;
    height: 30px;
    background-image: url(../img/popup-close.png);
    background-repeat: no-repeat;
    position: absolute;
    z-index: 999;
    top: 5px;
    right: 5px;
}

.popup-window p{
    color: #333333;
    font-size: 16px;
    text-align: center;
}

.popup-window a{
    color: #333333;
    font-size: 16px;
    text-align: center;
    text-decoration: underline;
}

.popup-window img {
    max-width: 280px;
}

/*Buttons*/
.popup-window a.button:link, .popup-window a.button:visited{
    /* background-image: url(../img/popup-alert-button-bg.png);*/
    background-repeat: repeat-x;
    display: inline;
    height: 20px;
    margin: 0px auto;
    padding: 5px 20px;
    color: #9cccff;
    text-decoration: none;
    border-radius: 15px;     /*opera chrome*/
    -webkit-border-radius: 15px;    /* for Safari */
    -moz-border-radius: 15px;       /* for Firefox */
}

.popup-window a.button:hover{
    text-decoration: none;
}


.popup-window .clear{
    clear: both;
}

a.lightbox_gallery_prev_image {
    background-image: url(../img/lightbox-btn-prev_simple.gif);
    background-repeat: no-repeat;
    float: left;
    display: block;
    width: 35px;
    height: 32px;

}

a.lightbox_gallery_next_image {
    background-image: url(../img/lightbox-btn-next_simple.gif);
    background-repeat: no-repeat;
    float: right;
    display: block;
    width: 35px;
    height: 32px;
}


p.lightbox_gallery_image_description {
    float: left;
    text-align: center;
    padding: 6px;
}


p.lightbox_gallery_image_no {
    float: right;
    text-align: center;
    margin-top: 5px;
    padding: 1px 5px;
    font-size: 14px;
    color: #999999;
    border: 1px #DDDDDD solid;
    border-radius: 3px;     /*opera chrome*/
    -webkit-border-radius: 3px;    /* for Safari */
    -moz-border-radius: 3px;       /* for Fi*/
}


/* Mobile large */
@media only screen and (min-width: 380px) {
    .popup-window img {
        max-width: 350px;
    }

}

/* Tablets */
@media only screen and (min-width: 585px) and (orientation: portrait){
    .popup-window img {
        max-width: 550px;
    }

    .galleries a.gallery-album-link{
        width: 46%;
    }
    .galleries_view a.gallery-image-link{
        width: 46%;
    }
}


/* Desktop */
@media only screen and (min-width: 770px) and (orientation: portrait){
    .popup-window img {
        max-width: 650px;
    }

    .galleries a.gallery-album-link{
        width: 100%;
    }
    .galleries_view a.gallery-image-link{
        width: 100%;
    }
}


@media only screen and (min-width: 770px) and (orientation: landscape){
    .popup-window img {
        max-width: 600px;
    }
}

/* Desktop small */
@media only screen and (min-width: 950px) {
    .galleries a.gallery-album-link{
        width: 30%;
    }

    .galleries_view a.gallery-image-link{
        width: 30%;
    }
}

/* Desktop Large*/
@media only screen and (min-width: 1024px) {
    .popup-window img {
        max-width: 800px;
        max-height: 600px;
    }

    .galleries a.gallery-album-link{
        width: 30%;
    }

    .galleries_view a.gallery-image-link{
        width: 30%;
    }
}


