﻿.gallery-body {
    font-family: Arial, sans-serif;
    text-align: center;
    max-width: 1170px;
    margin: 3rem auto;
    box-sizing: border-box;
    color: #fff;
    float: none;
}

.gallery-h1 {
    margin-bottom: 3rem;
}

.images {
    width: 85%;
    margin: 0 auto;
    display: grid;
    grid-gap: 7.5px;
    grid-template-columns: 25% 25% 25% 25%;
    align-content: center;
    align-items: baseline;
}

.image_style {
    height: 200px;
    max-width: 250px;
    zoom: 100%;
}

@media (max-width: 485px) {
    .images {
        grid-template-columns: 50% 50%;
    }

    .mobile_width {
        width: 80%;
    }

    .image_style {
        height: 160px;
        max-width: 250px;
        zoom: 100%;
    }
}

.template {
    transition: all 0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955);
    opacity: 0;
    position: relative;
}

.imgoverlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: #005a7380;
}

.template:hover .imgoverlay {
    opacity: 1;
}

.template p {
    color: white;
    position: absolute;
    bottom: 8px;
    left: 10px;
    font-size: 11px;
}

.template.animate {
    transform: scale(1);
    opacity: 1;
}

    .template.animate:hover .imgoverlay {
        opacity: 1;
    }

#gallery-pagination {
    margin: 30px 0;
}

#btnNext,
#btnPrevious {
    background: transparent;
    color: #609ea5;
    padding: 8px 28px;
    border: 0;
    font-size: 18px;
    cursor: pointer;
    outline: none;
}

#gallery-pagination #page {
    margin-left: 15px;
    margin-right: 15px;
    color: #707070;
    font-style: italic;
    font-size: 13px
}

.modal_text {
    margin-top: 15px;
    color: #005a73;
    font-weight: bolder;
}

.sr-only {
    position: absolute !important;
    overflow: hidden;
    clip: rect(0 0 0 0);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
}

#gallery-dots {
    margin-bottom: 15px
}

.gallery-dot {
    background: #609ea5;
    border: 0;
    padding: 0;
    width: 50px;
    height: 8px;
    margin: 5px;
    opacity: 0.4;
    outline: none;
    cursor: pointer;
}

    .gallery-dot.active {
        opacity: 1;
    }

#gallery-pagination {
    display: grid;
}

.ui-button .ui-icon {
    position: absolute;
    font-family: 'FontAwesome';
    top: 0;
    left: 10px;
    content: "\f005";
}