

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

main {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 50px;
}


.galleryContainer {
    height: 100vh;
    width: auto;
    background-color: orange;
    display: contents;
    grid-template-columns: repeat(2000px);
    justify-content: center;
    align-content: center;
    /*gap: 5px;*/
    z-index: 99;
    border: 5px solid blue;
    padding: 0px;
    margin: 0px;
}


#topNavBar {
    z-index: 100;
}


.img {
    width: 200px;
    height: 100%;
    /*object-fit: cover;*/
    /*object-position: center center;*/
    background-color: white;
    padding: 5px;
    margin: 0px;
    border-radius: 3px;
    border: 1px solid grey;
    /*transition: border 0.3s;*/
}




figure:hover img {
    border: 5px solid darkviolet;
}


figure { 
    position: relative;
    width: 200px;
    height: 100%;
    display: inline-block;
    padding: 0px;
    margin: 0px;
}


figure img {
    margin: 0px;
    padding: 0px;
}

figure .fig {
    margin: 0px;
    padding: 0px;
}


figcaption {
    position: absolute;
    top: 5px;
    left: 10px;
    right: 10px;
    padding: 0px;
    margin: 0px;
    color: rgb(0, 208, 255);
    color: rgb(187, 0, 208);
    background: white;
    visibility: hidden;
    background: rgba(255, 255, 255, 0.6);
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 2s;
    padding: 5px;
    overflow-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    justify-content: center;
    align-items: center;
}



figure:hover figcaption {
    visibility: visible;
    opacity: 1;
}



#modal {
    background-color: rgba(255, 255, 255, 0.5);
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    z-index: 101;
}


#modal.active {
    display: grid;
    place-items: center;
}


#img {
    max-height: 100vh;
    max-width: 100vw;
    border: 5px solid white;
    box-shadow: 1px 3px 20px rgba(0, 0, 0, 0, 0.5);
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
}




#img:hover {
}






/*-------------------------------------------------------------------------------------------------*/
/* Media screens */
/*-------------------------------------------------------------------------------------------------*/
@media only screen and (max-width: 400px) {
    * {
        font-size: 1em;
    }


    .img {
        width: 25%;
    }


    figure {
        display: contents;
    }

}