  ﻿/*#region content gallery*/

.galleryContainer {
    width: 100%;
    text-align: center;
    line-height: 0;
    display: grid;
    grid-template-columns: 50% 50%;
    -webkit-column-count: 2;
    -webkit-column-gap: 8px;
    -moz-column-count: 2;
    -moz-column-gap: 8px;
    column-count: 2;
    column-gap: 8px;    
    overflow: hidden;
}

.galleryElement {
    margin-bottom: 8px;
    display: inline-block;
    border: 1px solid #e7e7e7;
    width: 100% !important;
    height: auto !important;
}

.galleryElement .caption {
    display:none;
    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: -3rem;
    -ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=100)";
    filter: alpha(opacity=100);
    opacity: 1;
    transition: .25s all ease-in-out
}

.galleryElement img {
    position:relative;
    -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;
    width: 100% !important;
    cursor: pointer;
    float: none !important;
    margin: 0 !important;
    z-index:100;
}

.galleryElement:hover img {
    -webkit-transform: scale(1.25,1.25);
    -moz-transform: scale(1.25,1.25);
    -o-transform: scale(1.25,1.25);
    -ms-transform: scale(1.25,1.25);
    transform: scale(1.25,1.25);
    -ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=0)";
    z-index: 200;
}

.galleryElement:hover .caption {
    z-index: 200;
    bottom: 0;
}
/*#endregion*/


/*#region overlay*/
.galleryOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    display: none;
    z-index: 1600;
}

.galleryOverlayContentContainer {
    background: rgba(0,0,0,.95);
    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: 95%;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
}

.galleryOverlayContent img {    
    width: auto;
    max-width: 800px;
}

#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: #76A226;
    }
.closeGallery {
    color: #FFFFFF;
    font-size: 2rem;
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 100;
}
.closeGallery:hover {
    color: #76A226
}
.imgBig {
    max-width: 100% !important;
    position: relative !important;
    float: none !important;
    position: absolute !important;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.overlayCaption {
    width: 800px;
    max-width: 95%;
    background-color: transparent;
    color: #FFF;
    font-size: 1.5rem;
    text-shadow: 2px 4px 3px rgba(0,0,0,.3);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, 35%);
    transform: translate(-50%, 35%);
    width: 75%;
    height: 75%;
}
/*#endregion*/


/*#region media breaks*/
@media(max-width:800px) {
    .galleryContainer {
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-count: 2;
    }
    #f-prev, #f-next {
        font-size: 3rem;
    }
}

@media(max-width:530px) {
    .galleryContainer {
        -webkit-column-count: 1;
        -moz-column-count: 1;
        column-count: 1;
    }
    #f-prev, #f-next {
        font-size: 2rem;
    }

    .galleryOverlayContent img {
        /*width:800px;*/
        max-width: 95%;
    }
    .overlayCaption {
        font-size: 1rem;
        top: 40%;        
        width: 100%;
    }
}
/*#endregion*/