* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    position: absolute;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: auto 90px;
}

#slider,
#scroll {
    width: 100%;
    height: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
}

#viewer,
#scroll ul {
    position: relative;
    width: max-content;
    height: 100%;
    white-space: nowrap;
    display: flex;
    align-items: center;
}


#viewer li {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100%;
    float: left;
    overflow: hidden;
}

#viewer li div {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transition: all 0.3s ease-out;
}

#list {
    display: grid;
    grid-template-columns: 65px auto 65px;
    gap: 16px;
    margin: 0 16px;
    align-items: center;
}

#scroll li,
.button {
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.button:active {
    background-color: rgba(0, 0, 0, 0.1);
}

#scroll li {
    padding: 4px;
    margin-right: 8px;
    float: left;
}

#scroll li:hover {
    border-color: rgba(0, 0, 0, 0.5)
}

#scroll li:active,
#scroll li.active {
    border-color: #000;
}

#scroll li:last-child {
    margin-right: 0;
}

#scroll li div {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background-repeat: no-repeat;
    background-size: cover;
}

@media only screen and (max-width: 768px) {
    .button {
        display: none;
    }
    #list {
        grid-template-columns: auto;
    }
}