/* Gallery */

.squareGallery {
    line-height: 0px;
    width: 95%;
    overflow: hidden;
    text-align: center;
    margin: auto;
}

.squareGallery--margin {
    margin-top: 40px;
    margin-bottom: 40px;
}

.squareGallery__Wrapper {
    display: inline-block;
    position: relative;
    overflow: hidden;
    outline: 4px solid white;
    cursor: pointer;
    opacity: 1;
}

.squareGallery__Wrapper:hover {
    opacity: 0.8;
}

.squareGallery__Thumbnail {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Overlay */

.squareGallery__Overlay {
    z-index: 2000;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.squareGallery__Overlay__Image {
    position: absolute;
    max-width: 80%;
    max-height: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid white;
}

.squareGallery__Overlay__Close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.squareGallery__Overlay__Previous {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.squareGallery__Overlay__Next {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.squareGallery__Overlay__Close:hover {
    opacity: 0.8;
}

.squareGallery__Overlay__Previous:hover {
    opacity: 0.8;
}

.squareGallery__Overlay__Next:hover {
    opacity: 0.8;
}