.gallery-view {
    position: fixed;
    margin: 0;
    box-sizing: border-box;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background-color: rgba(0,0,0,.8);
    display: grid;
    grid-template-columns: 200px auto;
    grid-template-rows: 5fr 1fr;
    grid-template-areas: "group-list img-view"
    "group-list img-list";
}


.gallery-view > .group-list {
    grid-area: group-list;
    overflow: auto;
    width: auto;
    grid-template-rows: auto;
}
.gallery-view > .img-view {
    grid-area: img-view;
}
.gallery-view > .img-list {
    grid-area: img-list;
    display: grid;
    grid-template-columns: minmax(35px, 1fr) 8fr minmax(35px, 1fr);
    grid-template-areas: "prev timeline next";
    padding: 0;
}


/** buttons **/

.gallery-view .gallery-btn {
    padding: 5px;
    margin: 5px;
    height: 15px;
    width: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.gallery-view .gallery-btn:hover {
    cursor: pointer;
    background-color: #aaa;
}
.gallery-view .gallery-btn:before {
    font-family: "Font Awesome 5 Pro";
    margin: 0;
    padding: 0;
}

.gallery-view .gallery-close {
    position: absolute;
    top: 0;
    right: 0;
}
.gallery-view .gallery-close:before {
    content: "\f00d";
}

.gallery-view .next-image {
    grid-area: next;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    border-radius: 0 8px 8px 0;
    padding: 0;
    margin: 0;
}
.gallery-view .next-image:before {
    content: "\f054";
}
.gallery-view .prev-image {
    grid-area: prev;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    border-radius: 8px 0 0 8px;
    padding: 0;
    margin: 0;
}
.gallery-view .prev-image:before {
    content: "\f053";
}


/** group preview list **/
.group-preview {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: auto;
    text-align: center;
    height: min-content;
}
.group-preview:hover {
    cursor: pointer;
}

.gallery-view img {
    border-radius: 8px;
}

.group-preview > .group-preview-name {
    width: 100%;
}

.gallery-view .image-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.gallery-view .image-timeline .preview-image {
    margin: 0 10px;
    border-radius: 8px;
    display: flex;
}

.gallery-view .image-timeline .preview-image:hover {
    box-shadow: 0 0 2px 2px #80a;
    cursor: pointer;
}
.gallery-view .img-view > .active-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    height: 100%;
    width: auto;
}

.gallery-view .img-view > .active-image > img {
    max-width: 100%
;max-height: 70vh;
}