.galleryOverlay
{
    position: fixed; 
    width: 100%; 
    height: 100%; 
    top: 0px; 
    left: 0px;     
    display: none;
    z-index: 600;            
}

.galleryOverlayContentContainer {
    background: rgba(0,0,0,.85);
    width: 100%;
    margin: auto;
    height: 100%;
    position: relative
}

.galleryOverlayContent {
    margin: 0;   
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 75%;
    height:75%;
    cursor:pointer;
    text-align:center;
}

    .galleryOverlayContent img {
        width:800px;
        max-width:98%;
    }

#f-prev {
    position:absolute;
    top:40%;
    left:1rem;
    font-size:5rem;
    color:#fff;
}
#f-next {
    position: absolute;
    top: 40%;
    right: 1rem;
    font-size: 5rem;
    color: #fff;
}
    #f-prev:hover, #f-next:hover {
        color: #13426B
    }

.closeGallery {
    color: #FFFFFF;
    font-size: 2rem;
    position: fixed;
    top: 30px;
    right: 30px;
    z-index:100;
}
    .closeGallery:hover {
        color: #13426B
    }
        
    .imgBig
    {
        width:100%;
        max-width:1000px;
        position:relative;
    }
    .overlayCaption {
        width: 800px;
        max-width: 95%;
        background-color: transparent;
        color: #FFFFFF;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        padding: 15px;
    }
        
.galleryContainer
{  
    width:100%;   
    text-align:center;
}
.galleryElement
{
    margin:20px;    
    width: 288px;
    /*height: 150px;*/
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    overflow: hidden;
    position: relative;
   /* border: 1px solid #595A5C;*/
    margin-left: -1px;
    margin-top: -1px;
    max-width:100%
}
.galleryElement .caption 
{
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.8);
    width: 100%;
    padding: 10px;
    z-index: 0;
    position:absolute;
    bottom:0px;
    -ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=100)";
    filter: alpha(opacity=100);
    opacity: 1;
}
        
.galleryElement img
{
    -webkit-transform: scaleY(1);
    -moz-transform: scaleY(1);
    -o-transform: scaleY(1);
    -ms-transform: scaleY(1);
    transform: scaleY(1);
    -webkit-transition: all 0.7s ease-in-out;
    -moz-transition: all 0.7s ease-in-out;
    -o-transition: all 0.7s ease-in-out;
    -ms-transition: all 0.7s ease-in-out;
    transition: all 0.7s ease-in-out; 
    height:100%;
    width:100%;
    
    cursor:pointer;
}
        
.galleryElement:hover img
{    
    -webkit-transform: scale(2,2);
    -moz-transform: scale(2,2);
    -o-transform: scale(2,2);
    -ms-transform: scale(2,2);
    transform: scale(2,2);
    -ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=0)";
    opacity: 0.5;
    filter: alpha(opacity=50); /* For IE8 and earlier */  
   
}
        
.galleryElement:hover .caption
{   
    z-index:200; 
}

@media(max-width:1023px) {
    .closeGallery {
        top:90px;
    }
    .imgBig {
        top:100px;
    }
}
@media(max-width:530px) {
    #f-prev, #f-next {
        font-size:2rem;
    }
}