* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    user-select: none;
}

html,
body {
    height: 100%;
    background-color: rgb(0 0 0);
    overflow: hidden;
}

body {   
    display: grid;
    grid-template: 100% / 100%;
    place-items: center;
}

#Choice {
    height: 100%;
    width: 100%;
    grid-area: 1 / 1;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    overflow-y: auto;
}

#Choice > img {
    height: 300px;
    border: 1px solid rgb(255 255 255);
    cursor: pointer;
}

.scene[aria-hidden="true"] {
    display: none;
}

.scene {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template: 100% / 100%;
    place-items: center;
    overflow: hidden;
    background-color: rgb(0 0 0);
}

.scene > .container {
    position: relative;
    grid-area: 1 / 1;
    display: grid;
    grid-template: 100% / 100%;
    place-items: center;
    overflow: hidden;
}

.scene img{
    grid-area: 1 / 1;
    pointer-events: none;
}

.scene > .container > img {
    transition: transform .5s ease-in-out;
    transform: translate(calc(var(--zoom) * var(--x)), calc(var(--zoom) * var(--y))) scale(calc(1 + var(--zoom) / 10 * var(--zoom-ratio)));
}

.scene > .back {
    position: absolute;
    top: 2rem;
    cursor: pointer;
}

.scene > .back::before {
    display: block;
    content: "Back";
    padding: .25rem .5rem;
    font-family: monospace;
    font-size: 14pt;
    text-transform: uppercase;
    color: rgb(255 255 255);
    background-color: rgb(255 255 255 / 25%);
    border: 1px solid rgb(255 255 255);
}

.scene > .zoom {
    position: absolute;
    bottom: 2rem;
}

@media (pointer:fine) {
    .scene > .zoom::before {
        display: block;
        content: "";
        width: 26px;
        height: 40px;
        border-radius: 15px;
        border: 2px solid rgb(255 255 255);
    }
    
    .scene > .zoom::after {
        display: block;
        content: "";
        position: absolute;
        top: 7px;
        right: 0;
        left: 0;
        margin: auto;
        width: 6px;
        height: 6px;
        border-radius: 100%;
        background-color: rgb(255 255 255);
        animation: scroll 1s ease-in-out infinite;
    }

    @keyframes scroll {
        from {
            transform: translateY(8px);
        }
        
        to {
            transform: none;
        }
    }
}

@media (pointer:coarse) {
    .scene > .zoom::before {
        display: block;
        content: "";
        position: absolute;
        bottom: 5px;
        width: 15px;
        height: 15px;
        border-top: 2px solid rgb(255 255 255);
        border-right: 2px solid rgb(255 255 255);
        border-bottom: 2px solid transparent;
        border-left: 2px solid transparent;
        animation: pinch-right 1s ease-in-out infinite;
    }

    @keyframes pinch-right {
        from {
            transform: none;
        }
        
        to {
            transform: translate(5px, -5px);
        }
    }

    .scene > .zoom::after {
        display: block;
        content: " ";
        position: absolute;
        bottom: 5px;
        width: 15px;
        height: 15px;
        border-top: 2px solid transparent;
        border-right: 2px solid transparent;
        border-bottom: 2px solid rgb(255 255 255);
        border-left: 2px solid rgb(255 255 255);
        animation: pinch-left 1s ease-in-out infinite;
    }

    @keyframes pinch-left {
        from {
            transform: none;
        }
        
        to {
            transform: translate(-5px, 5px);
        }
    }
}  

@media (orientation: portrait) {
    .scene > img {
        height: 100%;
    }

    .scene > .container {
        border-top: 1px solid rgb(255 255 255);
        border-bottom: 1px solid rgb(255 255 255);
    }

    .scene > .container > img {
        width: 100%;
        width: 100vi;
    }
}

@media (orientation: landscape) {
    .scene > img {
        width: 100%;
    }

    .scene > .container {
        border-left: 1px solid rgb(255 255 255);
        border-right: 1px solid rgb(255 255 255);
    }

    .scene > .container > img {
        height: 100%;
        height: 100vb;
    }
}