/* gallery.css */

#preview-container
{
    position: fixed;

    display: grid;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-color: rgba( 0,0,0,0.75 );

    z-index: 9;
}

#preview-img
{
    justify-self: center;
    align-self: center;
    max-width: 90vw;
    max-height: 80vh;
    border: 8px solid #fff;
    margin-top: 2vh;
    grid-row: 1;
    grid-column: 1;
}

.gallery-thmb
{
    transition: opacity ease .2s, width ease .2s , box-shadow ease .2s;
    justify-self: center;
    align-self: center;
    width: 100%;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

.gallery-thmb:hover
{
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    cursor: pointer;
    opacity: 0.5;
    width: 98%;
}

.gallery-arrow
{
    color: #fff;
    font-size: 32px;
    grid-row: 1;
    grid-column: 1;
    transition: opacity .5s ease;
    align-self: end;
    margin: 32px;
    transition: all ease .2s;
}

@media (min-width: 768px)
{
    .gallery-arrow
    {
        align-self: center;
    }
}

.gallery-arrow:hover
{
    cursor: pointer;
    opacity: .5;
    transform: scale(0.8);
}

.gallery-close
{
    color: #fff;
    font-size: 32px;
    grid-row: 1;
    grid-column: 1;
    transition: opacity .5s ease;
    align-self: start;
    justify-self: end;
    margin: 32px;
    transition: all ease .2s;
}

.gallery-close:hover
{
    cursor: pointer;
    opacity: .5;
    transform: rotate(45deg) scale(0.8);
}

.gallery-right
{
    justify-self: end;
}

.gallery-left
{
    justify-self: start;
}

#gallery-txt
{
    grid-row: 1;
    grid-column: 1;
    justify-self: center;
    align-self: end;
    z-index: 3;
    color: #fff;
    margin-bottom: calc(5vh - 16px);
}