:root {
    --blur: blur(20px) saturate(1.8);
    --blur_v2: blur(40px) saturate(1.8);
    --blur_v3: blur(60px) saturate(1.8);
    --blur_v4: blur(80px) saturate(1.8);
}

@font-face {
    font-family: Google Sans;
    src: url(https://cf-r2.xhq666.io/fonts/Google_Sans.woff2);
}
*, *::before, *::after {
    margin: 0;
    padding: 0;
    font-family: Google Sans;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: all .3s cubic-bezier(0, 0, 0, 1);
}
body {
    display: block;
}
.app, .blur, .bg, .photo_bg {
    width: 100%;
    height: 100%;
}
.app {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.photo {
    position: relative;
    box-sizing: border-box;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    box-shadow: 0 0 1em .5em rgb(0 0 0 / 5%);
    background: rgb(255 255 255 / 20%);
    background-image: url(https://dailyimg.xhq666.io/480) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
}
.photo:active { transform: scale(.98); }
.photo div {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url(https://dailyimg.xhq666.io);
    background-size: cover;
    background-position: center;
}
.photo img {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
}
.photo.full {
    width: 100%;
    height: 100%;
    border-radius: 0;
    transform: unset;
}
.blur {
    position: absolute;
    top: 0;
    left: 0;
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
}
.photo_bg {
    background: url(https://dailyimg.xhq666.io/480);
    background-size: cover;
    background-position: center;
}
.bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -999;
}
.bg .blur { background: rgb(255 255 255 / 20%); }
.info {
    position: fixed;
    padding: 1em;
    box-sizing: border-box;
    bottom: .5em;
    width: 25em;
    color: rgb(0 0 0 / 80%);
    border-radius: .5em;
    box-shadow: 0 0 1em .5em rgb(0 0 0 / 5%);
    overflow: hidden;
}
.info .blur {
    background: rgb(255 255 255 / 50%);
    -webkit-backdrop-filter: var(--blur_v2) brightness(1.1) contrast(1.1);
    backdrop-filter: var(--blur_v2) brightness(1.1) contrast(1.1);
    z-index: -1;
}
.info:hover #sidebtn::before { opacity: 1; }
.info h2, h3 {
    width: -webkit-fill-available;
    text-align: center;
    letter-spacing: .05em;
}
.info h3 {
    margin: .25em 0;
    text-align: initial;
}
.info a {
    display: block;
    width: 100%;
    color: inherit;
}
.info.hidden { transform: translateY(calc(100% + 1em)); }
#sidebtn::before {
    content: "‹";
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: calc(50% - (1em / 2));
    padding: 0 .05em .13em 0;
    width: .75em;
    height: 1.5em;
    color: rgb(255 255 255 / 80%);
    font-size: 2em;
    border-radius: .2em;
    -webkit-backdrop-filter: blur(10px) saturate(1.8) brightness(.75);
    backdrop-filter: blur(10px) saturate(1.8) brightness(.75);
    cursor: pointer;
    opacity: 0;
    transform: rotate(-90deg);
}

@media screen and (orientation: portrait) {
    .photo {
        width: 90%;
        height: 95%;
    }
    .info {
        width: calc(100% - 1em);
        font-size: 2em;
    }
}
@media screen and (orientation: landscape) {
    .photo {
        width: 95%;
        height: 95%;
        border-radius: 10px;
    }
    .info { font-size: 1em; }
}

/* Dark Mode */

@media (prefers-color-scheme: dark) {
    .photo {
        box-shadow: 0 0 0 .1em rgb(255 255 255 / 5%);
        background: rgb(28 28 30 / 20%);
    }
    .info {
        color: rgb(255 255 255 / 80%);
        box-shadow: 0 0 0 .1em rgb(255 255 255 / 6%);
    }
    .info .blur { background: rgb(28 28 30 / 60%); }
    .bg .blur {
        background: rgb(0 0 0 / 20%);
        -webkit-backdrop-filter: var(--blur) saturate(.6);
        backdrop-filter: var(--blur) saturate(.6);
    }
    #sidebtn::before {
        color: rgb(0 0 0 / 80%);
        box-shadow: 0 0 .2em .2em rgb(0 0 0 / 10%);
        background: rgb(255 255 255 / 50%);
        -webkit-backdrop-filter: blur(10px) saturate(5);
        backdrop-filter: blur(10px) saturate(5);
    }
}