html, body {
  overscroll-behavior-y: contain;
  height: 100%;
}

.inner {
    height: 100%;
    width: 100vw;
    margin: 0 auto;
    padding: 0px;
    box-sizing: border-box;
    scrollbar-gutter: stable;
    flex-direction: column;
}

.footer {
  display: none;
}

#gallery {
    width: 90%;
    height: 30%;
    margin: 0 auto;
    background-color: rgb(0, 0, 0);
    position: relative;
    display: grid;
    grid-template-columns: auto auto auto auto;
    grid-gap: 0.5em;
    grid-auto-flow: dense;
    align-items: center;
    overflow-y: scroll;
    padding: 1em;
}

.gallery_image {
    -webkit-box-reflect: unset;
    height: auto;
    box-shadow: 0px 0px 20px rgba(0, 183, 255, 0);
    transition: box-shadow 0.2s;
    border-radius: 0.2em;
}

.gallery_image:hover {
    box-shadow: 0px 0px 20px rgba(0, 85, 255, 0.932);
}

#viewer-image {
    margin: 1em auto;
    user-select: none;
    max-height: 95%;
    box-sizing: border-box;
    box-shadow: 0px 4px 10px black;
    touch-action: none;
}

#viewer {
    height: 50%;
    display: block;
    margin: 0.2em auto;
    padding: 1em;
    width: 80%;
    background: linear-gradient(black, rgb(29, 29, 29));
    overflow: hidden;
    position: relative;
    user-select: none;
    text-align: center;
    touch-action: none;
    border-radius: 0.3em;
}

.button-holder {
    position: absolute;
    bottom: 0.3em;
    width: 100%;
    text-align: left;
    user-select: none;
}



#viewer button {
    background: linear-gradient(blue, transparent);
    background-blend-mode: screen;
    padding: 1em;
    color: white;
    border: 1px blue solid;
    border-radius: 0.2em;
    margin: 0.2em auto;
}