.gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
    align-items: start;
    gap: 15px;
    margin-top: 5vh;
    width: 100%;
}

.gallery .thumbnail {
    border: 3px solid #eee;
    flex-shrink: 1;
    cursor: pointer;
}

.viewer {
    display: none;
    /* display: flex; */
    flex-direction: column;
    position: fixed;
    margin: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
}

.viewer .image {
    display: flex;
    overflow: hidden;
    width: 100%;
    text-align: center;
    flex-grow: 1;
    justify-content: center;
}

.viewer .image img {
    max-width: 100%;
    object-fit: contain;
    pointer-events: none;
}

.viewer .caption {
    padding: 10px 30px;
}

.viewer .caption h2,
.viewer .caption p {
    font-size: 16px;
    margin: 0;
    line-height: 20px;
}

.viewer .x-button {
    position: fixed;
    top: 0px;
    right: 0px;
    width: 20px;
    height: 20px;
    padding: 20px;
    cursor: pointer;
    filter: drop-shadow(0px 0px 3px #000000) drop-shadow(0px 0px 10px #000000);
}

.viewer .browse-button {
    position: fixed;
    top: calc(50vh - 35px);
    width: 15px;
    height: 30px;
    padding: 20px;
    cursor: pointer;
    filter: drop-shadow(0px 0px 3px #000000) drop-shadow(0px 0px 10px #000000);
}

.browse-button.next {
    right: 0px;
}

.browse-button.prev {
    left: 0px;
}
