.gallery a.gallery-image-link{
    float: left;
    position: relative;
    width: 100%;
    height: 160px;
    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: 10px;
    box-shadow: 1px 1px 5px 0 #B8B8B8;
}

.gallery a:hover.gallery-image-link{
}

.gallery a.gallery-image-link:nth-child(4n+0){

}

.gallery img{
    display: none;
}

.gallery .gallery-image-zoom {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    top: 0px;
    left: 0px;
    background-image: url(../img/galleries_image_zoom_inverz.svg);
    background-size: 60px;
    background-position: right top;
    background-repeat: no-repeat;
    opacity: 80%;
}

.gallery .title{
    display: none;
    width: 96%;
    white-space: normal;
    text-align: left;
    font-size: 15px;
    line-height: normal;
    background-color: #FFF;
    position: absolute;
    bottom: 0px;
    padding: 2%;
    background: rgba(255,255,255, 0.80)
}


/* 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;
    max-width: 90%;
    max-height: 90%;
    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/lightbox-btn-close.svg);
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    z-index: 999;
    top: 5px;
    right: 5px;
}

.popup-window p{
    color: #333333;
    font-size: 14px;
    text-align: center;
}

.popup-window a{
    color: #333333;
    font-size: 14px;
    text-align: center;
    text-decoration: underline;
}

.popup-window img {
    max-width: 350px;
    max-height: 350px;
}

/*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.svg);
    background-repeat: no-repeat;
    background-size: contain;
    float: left;
    display: block;
    width: 35px;
    height: 32px;

}

a.lightbox_gallery_next_image {
    background-image: url(../img/lightbox-btn-next_simple.svg);
    background-repeat: no-repeat;
    background-size: contain;
    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: 11px;
    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) {


}

/* Tablets */
@media only screen and (min-width: 585px) and (orientation: portrait){
    .gallery a.gallery-image-link{
        width: 48%;
        margin-right: 2%;
    }

    .popup-window img {
        max-width: 500px;
        max-height: 450px;
    }
}

/* Tablet large & Desktop small */
@media only screen and (min-width: 770px) {
    .gallery a.gallery-image-link{
        width: 48%;
        margin-right: 2%;
    }

    .popup-window img {
        max-width: 600px;
        max-height: 450px;
    }
}


/* Desktop */
@media only screen and (min-width: 770px) and (orientation: portrait){
    .popup-window img {
        max-width: 600px;
        max-height: 550px;
    }
}

/* Desktop small */
@media only screen and (min-width: 950px) {
    .gallery a.gallery-image-link{
        width: 31%;
        margin-right: 2%;
    }

    .popup-window img {
        max-width: 800px;
        max-height: 400px;
    }
}

@media only screen and (min-width: 950px) and (orientation: portrait){
    .popup-window img {
        max-width: 800px;
        max-height: 700px;
    }
}

/* Desktop Large*/
@media only screen and (min-width: 1200px) {
    .popup-window img{
        max-width: 900px;
        max-height: 500px;
    }
}

/* Desktop Large*/
@media only screen and (min-width: 1200px) and (orientation: portrait){
    .popup-window img{
        max-width: 900px;
        max-height: 800px;
    }
}




