#main {
    font-size: 3vh;
    width: 94vw;
    margin: auto;
    margin-top: 7vh;
}

.cell {
    position: absolute;
    z-index: 4;
    /* background-color: rgba(13, 212, 190, 0.5); */
    cursor: pointer;
}

.cell:hover{
    background-color: rgba(255, 255, 255, 0.7);
}

#viewer{
    position:absolute;
    left: 20%;
    right: 20%;
    height: 90vh;
    width: 60%;
    background-color: white;
    border: solid black 2px;
    z-index: 5;
    display: none;
}

#tr {
    left: 20%;
    right: 20%;
    height: 90vh;
    width: 60%;
    margin: auto;
    position: absolute;
    z-index: 3;
    cursor: auto;
}

div.gal {
    position: relative;
    padding-top: 15vh;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    font-size: large;

    div.picbox {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        text-align: center;

        img {
            margin: auto;
            height: 25vh;
        }

        p {
            text-align: center;
            width: inherit;
        }
    }
}

img {
    margin: auto;
    height: 25vh;
    cursor: pointer;
}

.sub {
    text-align: center;
    width: inherit;
}

h2 {
    text-align: center;
}

/* Modal */

#Modal {
    display: none;
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 10vh;
    z-index: 10;
}

#close {
    font-size: 4vh;
    font-family: Impact;
    font-weight: bolder;
    position: fixed;
    top: 5vh;
    right: 5vw;
    cursor: pointer;
}
#close2 {
    font-size: 4vh;
    font-family: Impact;
    font-weight: bolder;
    position: absolute;
    top: 2vh;
    right: 2vw;
    cursor: pointer;
    z-index: 4;
}
#close2:hover{
    color: darkred;
}

img.modal {
    max-height: 80vh;
    max-width: 50vw;
    height: max-content;
    position: fixed;
    left: 2.5vw;
    right: 42.5vw;
    top: 5vh;
    bottom: 5vh;
}

p.modal {
    position: fixed;
    right: 0;
    top: 50vh;
    transform: translate(0, -50%);
    padding: 1vw;
    width: 38vw;
    font-size: 4vh;
}