.viewer {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, .75);
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 4rem 1fr;
    grid-template-areas: "header aside" "main aside";
    color: #FFF;
}

.viewer>header {
    grid-area: header;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
    background-image: linear-gradient(rgba(0, 0, 0, 0.65) 0%, transparent 100%);
    background-position-x: initial;
    background-position-y: initial;
    background-size: initial;
    background-repeat-x: initial;
    background-repeat-y: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    background-color: initial;
}

.viewer>main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.viewer>main>.resizer {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.viewer>main>.resizer img {
    width: 100%;
    object-fit: fill;
}

@media (min-width: 800px) {
    .viewer>main>.resizer {
        width: 800px;
        padding: 0;
    }
}

.viewer>aside {
    min-width: 22rem;
    grid-area: aside;
    display: none;
    background-color: rgb(50, 50, 50);
}

.viewer>aside.open {
    grid-area: aside;
    display: flex;
    flex-direction: column;
}

.viewer>aside .property>label {
    color: #AAA;
}

.viewer>footer {
    width: 15rem;
    position: absolute;
    bottom: 1rem;
    left: calc(50vw - 4rem);
    border-radius: 3px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem;
    background-color: rgba(0, 0, 0, .75);
}