.gallery {
    padding: 2em 1em;
}
.gallery .container {
    width: 85%;
    margin: 0 auto;
}

.gallery .container h3 {
    text-align: center;
    margin-bottom: 2em;
    font-size: 1.5em;
}

@media only screen and (min-width: 760px) {
    .gallery .container .grid {
        display: grid;
        grid-template-columns: repeat(4, 25%);
        justify-content: center;
        align-content: center;
        grid-gap: 10px;
    }
}

.grid img {
    width: 100%;
    cursor: pointer;
}

#lightbox {
    position: fixed;
    z-index: 9999;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .8);
    display: none;
}

#lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox img {
    max-width: 80%;
    max-height: 80%;
    padding: 4px;
    background-color: black;
    border: 2px solid white;;
}