﻿
* {
    box-sizing: border-box;
}

body {
    margin: 5px;
    position: relative;
}

#gallery {
    display: grid;
    height: calc(100vh - 10px);
    grid-template: repeat(20, 15%)/repeat(5, 15%);
    grid-gap: 0.5em;
}

@media (max-width: 500px) {
    #gallery {
        display: flex;
        align-items: flex-start;
        flex-wrap: wrap;
        justify-content: center;
    }

        #gallery > div {
            width: 48%;
            margin: 1%;
        }
}

@media (max-width: 600px) and (max-width: 350px) {
    #gallery > div {
        width: 58%;
    }
}

/*#gallery > div:nth-child(8n+1) {
    grid-column: span 1;
    grid-row: span 1;
}

#gallery > div:nth-child(5) {
    grid-column: span 2;
    grid-row: span 2;
}

#gallery > div:nth-child(10) {
    grid-column: span 3;
    grid-row: span 3;
}

#gallery > div:nth-child(12) {
    grid-column: span 1;
    grid-row: span 1;
}

#gallery > div:nth-child(14) {
    grid-column: span 2;
    grid-row: span 2;
}

#gallery > div:nth-child(16) {
    grid-column: span 4;
    grid-row: span 4;
}

#gallery > div:nth-child(26) {
    grid-column: span 2;
    grid-row: span 2;
}

#gallery > div:nth-child(29) {
    grid-column: span 2;
    grid-row: span 2;
}

#gallery > div:nth-child(31) {
    grid-column: span 2;
    grid-row: span 2;
}*/

#gallery > div > a {
    opacity: 0;
    position: absolute;
    color: #000;
    background-color: #000;
    font: bold 4em "Helvetica";
    text-shadow: 0 -1px 5px #fff, -1px 0px 5px #fff, 0 1px 5px #fff, 1px 0px 5px #fff;
    padding: 2rem;
    mix-blend-mode: difference;
    width: 70%;
    height: 70%;
    transition: all ease 1s;
}

#gallery > div > img {
    width: 100%;
    min-height: 100%;
    transition: all ease 1s;
}

#gallery > div:hover img {
    filter: blur(4px);
}

#gallery > div:hover a {
    opacity: 1;
}

#gallery > div {
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2), 0 3px 20px 0 rgba(0, 0, 0, 0.19);
}

#gallery div,
#gallery a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

[id^=lightbox-] {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    opacity: 0;
    transition: opacity 450ms ease-in-out;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

    [id^=lightbox-]:target {
        opacity: 1;
        pointer-events: inherit;
    }

        [id^=lightbox-]:target img {
            filter: blur(0);
        }

    [id^=lightbox-] .content {
        max-width: 70%;
        position: relative;
        color: #fff;
    }

        [id^=lightbox-] .content:hover > a.close {
            opacity: 1;
            transform: scale(1, 1);
        }

        [id^=lightbox-] .content:hover > .title {
            opacity: 1;
            transform: translateY(-3px);
        }

            [id^=lightbox-] .content:hover > .title::after {
                opacity: 1;
            }

        [id^=lightbox-] .content > * {
            transition: all 450ms ease-in-out;
        }

    [id^=lightbox-] .title {
        display: block;
        margin: 0;
        padding: 1em;
        position: absolute;
        bottom: 0;
        width: 100%;
        transform: translateY(50%);
        font-size: 1.5em;
        opacity: 0;
        color:white;
    }

        [id^=lightbox-] .title::after {
            content: " ";
            background-color: rgba(0, 0, 0, 0.4);
            bottom: 0;
            left: 0;
            height: 70%;
            width: 70%;
            position: absolute;
            transition: all 350ms ease-in-out 250ms;
            opacity: 0;
            transform-origin: bottom;
            mix-blend-mode: soft-light;
        }

    [id^=lightbox-] img {
        max-height: 90vh;
        max-width: 70%;
        margin: 0;
        padding: 0;
        filter: blur(50px);
    }

    [id^=lightbox-] a.close {
        width: 2em;
        height: 2em;
        position: absolute;
        left:70% ;
        top: 0;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: scale(0, 0);
        opacity: 0;
        /*transform-origin: right top;*/
        text-decoration: none;
        color: #fff;
    }

        [id^=lightbox-] a.close::after {
            content: "X";
        }

#MainContent_RadioButtonList1 td {
    width: 150px;
}

.lineTime {
    border-radius: 0;
    padding: 5px;
    color: white;
    font-weight: bold;
    /*height: calc(65vh - 10px);*/
}




.gallery-wrap {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 60vh;
}

.small-gallery {
    flex: 1;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: none;
    transition: flex 0.8s ease;
}

    .small-gallery:hover {
        flex: 7;
    }

label {
    padding-left: 5px;
    font-size: 14px;
    font-weight: bold;
    text-transform: capitalize;
    display: math;
}

#MainContent_RadioButtonList1.td {
    width: 25%;
}

