/* ----------------------------------------- */
/* -------- W3Schools Modal Image ---------- */
/* ----------------------------------------- */
.galleryImg {
    position: relative;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.galleryImg:hover {
    opacity: 0.5;
}

/* Zoom icon on hover */
.zoomText {
    opacity: 0;
    color: rgb(82, 75, 80);
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.galleryImg:hover+.zoomText {
    opacity: 1;
    transition: 0.3s;
}

/* The Modal (background) */
.image-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1021 !important;
    /* Sit on top */
    padding-top: 80px;
    padding-bottom: 40px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow-y: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.9);
    /* Black w/ opacity */
}

/* Modal Content (image) */
.image-modal-content {
    margin: auto;
    display: block;
    width: 100%;
    max-width: 700px;
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    font-size: 24px;
    text-align: center;
    color: #fff;
    padding-bottom: 20px;
    /* height: 150px; */
}

/* Add Animation */
.image-modal-content,
#caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

/* The Close Button */
.closeModal {
    position: absolute;
    top: 10px;
    right: 10px;
    /* color: #f1f1f1; */
    font-size: 2rem;
    font-weight: bold;
    transition: 0.3s;
}

.closeModal:hover,
.closeModal:focus {
    /* color: #bbb; */
    text-decoration: none;
    cursor: pointer;
    outline: none;
}

@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(0)
    }

    to {
        -webkit-transform: scale(1)
    }
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
    .image-modal-content {
        width: 100%;
    }
}