/* Gallery */
.gallery { 
    box-sizing: border-box;
    display: flex;
    flex-flow: row wrap;
    align-content: flex-start;
    align-items: stretch;
    width: 100%;
    margin: auto;

    .galleryItem {
        flex: 1 1 auto;
        margin: 5px;
        border: var(--border);
        position: relative;
        width: 90px;
        height: 90px;
        overflow: hidden;
    }
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border: none;
    }
    figcaption {
        visibility: hidden;
    }
}

/* modal */
.lightBoxOverlay {
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    overflow: auto;
    background-color: var(--darktl);

    .closeButton {
        font-size: 2.5em;
        cursor: pointer;
        text-decoration: none;
        position: fixed;
        top: 20px;
        right: 20px;
        padding: 10px;
    }
    .closeButton:hover {
        transition: 0.2s;
        letter-spacing: 2px;
    }
    .container {
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-content: center;
        align-items: center;
        overflow: scroll;

        background-color: var(--dark);
        padding: 10px;
        border: var(--border);
    }
    img {
        max-width: 1000px;
        max-height: 700px;
    }
    figcaption {
        margin: auto;
        margin-top: 10px;
        width: 100%;
    }
    h2 {
        text-align: center;
        font-family: Arial, Helvetica, sans-serif;
        text-transform: none;
        letter-spacing: 0.12em;
    }
}
/* Responsive */
@media (max-width: 560px) {
    .lightBoxOverlay {
        padding: 0px;
        .closeButton {
            top: 10px;
            right: 10px;
        }
            img {
            max-width: 90%;
            max-height: 90%;
        }
        figcaption {
            margin: auto;
            display: block;
            width: 90%;
        }
    }
}
