/*----------Gallery Specific Formatting----------*/
.page-gallery {
    min-height: 100%;
}

.gallery-grid{
    margin: 1em auto;
    display: grid;
    grid-template-columns: 80%;
    grid-gap: 1em;
    justify-content: center;
}

.gallery-item {
    position: relative;
    opacity: 0.9;
    padding-bottom: 90%;
    cursor: pointer;
}

.gallery-item:after {
    content: "";
    padding-bottom: 80%;
}

.gallery-item:hover {
    background-color: rgb(40,40,40);
}

.gallery-item img {
    position: absolute;
    max-width: 95%;
    max-height: 95%;
    margin: auto;
    left:0;
    right:0;
    top:0;
    bottom:0;
}

/*Media  Queries to set number of rows and cols*/
@media only screen and (min-width: 700px) and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: 40% 40%;
    }

    .gallery-item:after {
        padding-bottom: 40%;
        opacity: 0.9;
        content: "";
    }
}

@media only screen and (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: 30% 30% 30%;
    }

    .gallery-item:after {
        padding-bottom: 30%;
        content: "";
    }
}




.img-viewer {
    position: fixed;
    opacity: 1;
    max-width: 95%;
    max-height: 95%;
    z-index:1;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    /*padding-top: 30px;*/
}

.img-full-size {
    position: absolute;
    margin: 30px auto 30px;
    left: 0;
    right: 0;
    top: 30px;
    max-width: 95%;
    max-height: calc(95% - 60px);
}


.exit-img-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 15px;
    cursor: pointer;
}








