@font-face {
    font-family: 'Josefin Sans';
    src: url('/fonts/JosefinSans-VariableFont_wght.ttf');
}

@font-face {
    font-family: 'Josefin Sans Italic';
    src: url('/fonts/JosefinSans-Italic-VariableFont_wght.ttf');
}

/* * {
    background-color: rgba(255, 0, 255, .0625);
    outline: 1px solid magenta;
} */

:root {
    --transition: ease-in-out .25s;
}

::selection {
    background-color: black;
    color: white;
}

.hidden {
    display: none;
}

html {
    background-color: white;
}

html::before {
    position: fixed;
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: .25;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    animation: pulsesplash ease-in-out 2s infinite;

    background-image: url("/img/icons/hausofkelly/logo-short-black.svg");
}

body {
    font-family: 'Josefin Sans';

    margin: 0;
    padding: 0;
    padding-top: 6em;

    opacity: 0;
    visibility: hidden;

    transition: transform ease-in-out 1s, opacity ease-in-out 1s;

    background-color: white;
    color: black;
}

    body.loaded {
        opacity: 1;
        visibility: visible;
    }

    body.noscroll {
        overflow-y: hidden;
    }

header {
    position: fixed;
    backdrop-filter: blur(10em);
    box-shadow: 0 0 2em 2em rgba(0, 0, 0, .25);
    left: 0;
    top: 0;
    width: 100%;
    height: 6em;
    z-index: 100;

    background-size: auto 66.67%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: white;
    background-image: url("/img/icons/hausofkelly/logo-black.svg");
}

nav {
    position: fixed;
    width: 50vw;
    z-index: 103;
}

div#overlay {
    position: fixed;
    transition: var(--transition);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(2em);
    z-index: 101;
    opacity: 0;
    visibility: hidden;

    background-color: rgba(0, 0, 0, .5);

    /* background-color: rgba(0, 0, 0, .5); */
}

    div#overlay.show {
        opacity: 1;
        visibility: visible;
    }

a#menubutton {
    position: fixed;
    display: block;
    border-width: 6px;
    border-style: solid;
    border-radius: 100%;
    left: -2em;

.hidden {
    display: none;
}

    top: -2em;
    width: 8em;
    height: 8em;

    background-color: white;
    border-color: black;
}

    a#menubutton > div {
        border-radius: 999em;
        width: 3em;
        height: 6px;

        background-color: black;
    }

        a#menubutton.open {
            background-color: black;
            border-color: white;
        }

        a#menubutton.open > div {
            background-color: white;
        }

        a#menubutton > div:nth-child(1) {
            transform: translate(2.5em, 2.5em);
        }

            a#menubutton:hover > div:nth-child(1),
            a#menubutton:focus > div:nth-child(1) {
                transform: translate(1.5em, 2.5em);
            }

            a#menubutton.open > div:nth-child(1) {
                transform: translate(2.5em, calc(3.5em + 100%)) rotate(225deg);
            }

                a#menubutton.open:hover > div:nth-child(1),
                a#menubutton.open:focus > div:nth-child(1) {
                    transform: translate(2.5em, calc(3.5em + 100%)) rotate(405deg);
                }

        a#menubutton > div:nth-child(2) {
            transform: translate(2.5em, 3.5em);
        }

            a#menubutton:hover > div:nth-child(2),
            a#menubutton:focus > div:nth-child(2) {
                transform: translate(2.5em, 3.5em);
            }

            a#menubutton.open > div:nth-child(2) {
                opacity: 0;
                width: 0;
            }

        a#menubutton > div:nth-child(3) {
            transform: translate(2.5em, 4.5em);
        }

            a#menubutton:hover > div:nth-child(3),
            a#menubutton:focus > div:nth-child(3) {
                transform: translate(3.5em, 4.5em);
            }

            a#menubutton.open > div:nth-child(3) {
                transform: translate(2.5em, calc(3.5em - 100%)) rotate(135deg);
            }

                a#menubutton.open:hover > div:nth-child(3),
                a#menubutton.open:focus > div:nth-child(3) {
                    transform: translate(2.5em, calc(3.5em - 100%)) rotate(315deg);
                }

    header a#home {
        display: block;
        width: 100%;
        height: 100%;
    }

aside {
    position: fixed;
    backdrop-filter: blur(10em);
    transform: translateX(-100%);
    transition: var(--transition);
    opacity: 0;
    left: 0;
    top: 0;
    width: calc(100% - 3em);
    height: calc(100% - 6em);
    /* clip-path: polygon(0 0, 50% 0, 100% 100%, 0 100%); */
    clip-path: polygon(0 0, calc(100% - 20em) 0, 100% 100%, 0 100%);
    padding-top: 6em;
    overflow-y: auto;
    z-index: 102;

    background-color: white;
    color: black;
}

    aside.open {
        transform: translateX(0);
        opacity: 1;
    }

    aside > * {
        display: block;
        padding: 1em;
    }

    aside > a {
        font-size: 2em;
        text-decoration: none;
    }

    aside > a:hover,
    aside > a:focus {
        background-color: rgba(128, 128, 128, .5);
        padding-left: 1.5em;
        outline: none;
    }

footer {
    padding: .25em 1em;
    text-align: center;
    z-index: 10;

    background-color: rgba(128, 128, 128, .5);
}

    footer table {
        margin: auto;
        width: 75%;
    }

    footer table td {
        padding: 0 .5em;
        vertical-align: top;
    }

    footer table td:nth-child(2n + 1):not(:last-child) {
        border-right-width: 1px;
        border-right-style: dashed;
        border-right-color: rgba(128, 128, 128, .75);
    }

    footer div.social {
        display: inline-block;
        text-align: center;
    }

        footer div.social a {
            display: inline-block;
            margin: .5em;
            width: 3em;
            height: 3em;
            opacity: .33;
            transition: var(--transition);
            background-repeat: no-repeat;
            background-size: 100%;
        }

            footer div.social a:hover {
                opacity: 1;
            }

            footer div.social a[title="Email"] {
                background-image: url('/img/icons/social/email-black.svg');
            }

            footer div.social a[title="Facebook"] {
                background-image: url('/img/icons/social/facebook-black.svg');
            }

            footer div.social a[title="GitHub"] {
                background-image: url('/img/icons/social/github-black.svg');
            }

            footer div.social a[title="X"] {
                background-image: url('/img/icons/social/x-black.svg');
            }

article {
    min-height: calc(100dvh - 6em);
}

    section {
        font-size: 1.5em;
        padding: 0;
        transition: background-image ease-in-out 5s;
    }

        section > div:not(.hide) {
            padding: 1em;
            transition: var(--transition);

            opacity: 1;
            visibility: visible;
            z-index: 2;
        }

            section > div {
                opacity: 0;
                visibility: hidden;
                z-index: -1;
            }

        section.postcard {
            position: relative;
            background-repeat: no-repeat;
            min-height: 600px;
            height: calc(100dvh - 4em);
            padding: 0;
        }

            section.postcard.nominheight {
                min-height: 0;
            }

            section.postcard > div {
                position: absolute;
                display: block;
                backdrop-filter: blur(6em);
                left: 0;
                bottom: 0;
                width: calc(100% - 2em);
                height: auto;
                padding: 1em;
            }

        section.postcard.cover {
            background-size: cover;
        }

        section.postcard.top {
            background-position: top;
        }

        section.postcard.top.right {
            background-position: top right;
        }

        section.postcard.right {
            background-position: right;
        }

        section.postcard.bottom.right {
            background-position: bottom right;
        }

        section.postcard.bottom {
            background-position: bottom;
        }

        section.postcard.bottom.left {
            background-position: bottom left;
        }

        section.postcard.left {
            background-position: left;
        }

        section.postcard.top.left {
            background-position: top left;
        }

        section.postcard.center {
            background-position: center;
        }

        section.postcard.panupdown {
            animation: panupdown ease-in-out 60s infinite;
        }

        section.postcard.panleftright {
            animation: panleftright ease-in-out 60s infinite;
        }

        section.postcard.panbyorientation {
            animation: panupdown ease-in-out 60s infinite;
        }

        section.postcard.parallax {
            background-attachment: fixed;
        }

        section.postcard.pip {
            display: inline-flex;
            flex-direction: column;
            align-items: stretch;
            background-attachment: fixed;
            background-position: center;
            min-height: 0;
            height: 100%;
        }

            section.postcard.pip > div {
                position: initial;
                bottom: auto;
            }

            section.postcard.pip > div:nth-child(1) {
                backdrop-filter: blur(6em);
                background-repeat: no-repeat;
                background-position: center;
                background-image: inherit;
                width: 100%;
                flex: 1 1 auto;
                padding: 0;

                background-size: auto 80%;
            }

            section.postcard.pip > div:nth-child(2) {
                align-self: flex-end;
                bottom: 0;
                flex: 0 1 auto;
            }

        section.events {
            width: 100%;
        }

            section.events > div {
                border-bottom-width: 1px;
                border-bottom-style: solid;
                border-bottom-color: rgba(128, 128, 128, .67);
                padding: 0;
                width: 100%;
            }

                section.events > div:first-child {
                    border-top-width: 1px;
                    border-top-style: solid;
                    border-top-color: rgba(128, 128, 128, .67);
                }

                section.events > div hr {
                    background-color: rgba(128, 128, 128, .33);
                }

            section.events > p {
                padding: 0 1em;
            }

            section.events table {
                padding: .5em;
                width: 100%;
                vertical-align: top;
            }

                section.events table td {
                    padding: .5em;
                    vertical-align: top;
                }

                    section.events table td:nth-child(1) {
                        width: 0;
                        vertical-align: top;
                    }

            section.events div.calendar {
                display: inline-block;
                background-color: white;
                box-shadow: 0 .25em 1em .5em rgba(0, 0, 0, .125);
                border-radius: .25em;
                color: black;
                text-align: center;
                width: 3em;
                height: 3em;
            }

                section.events div.calendar > div:nth-child(1) {
                    background-color: red;
                    border-top-left-radius: inherit;
                    border-top-right-radius: inherit;
                    color: white;
                    font-size: .75em;
                    height: 1em;
                    padding: .125em;
                }

                section.events div.calendar > div:nth-child(2) {
                    font-size: 1.5em;
                    height: 0;
                    padding: .2em;
                }

        section.gallery {
            padding: 1em;
            text-align: center;
        }

            section.gallery > figure {
                display: inline-block;
                border-radius: 1em;
                font-size: .8em;
                cursor: pointer;
                margin: 1.5em .25em;
                padding: .5em;
                width: 8em;
                text-align: center;
                vertical-align: top;
                transition: var(--transition);
            }

                section.gallery > figure:hover {
                    background-color: rgba(128, 128, 128, .5);
                    transform: scale(1.125);
                }

                section.gallery > figure img {
                    margin: .5em 0;
                    width: auto;
                    height: 8em;
                }

                section.gallery > figure figcaption {
                    font-weight: 300;
                }

            /* section.gallery > div.slideshow {
                position: fixed;
                background: rgba(0, 0, 0, .5);
                backdrop-filter: blur(6em);
                font-size: 1rem;
                left: 0;
                top: 0;
                width: 100vw;
                height: 100dvh;
                z-index: 101;

                opacity: 0;
                visibility: hidden;
            }

            section.gallery > div.slideshow.show {
                opacity: 1;
                visibility: visible;
            }

                section.gallery > div.slideshow > a.slide {
                    transform: translate(-2em, calc(-50% - 1em));
                } */

    article h1,
    article h2,
    article h3,
    article h4,
    article h5,
    article h6 {
        line-height: 1.5em;
        margin: 0;
        padding: 0;
    }

    article p {
        font-weight: 300;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
    }

        article p:not(:last-child) {
            margin-bottom: 1em;
        }

    article a:hover {
        color: rgb(96, 192, 0);
    }

    article a:active {
        color: rgb(192, 162, 0);
    }

a {
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
}

a:focus {
    outline: none;
}

a, a * {
    transition: var(--transition);
}

hr {
    background: rgba(128, 128, 128, .75);
    border: 0;
    width: 100%;
    height: 1px;
}

.inherittheme {
    background-color: white;
    color: black;
}

.builtby {
    opacity: .33;
    user-select: none;
}

.builtby a {
    text-decoration: none;
}

.logo {
    display: inline-block;
    width: 5.5em;
    height: 1em;
    vertical-align: top;

    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("/img/icons/sidera/logo-black.svg");
}

/* #region - Slideshows */
div.slideshow {
    position: relative;
    height: calc(100dvh - 6em);
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: margin 1s ease-in-out;
}

    div#overlay div.slideshow {
        height: 100%;

        display: none;
        opacity: 0;
        visibility: hidden;
    }

        div#overlay div.slideshow.show {
            display: block;
            opacity: 1;
            visibility: visible;
        }

    div.slideshow > div.track {
        height: 100%;
        transition: margin 1s ease-in-out;
    }

        div.slideshow section {
            vertical-align: top;
            height: 100% !important;
        }

    div.slideshow > a.slide {
        position: absolute;
        backdrop-filter: blur(1em);
        font-size: 1em;
        cursor: pointer;
        top: 50%;
        width: 8em;
        height: 8em;
        transform: translateY(-50%);
        transition: background-color .25s ease-in-out;
        z-index: 99;
        border-radius: 100%;
        border-width: 6px;
        border-style: solid;

        background-color: white;
        border-color: black;
    }

        div.slideshow > a.slide > div {
            background-color: black;
            border-radius: 999em;
            margin: 0 auto;
            width: 2em;
            height: .5em;
        }

        div.slideshow > a.slide.prev {
            left: -4em;
        }

            div.slideshow > a.slide.prev > div:nth-child(1) {
                transform: translate(66.67%, 3.25em) rotate(-45deg);
            }

                div.slideshow > a.slide.prev:hover > div:nth-child(1) {
                    transform: translate(33.33%, 3.25em) rotate(-45deg);
                }

            div.slideshow > a.slide.prev > div:nth-child(2) {
                transform: translate(66.67%, calc(.6em + 3.25em)) rotate(45deg);
            }

                div.slideshow > a.slide.prev:hover > div:nth-child(2) {
                    transform: translate(33.33%, calc(.6em + 3.25em)) rotate(45deg);
                }

        div.slideshow > a.slide.next {
            right: -4em;
        }

            div.slideshow > a.slide.next > div:nth-child(1) {
                transform: translate(-66.67%, 3.25em) rotate(45deg);
            }

                div.slideshow > a.slide.next:hover > div:nth-child(1) {
                    transform: translate(-33.33%, 3.25em) rotate(45deg);
                }

            div.slideshow > a.slide.next > div:nth-child(2) {
                transform: translate(-66.67%, calc(.6em + 3.25em)) rotate(-45deg);
            }

                div.slideshow > a.slide.next:hover > div:nth-child(2) {
                    transform: translate(-33.33%, calc(.6em + 3.25em)) rotate(-45deg);
                }

        div.slideshow.nocontrols > a.slide {
            visibility: hidden;
        }

div.slideshow section {
    display: inline-block;
    white-space: normal;
    width: 100vw;
    height: 100dvh;
}

    div.slideshow.fade section {
        position: absolute;
        left: 0;
        top: 0;
        opacity: 0;
        transition: opacity ease-in-out 3s;
    }

        div.slideshow.fade section:nth-child(1) {
            opacity: 1;
        }

div.catalog {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 6em);
}

    div.catalog > div.slideshow {
        flex: 1;
    }

    div.catalog > div.thumbnails {
        height: 8em;
        padding: .5em;
        white-space: nowrap;
        overflow-x: auto;
        text-align: center;
    }

        div.catalog > div.thumbnails img {
            height: 100%;
            margin: .5em;
        }
/* #endregion */

@media screen and (orientation: portrait) {
    section.postcard.panbyorientation {
        animation: panleftright ease-in-out 60s infinite;
    }

    section.postcard.pip > div:nth-child(1) {
        background-size: 80% auto;
    }
}

@media screen and (max-width: 600px) {
    body {
        font-size: .8em;
    }

    aside {
        /* width: 85%; */
    }

    footer table {
        width: 100%;
    }
}

@media screen and (max-width: 400px) {
    body {
        font-size: .6em;
    }
}

@media screen and (prefers-color-scheme: dark) {
    html {
        background-color: black;
    }

    html::before {
        background-image: url("/img/icons/hausofkelly/logo-short-white.svg");
    }

    ::selection {
        background-color: white;
        color: black;
    }

    body {
        background-color: black;
        color: white;
    }

    header {
        background-color: black;
        background-image: url("/img/icons/hausofkelly/logo-white.svg");
    }

    a#menubutton {
        background-color: black;
        border-color: white;
    }

    a#menubutton > div {
        background-color: white;
    }

        a#menubutton.open {
            background-color: white;
            border-color: black;
        }

        a#menubutton.open > div {
            background-color: black;
        }

    aside {
        background-color: black;
        color: white;
    }

    article a:hover {
        color: chartreuse;
    }

    article a:active {
        color: gold;
    }

    div.slideshow > a.slide {
        background-color: black;
        border-color: white;
    }

            div.slideshow > a.slide > div {
                background-color: white;
            }

    .inherittheme {
        background-color: black;
        color: white;
    }

    .logo {
        background-image: url("/img/icons/sidera/logo-white.svg");
    }

    footer div.social a[title="Email"] {
        background-image: url('/img/icons/social/email-white.svg');
    }

    footer div.social a[title="Facebook"] {
        background-image: url('/img/icons/social/facebook-white.svg');
    }

    footer div.social a[title="GitHub"] {
        background-image: url('/img/icons/social/github-white.svg');
    }

    footer div.social a[title="X"] {
        background-image: url('/img/icons/social/x-white.svg');
    }
}

@keyframes pulsesplash {
    0% {
        background-size: 30%;
    }
    50% {
        background-size: 33.33%;
    }
    100% {
        background-size: 30%;
    }
}

@keyframes panupdown {
    0% {
        background-position: center 100%;
    }
    50% {
        background-position: center 0%;
    }
    100% {
        background-position: center 100%;
    }
}

@keyframes panleftright {
    0% {
        background-position: 100% center;
    }
    50% {
        background-position: 0% center;
    }
    100% {
        background-position: 100% center;
    }
}