:root {
    --primaryColor: #005a8d;
}

/* images */
.screenshot, .modal-content {
    border-radius: 10px;
    cursor: -moz-zoom-in;
    cursor: -webkit-zoom-in;
    cursor: zoom-in;
    transition: 0.2s;
}

/* extra zoom */
.zoomed-in {
    cursor: -moz-zoom-out;
    cursor: -webkit-zoom-out;
    cursor: zoom-out;
    transition: 0.2s;
}

/* background */
.modal {
    display: none;

    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;

    width: 100%;
    height: 100%;
    overflow: auto;

    background-color: rgba(0, 0, 0, 0.6);
}

/* image in modal */
img#modalImage.modal-content {
    display: block;
    max-width: 80%;
    max-height: 80%;

    margin: 15px;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 0px 5px 5px rgb(0 0 0 / 12%),
                0px 0px 10px 10px rgb(0 0 0 / 9%),
                0px 0px 15px 20px rgb(0 0 0 / 7%);
}

.modal-content {
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }
    to {
        transform: scale(1)
    }
}

/* close button */
.close {
    color: white;
    font-size: 40px;
    transition: 0.2s;
}

.close:hover,
.close:focus {
    color: var(--primaryColor);
    text-decoration: none;
    cursor: pointer;
}

/* div to wrap the image and close button */
.modal-wrapper {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: center;
    margin: auto;
}
