
.content-gallery {
    background-color: #f9f9f9;
    width: 100%;
    margin: 50px auto;
    text-align: center;
}

.content-gallery h1 {
    font-size: 45px;
    color: #002244;
    margin-bottom: 40px;
}

@media (min-width: 40em) {
    .content-gallery {
        width: 40em;
    }
}

@media (min-width: 80em) {
    .content-gallery {
        width: 80em;
    }
}
/*
@media (min-width: 90em) {
    .content-gallery {
        width: 90em;
    }
}*/

.gallery {
    display: flex;
    flex-flow: row wrap;
    align-content: flex-start;
    align-items: stretch;
    width: 100%;
    margin: auto;
}

.gallery .galleryItem {
    flex: 1 1 auto;
    margin: 0.3em;
    border: 1px solid black;
    position: relative;
    width: 12em;
    height: 13em;
    overflow: hidden;
}

@media (min-width: 40em) {
    .gallery .galleryItem {
        width: 10em;
        height: 10em;
    }
}

@media (min-width: 80em) {
    .gallery .galleryItem {
        width: 17em;
        height: 17em;
    }
}

@media (max-width: 40em) {
    .gallery .galleryItem {
        margin: 1em;}
    
}

.gallery .galleryItem:hover img {
    transform: scale(1.2);
}

.gallery a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.2s;
}

.gallery figcaption {
    background-color: rgba(0, 0, 0, .4);
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1em;
}

.lightBoxOverlay {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .7);
}

.lightBoxOverlay .closeButton {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    color: #000;
    background-color: #fff;
    font-size: 1.5em;
    border-radius: 1em;
    padding: 0.44em 0.66em;
    height: 2em;
    width: 2em;
    cursor: pointer;
    transition: 0.2s;
}

.lightBoxOverlay .closeButton:hover {
    color: #fff;
    background-color: #000;
}

@media (min-width: 80em) {
    .lightBoxOverlay .closeButton {
        font-size: 2em;
        top: 1em;
        right: 1em;
        height: 2em;
        width: 2em;
    }
}

.lightBoxOverlay .container {
    margin: 0;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 1em;
}

@media (min-width: 40em) {
    .lightBoxOverlay .container {
        padding: 3em;
    }
}

@media (min-width: 80em) {
    .lightBoxOverlay .container {
        padding: 5em;
    }
}

.lightBoxOverlay img {
    max-width: 100%;
    max-height: 100%;
}

.lightBoxOverlay figcaption {
    margin-top: 1em;
    padding: 0.5em 1em;
    color: #fff;
    background: rgba(0, 0, 0, .7);
    border-radius: 5em;
}