#modal {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.8);
    z-index: 999;
}

#close {
    font-size: 28px;
    float: right;
    color: var(--white-a);
}
#close:hover, #close:focus {
  text-decoration: none;
  cursor: pointer;
}

#modal-content {
    display: flex;
    justify-content: center;
    flex-direction: row-reverse;
    align-items: flex-start;
    margin: auto;
    padding: 5vh;
}

#modal-image {
    max-width: 100%;
    max-height: 90vh;
    height: 90vh;
    object-fit: contain;
    margin-left: 10px;
    margin-right: 10px;
}

@media screen and (orientation: portrait) {
    #modal-image {
        height: auto;
    }
}