@-webkit-keyframes openabout {
    0% {
        max-height: 0;
        opacity: .3;
    }

    33% {
        opacity: 1
    }

    to {
        max-height: 2000px;
        opacity: 1;
    }
}

@keyframes openabout {
    0% {
        max-height: 0;
        opacity: .3;
    }

    33% {
        opacity: 1
    }

    to {
        max-height: 2000px;
        opacity: 1;
    }
}

@-webkit-keyframes closeabout {
    0% {
        max-height: 2000px;
        opacity: 1;
    }

    to {
        max-height: 0;
        opacity: .3;
        margin-bottom: 0
    }
}

@keyframes closeabout {
    0% {
        max-height: 100vh;
        opacity: 1;
    }

    to {
        max-height: 0;
        opacity: .3;
        margin-bottom: 0
    }
}

@-webkit-keyframes opengallery {
    0% {
        max-height: 0;
        opacity: .3;
    }

    33% {
        opacity: 1
    }

    to {
        max-height: 2500px;
        opacity: 1;
    }
}

@keyframes opengallery {
    0% {
        max-height: 0;
        opacity: .3;
    }

    33% {
        opacity: 1
    }

    to {
        max-height: 2500px;
        opacity: 1;
    }
}

@-webkit-keyframes closegallery {
    0% {
        max-height: 2500px;
        opacity: 1;
    }

    to {
        max-height: 0;
        opacity: .3;
        margin-bottom: 0
    }
}

@keyframes closegallery {
    0% {
        max-height: 100vh;
        opacity: 1;
    }

    to {
        max-height: 0;
        opacity: .3;
        margin-bottom: 0
    }
}

@-webkit-keyframes opencredits {
    0% {
        max-height: 0;
        opacity: .3;
    }

    33% {
        opacity: 1
    }

    to {
        max-height: 1500px;
        opacity: 1;
    }
}

@keyframes opencredits {
    0% {
        max-height: 0;
        opacity: .3;
    }

    33% {
        opacity: 1
    }

    to {
        max-height: 1500px;
        opacity: 1;
    }
}

@-webkit-keyframes closecredits {
    0% {
        max-height: 1500px;
        opacity: 1;
    }

    to {
        max-height: 0;
        opacity: .3;
        margin-bottom: 0
    }
}

@keyframes closecredits {
    0% {
        max-height: 100vh;
        opacity: 1;
    }

    to {
        max-height: 0;
        opacity: .3;
        margin-bottom: 0
    }
}

.box-video-container {
    max-width: 1100px;
    margin: auto;
    padding: 0 15px;
    z-index: 20!important;

    .box-no-video,.box-video {
        display: block;
        position: relative;
        width: 100%;
        cursor: pointer;
        overflow: hidden;
        box-shadow: 0 0 30px #00000066;

        .video-container-16by9,.video-container-2_35by1,.video-container-2by1,.video-container-4by3 {
            position: relative;
            width: 100%;
            height: 0;
            margin: 0;
            z-index: 1;
            display: block;

            iframe {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                z-index: 20!important;
                -webkit-box-shadow: 0 0 15px 1px #040404;
                box-shadow: 0 0 15px 1px #040404
            }
        }

        .video-container-16by9 {
            padding-top: 56.25%
        }

        .video-container-2by1 {
            padding-top: 50%
        }

        .video-container-4by3 {
            padding-top: 75%
        }

        .video-container-2_35by1 {
            padding-top: 42.55319%
        }
    }

    .box-no-video {
        cursor: default
    }
}

.main-img-div {
    max-width: 1100px;
    margin: auto;
    padding: 0 15px;

    .main-img {
        width: 100%;
        display: block;
        box-shadow: 0 0 20px #000000aa
    }
}

.video-subtitle-container,.video-subtitle-mobile {
    max-width: 1100px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    column-gap: 7px;
    row-gap: 5px;

    p,span {
        margin: 0;
        color: var(--subtitle)
    }

    p a {
        color: var(--subtitle)!important
    }

    p a:hover {
        color: var(--accent)!important
    }
}

.video-subtitle-container {
    padding: 0 15px;
    margin: 15px auto 20px;
    -webkit-box-pack: right;
    -ms-flex-pack: right;
    justify-content: right;

    @media only screen and (max-width:700px) {
        display: none
    }
}

.project-metadata {
    display: flex;
    max-width: 1100px;
    padding: 0 15px;
    margin: 15px auto 20px;
    justify-content: space-between;

    .left,.right {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        column-gap: 7px;
        row-gap: 5px;
    }

    p,span {
        margin: 0;
        color: var(--subtitle)
    }

    p a {
        color: var(--subtitle)!important
    }

    p a:hover {
        color: var(--accent)!important
    }

    @media only screen and (max-width:700px) {
        display: none
    }
}

.video-subtitle-mobile {
    margin: 0 auto 20px;
    padding: 15px;
    background: var(--head);
    border-radius: 5px;

    @media only screen and (min-width:700px) {
        display: none;
    }
}

@media only screen and (min-width: 700px) {
    .about-mobile-title,.gallery-mobile-title,.credits-mobile-title {
        display: none!important
    }
}

@media only screen and (max-width: 700px) {
    #about-desk-title,#gallery-desk-title,#credits-desk-title {
        display: none!important
    }
}

#about-desk-title,#gallery-desk-title,#credits-desk-title {
    .about-title,.gallery-title,.credits-title {
        margin: 80px 15px 25px;
        text-align: center
    }
}

.about-mobile-title,.gallery-mobile-title,.credits-mobile-title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin: 0 15px;
    border-bottom: solid 2px var(--menu);

    .about-title-flex-container,.gallery-title-flex-container,.credits-title-flex-container {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        width: calc(100% - 55px);
        text-decoration: none;
        color: var(--font);
        -webkit-transition: .3s;
        -o-transition: .3s;
        transition: .3s;
        height: 80px;

        .about-title,.gallery-title,.credits-title {
            margin: 0
        }
    }
    .about-btn-container,.gallery-btn-container,.credits-btn-container {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        width: 40px;
        height: 80px;
        margin-left: 15px;

        .open#about-btn,.open#gallery-btn,.open#credits-btn {
            -webkit-transform: rotate(180deg);
            -ms-transform: rotate(180deg);
            transform: rotate(180deg);
            -webkit-transform: .2s;
            transition: .2s;
        }

        .close#about-btn,.close#gallery-btn,.close#credits-btn {
            -webkit-transform: rotate(0deg);
            -ms-transform: rotate(0deg);
            transform: rotate(0deg);
            -webkit-transform: .2s;
            transition: .2s;
        }
    }
}

#about-title-div.final .about-mobile-title,#gallery-title-div.final .gallery-mobile-title,#credits-title-div.final .credits-mobile-title {
    border: none !important;
}

#full-about-container.final,#full-gallery-container.final,#full-credits-container.final {
    margin-bottom: 15px
}

.about-mobile-title:hover,.gallery-mobile-title:hover,.credits-mobile-title:hover {
    cursor: pointer
}

.about-mobile-title.open,.gallery-mobile-title.open,.the-spark .gallery-mobile-title,.not-a-piano .gallery-mobile-title,.oakbart .gallery-mobile-title,.credits-mobile-title.open {
    border: none!important
}

#about-mobile-title-open.open,#gallery-mobile-title-open.open,#credits-mobile-title-open.open {
    display: none
}

#about-mobile-title-close,#gallery-mobile-title-close,#credits-mobile-title-close {
    display: none
}

#about-mobile-title-close.open,#gallery-mobile-title-close.open,#credits-mobile-title-close.open {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

@media only screen and (max-width:700px) {
    #full-about-container {
        display: none;
    }

    .open#full-about-container,.open#full-gallery-container,.open#full-credits-container {
        display: block;
        -webkit-animation-duration: 1.5s;
        animation-duration: 1.5s;
        overflow: hidden
    }

    .close#full-about-container,.close#full-gallery-container,.close#full-credits-container {
        -webkit-animation-duration: .3s;
        animation-duration: .3s;
        overflow: hidden
    }

    .open#full-about-container {
        -webkit-animation-name: openabout;
        animation-name: openabout;
    }

    .close#full-about-container {
        -webkit-animation-name: closeabout;
        animation-name: closeabout;
    }

    .open#full-gallery-container {
        -webkit-animation-name: opengallery;
        animation-name: opengallery;
    }

    .close#full-gallery-container {
        -webkit-animation-name: closegallery;
        animation-name: closegallery;
    }

    .open#full-credits-container {
        -webkit-animation-name: opencredits;
        animation-name: opencredits;
    }

    .close#full-credits-container {
        -webkit-animation-name: closecredits;
        animation-name: closecredits;
    }

    #full-gallery-container,#full-credits-container {
        display: none;
    }
}

.about {

    .about-p {

        img {
            width: 100%;
            border-radius: 5px
        }

        .about-img-div {
            display: flex;
        }

        @media only screen and (min-width: 601px) {
            .about-img-div {
                gap: 15px;
                
                .gallery-img-container-alt {
                    width: 50%
                }
            }
        }

        @media only screen and (max-width: 600px) {
            .about-img-div {
                flex-direction: column;
            }
        }
    }

    ul {
        padding-left: 25px;

        li {
            margin-bottom: 15px
        }

        li.last {
            margin-bottom: 25px
        }
    }

    ol {
        padding-left: 15px;

        li {
            padding-left: 10px
        }
    }
    
    .tracklist {
        margin-bottom: 0;

        p {
            margin: 0
        }

        .left-div {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;

            p.left {
                width: 30px;
                color: var(--scroll)
            }
        }

        .track {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            margin-top: 15px;

            span {
                flex: 1;
                overflow: hidden;
                margin: 0 5px;
                letter-spacing: 3px;
                color: var(--active)
            }
        }

        .track > * {
            padding: 0;
            margin: 0;
        }
    }

    .about-icons,a.icon-link {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

    .about-icons {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        margin: auto;
        column-gap: 25px;
        row-gap: 15px;

        p {
            margin: 0;
        }

        a {
            -ms-flex-wrap: none;
            flex-wrap: none;
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;
            gap: 10px;

            .icon {
                display: block!important;
                width: 25px;
                fill: var(--font);
            }
        }

        a:hover p {
            text-decoration: underline;
            color: var(--accent)
        }

        a:active .icon {
            fill: var(--accent);
            transition: none;
            -webkit-transition: none;
            -moz-transition: none;
            -ms-transition: none;
            -o-transition: none;
        }
    }
}

#gallery {
    display: grid;
    column-gap: 15px;
    row-gap: 10px;
    padding: 0 15px;

    .img {
        width: 100%
    }
}

@media only screen and (min-width:700px) {
    #gallery {
        grid-template-columns: 1fr 1fr 1fr;
        max-width: 1400px;
        margin: 0 auto 30px;
    }

    .credit {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        gap: 15px;

        p {
            width: 50%;
            margin: 0 0 15px
        }

        .left {
            text-align: right
        }

        .right {
            text-align: left
        }
    }

    #full-credits-container {
        margin-bottom: 30px;

        h3 {
            text-align: center;
            padding: 0 15px
        }
    }
}

@media only screen and (max-width:700px) {
    #gallery {
        grid-template-columns: 1fr 1fr;
    }

    .about {
        padding-bottom: 30px;
    }

    #full-credits-container {
        border: solid 2px var(--menu);
        border-radius: 10px;
        padding: 15px;
        margin: 0 15px 15px;

        .credit {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            flex-direction: column;
            gap: 5px;
            margin-bottom: 30px;

            p {
                margin: 0
            }
        }

        .credit:last-child {
            margin: 0
        }

        h3 {
            margin-top: 45px
        }
    }

    #site-footer {
        margin-top: 0!important
    }
}

.jg-caption {
    color: var(--font);
    font-family: "Nunito";
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    margin: 15px 15px 0;
    opacity: 0 !important;
    padding: 5px 10px !important;
    background: var(--head) !important;
    transition: opacity .3s ease-in-out !important;

    a {
        font-size: 0.85rem
    }

    .marker {
        color: var(--active);
        margin-right: 5px
    }
}
#gallery.below .jg-caption, .gallery-img-container-alt .jg-caption {
    font-size: 1rem !important;
    opacity: 1!important;
    background: none!important;
    color: var(--subtitle);
    font-style: italic;
}
#gallery.below .jg-caption {
    margin: 0 0 15px;
}
.gallery-img-container-alt .jg-caption {
    margin: 0;
}
.img-container:hover .jg-caption {
    opacity: 1 !important;
    transition: opacity .3s !important;
}
.img-container:active .jg-caption {
    color: var(--accent);
    transition: none;
}
.gallery-img-container img {
    transition: .15s filter ease-in-out;
    -webkit-transition: .15s filter ease-in-out;
    -moz-transition: .15s filter ease-in-out;
    -ms-transition: .15s filter ease-in-out;
    -o-transition: .15s filter ease-in-out;
}
.gallery-img-container:hover img {
    filter: brightness(70%);
    -webkit-filter: brightness(70%);
    transition: .15s filter ease-in-out;
    -webkit-transition: .15s filter ease-in-out;
    -moz-transition: .15s filter ease-in-out;
    -ms-transition: .15s filter ease-in-out;
    -o-transition: .15s filter ease-in-out;
}

.meta-div {
    padding: 15px 0 0;
    display: flex;
    justify-content: right;

    .meta {
        display: flex;
        column-gap: 7px;
        row-gap: 3px;
        align-items: center;
        flex-wrap: wrap;
        background: var(--head);
        padding: 5px 10px;
        border-radius: 5px;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        -ms-border-radius: 5px;
        -o-border-radius: 5px;

        span {
            color: var(--subtitle);
            font-size: 0.85rem
        }
    }
}