/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--main-bg-clr);
}

.close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 50px;
    font-weight: bold;
}
  
.close:hover,
.close:focus {
    color: var(--main-font-clr);
    text-decoration: none;
    cursor: pointer;
}

/* Hide the slides by default */
.mySlides {
    display: none;
    height: 100%;
}
  
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px; 
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}
  
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
 
/* Number text (1/3 etc) */
.numbertext {
    color: var(--main-font-clr);
    font-size: 20px;
    padding: 8px 12px;
    top: 0;
    text-align: center;
    height: 100%;
    vertical-align: middle;
}

.lightbox_img {
    margin-top: auto;
    margin-bottom: auto;
    vertical-align: middle;
}

#lightbox_slides {
    margin: auto;
}

#caption-container {
    display: grid;
    width: 764px;
    grid-template-columns: 50% 50%;
    gap: 2px;
}

.modal-content {
    margin: auto;
    display: grid;
    width: var(--root-page-width);
    grid-template-columns: 50% 50%;
    grid-template-rows: 100%;
    height: 100%
}

@media only screen and (max-width: 900px) {
    /*
    body {
        width: 100vw;
    }
    */
    #myModal {
        width: 100vw;
        height: 100vh;
    }
    #caption-container {
        display: none;
    }
    .modal, .modal-content {
        width: 100vw;
        height: 100vh;
    }
    .mySlides, img.lightbox_img {
        width: 95vw;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }
    .numbertext {
        width: 100%;
    }
}