
/* removes scroll when modal is opened */
.no-scroll {
    overflow: hidden;
}

/* overlay covers everything */
.modal-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 666;
    background: #000;
    opacity: 0.4;
}

/* modal */
.modal {
    position: fixed;
    left: 0;
    right: 0;
    margin: auto;
    top: 10%;
    max-height: 80%;
    max-height: 80vh;
    width: 800px;
    max-width: 90%;
    background: #fff;
    z-index: 667;
}

.modal-close {
    position: relative;
    z-index: 100;
    float: right;
    font-size: 20px;
    border: none;
    cursor: pointer;
    background: none;
}

.modal img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 80%;
    max-height: 80vh;
    margin: auto;
}
