@import url(https://fonts.bunny.net/css?family=libre-baskerville:400,700);

body, html{
    padding: 0;
    margin: 0;
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    color: #1a202c;
    text-align: center;
}

* {
    box-sizing: border-box;
}

main {
    position: relative;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.mt-2rem {
    margin-top: 2rem;
}

input[type=password] {
    padding: .5rem;
    font-family: inherit;
    border: 2px solid #dfdfdf;
    outline: none;
    transition: all .675s;
    width: 100%;
    display: inline-block;
}

input[type=password]:focus {
    border-color: #1a202c;
}

a.btn, input[type=submit] {
    width: 100%;
    display: inline-block;
    background: #1a202c;
    color: #ffffff;
    padding: .65rem 1.5rem;
    text-decoration: none;
    font-size: .85rem;
    font-weight: bold;
    letter-spacing: .05rem;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

a.btn:not(:last-of-type), input[type=submit]:not(:last-of-type) {
    margin-bottom: .5rem;
}

/* index */
main > div {
    position: relative;
    z-index: 1;
}

main div.background {
    position: absolute;
    width: 100%;
    height: 100vh;
    z-index: 0;
}

main div.background div.image {
    display: none;
    position: absolute;
    width: 5rem;
    height: 5rem;
    background-position: center;
    background-size: cover;
    border-radius: 50%;
    border: 2px solid #1a202c;
    transition: all .5s linear;
}

main div.content-index {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    padding: 2rem;
}

main div.content-index h1 {
    font-size: 2.25rem;
    margin-top: 2rem;
}

/* gallery */
main div.content-gallery {
    padding: 2rem;
}

main div.content-gallery div.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 1rem;
}


main div.content-gallery div.gallery div.item {
    aspect-ratio: 1;
    overflow: hidden;
}

main div.content-gallery div.gallery div.item div.item-content {
    position: relative;
    width: 100%;
    height: 100%;
}
main div.content-gallery div.gallery div.item.blurred div.item-content {
    filter: blur(20px);
}

main div.content-gallery div.gallery div.item label {
    display: none;
}

main div.content-gallery div.gallery div.item div.img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

main div.content-gallery div.gallery div.item video {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

main div.content-gallery div.gallery div.item.expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2;
    background: #ffffff;
}

main div.content-gallery div.gallery div.item.expanded div.item-content {
    max-width: 90%;
    max-height: 80vh;
    margin-left: auto;
    margin-right: auto;
    margin-top: 8vh;
}

main div.content-gallery div.gallery div.item.expanded label {
    display: block;
    font-size: 1rem;
    margin-top: 1rem;
}

main div.content-gallery div.gallery div.item.expanded div.item-content div.img {
    background-size: contain;
    background-repeat: no-repeat;
}

/* login */
main div.content-login {
    padding: 2rem;
}

main div.not-standalone {
    display: flex;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    padding: 10rem 2rem;
}

main div.not-standalone a {
    color: #d2d2d2;
    text-decoration: none;
    font-weight: bold;
    font-size: .85rem;
}

@media all and (display-mode: standalone) {
    main div.not-standalone {
        display: none;
    }
}

/* memory */
main div.content-memory {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

main div.content-memory div.memory {
    width: 100%;
    position: relative;
}

main div.content-memory div.memory.blurred {
    filter: blur(20px);
}

main div.content-memory div.memory img,
main div.content-memory div.memory video {
    display: inline-block;
    width: 100%;
    animation: remove-blur forwards 8s;
    margin-bottom: 1.5rem;
    max-height: 60vh;
}

main div.content-memory div.memory label {
    animation: fade-in forwards 9s;
    max-width: 100%;
}

/* upload */
main div.upload-form {
    margin-bottom: 2rem;
}

main div.upload-form form input:not([type=submit]) {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: .5rem;
    font-family: inherit;
    border: 2px solid #dfdfdf;
    outline: none;
    transition: all .675s;
}

@keyframes remove-blur {
    0% {
        filter: blur(150px);
    }

    100% {
        filter: blur(0px);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    90% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
