
body
{
    background-color: rgb(19, 25, 37);
}

/* stop scrolling on gallery when image viewer is open */
body.image-viewer-open
{
    overflow: hidden;
}
p 
{
    font-size: 0.8rem;
}
* /* all */
/* no blue highlights when clicking sth */
{
    -webkit-tap-highlight-color: transparent;
}
a 
{
    text-decoration: none;
    color: aqua;
}
a:visited
{
    color: aqua;
}
/* no white border highlights when using desktop keys coded in JS*/
button:focus,
button:active {
    outline: none;
    box-shadow: none;
}
/* put the copyright to the side, so it doesn't cover the images */
.copyright 
{
    width: fit-content !important;
}

.img-viewer .info
{
    display: none;
}

.gallery
{
    display: flex;
    flex-direction: column;
    align-items: center;

    padding-bottom: 25rem;
}

.gallery .gallery-desc
{
    padding-bottom: 1rem;
    color: rgb(168, 183, 196);
}
.gallery .column
{
    max-width: 70rem;
}
.gallery .column .images
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.thumbnail
{
    cursor: pointer;

    aspect-ratio: 1/1;
    height: 10rem;
    object-fit: cover;

    transition: opacity 0.3s;
}

.thumbnail:active
{
    opacity: 0.6;
}

.img-viewer button
{
    height: 100vh;
    width: 4rem;
    border: none;
    background-color: transparent;
    color: aliceblue;
    cursor: pointer;
}

.img-viewer .prev-button
{
    position: absolute;
    left: 0;
}


.img-viewer .next-button
{
    position: absolute;
    right: 0;
}

.img-viewer button .icon 
{
    height: 2rem;
    width: 100%;
    color: aliceblue;

    transition: color 0.4s, opacity 0.4s;
}

.img-viewer .title 
{
    font-weight: bold;
}

.img-viewer .desc.has-add-desc
{
    padding-bottom: 6rem;
}

/* GENERAL viewer css */
/* added this div so the tooltip info can work,
cuz img-viewer's width kinda changes and it messes with the the position absoulute 
while this div takes the entrie screen */
.img-viewer-div
{
    z-index: 1000;
    display: none;
    position: fixed;
    top: 0;
    height: 100dvh;
    width: 100%;
}

.img-viewer
{
    z-index: 1000;
    display: none;
    position: fixed;
    justify-content: center;
    align-items: center;

    /* gets rid of tiny spaces between the top and left sides of the screen */
    top: 0;
    left: 0;

    height: 100dvh;
    width: 100%;

    background-color: rgba(0, 0, 0, 0.95);
}

.img-viewer .wrapper
{
    display: flex;
    overflow-y: auto;
    flex-direction: column;
    max-height: 100%;
    max-width: 70%;
    
    /* makes sure the scrollbar isn't visible */
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-scrollbar {
    display: none; 
}
}
.img-viewer .wrapper .desc
{
    color: aliceblue;
    height: fit-content;
    max-width: 100%;
}

.img-viewer .wrapper .img-div
{
    /* just put this here, cuz it's empty, but dont wanna the yellow flash for it being empty */
    color: inherit;
}

.img-viewer .wrapper .img-div img
{
    display: block;

    width: 100%;
    height: auto;
    max-height: none;

}

/* TOO VERTICAL viewer css */
.img-viewer.vertical 
{
    z-index: 1000;
    display: none;
    position: fixed;
    justify-content: center;
    align-items: center;

    /* gets rid of tiny spaces between the top and left sides of the screen */
    top: 0;
    left: 0;

    height: 100dvh;
    width: 100%;

    background-color: rgba(0, 0, 0, 0.95);
}

.img-viewer.vertical  .wrapper
{
    display: flex;
    overflow-y: auto;
    flex-direction: column;
    height: 70vh;
    
    /* makes sure the scrollbar isn't visible */
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-scrollbar {
    display: none; 
}
}
.img-viewer.vertical  .wrapper .desc
{
    color: aliceblue;
    height: fit-content;
    max-width: 100%;
}

.img-viewer.vertical  .wrapper .img-div
{
    height: 100%;
}

.img-viewer.vertical  .wrapper .img-div img
{
    display: block;
    height: 100%;
    object-fit: contain;

}


@media (min-width: 1400px) /* Desktop */
{
    .page {
        background-color: rgb(12, 22, 32);
        position: relative;
        margin: 0;
        background-image: none;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: left bottom;
        min-height: 100dvh;
        
    }

    .gallery 
    {
        padding-top: 3rem;
    }

    .gallery .gallery-desc
    {
        padding-bottom: 2rem !important;
        color: rgb(168, 183, 196);
    }

    .gallery .column
    {
        max-width: 80rem;
    }

    .thumbnail
    {
        height: 15rem;

        transition: opacity 0.3s;
    }

    .thumbnail:hover
    {
        opacity: 0.6;
    }


    .img-viewer .info 
    {
        display: inline-block;
        position: absolute;
        top: 4rem;
        left: 4rem;
    }
    .img-viewer .info .icon
    {
        height: 2rem;
        aspect-ratio: 1/1;
        padding: 0.5rem;
        text-align: center;
        color: rgb(110, 123, 134);
    }
   .img-viewer .info .tooltip
    {
        position: absolute;
        width: 30rem;
        background-color: rgb(12, 22, 32);
        padding: 2rem;
        opacity: 0;  

        pointer-events: none;
        transition: opacity 0.3s;
    }
    .img-viewer .info:hover .tooltip
    {
        opacity: 1;
    }


    /* GENERAL viewer css for DESKTOP */
    .img-viewer
    {
        z-index: 1000;
        display: none;
        position: fixed;
        justify-content: center;
        align-items: center;

        /* gets rid of tiny spaces between the top and left sides of the screen */
        top: 0;
        left: 0;

        height: 100dvh;
        width: 100%;

        background-color: rgba(0, 0, 0, 0.95);
    }

    .img-viewer .wrapper
    {
        display: flex;
        overflow-y: auto;
        flex-direction: column;
        max-height: 100vh;
        max-width: 70%;
        
        /* makes sure the scrollbar isn't visible */
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-scrollbar {
        display: none; 
    }
    }
    .img-viewer .wrapper .desc
    {
        color: aliceblue;
        height: fit-content;
        max-width: 100%;

        padding-bottom: 10rem;
    }

    .img-viewer .wrapper .img-div
    {
        display: flex;
        justify-content: center;
        background-color: #0e1820;
        min-width: 60rem;
        height: 100vh;
    }

    .img-viewer .wrapper .img-div img
    {
        display: block;
        width: 100%;
        max-height: none;
        height: auto;
        object-fit: contain;

    }


    /* TOO VERTICAL viewer css */
    .img-viewer.vertical 
    {
        z-index: 1000;
        display: none;
        position: fixed;
        justify-content: center;
        align-items: center;

        /* gets rid of tiny spaces between the top and left sides of the screen */
        top: 0;
        left: 0;

        height: 100dvh;
        width: 100%;

        background-color: rgba(0, 0, 0, 0.95);
    }

    .img-viewer.vertical  .wrapper
    {
        display: flex;
        overflow-y: auto;
        flex-direction: column;
        max-height: 100%;
        height: auto;
        
        /* makes sure the scrollbar isn't visible */
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-scrollbar {
        display: none; 
    }
    }
    .img-viewer.vertical  .wrapper .desc
    {
        color: aliceblue;
        height: fit-content;
        max-width: 100%;

        padding-bottom: 10rem;
    }

    .img-viewer.vertical  .wrapper .img-div
    {
        display: flex;
        justify-content: center;
        background-color: #0e1820;
        min-width: 60rem;
        height: 100vh;
    }

    .img-viewer.vertical  .wrapper .img-div img
    {
        display: block;
        max-height: none;
        width: 100%;
        object-fit: contain;
    }
    

}



