::-webkit-scrollbar { width: 6px; height: 6px; background: #222; } /* width */
::-webkit-scrollbar-track { background: #222; border-radius: 5px; } /* Track */
::-webkit-scrollbar-thumb { background: #666; border-radius: 5px; } /* Handle */
::-webkit-scrollbar-thumb:hover { background: #555; } /* Handle on hover */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    display: grid;
    place-items: center;
    height: 100vh;
}
header{
    position: fixed;
    top: 0;
    right: 0;
    left: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    height: 4rem;

    box-shadow: 0 0 20px rgba(0, 0, 0, .4);
}
header a{
    padding: 1rem 1.2rem;
    margin: auto .25rem;
    min-width: 10rem;

    text-align: center;

    border: 1px solid #ddd;
    color: #000;

    text-decoration: none;
    font-family: 'Cormorant Unicase', serif;

    transition: background .6s;
}
header a:hover{
    background-image: linear-gradient(45deg, rgba(0,0,0,.2), #fff);
}
h1{
    font-family: 'Cormorant Unicase', serif;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 0;
    padding-bottom: 0;

    text-align: center;
    color: rgba(0,0,0,.8);
    text-shadow: 0 0 20px rgba(0,0,0,.2);
}
section#scroll{
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;
}
section#scroll #items-wrapper{
    width: 70vw;
    box-shadow: 0 0 20px rgba(0,0,0,.5 );
}
section#scroll #items{
    display: flex;
    
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
section#scroll .item{
    flex: none;

    width: 100%;
    height: 400px;

    scroll-snap-align: start;
    pointer-events: none;
}
section#scroll img{
    width: 100%;
    height: 100%;

    object-fit: cover;
}

/*  ========================================== */
section#opacity{
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
section#opacity #slider{
    width: 80%;
    max-width: 800px;
    height: 50vh;
    /* max-height: 150px; */

    position: relative;
}

#slider img{
    position: absolute;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;

    transition: opacity .8s;
}
#slider img.selected{
    opacity: 1;
}