.image-gallery-block .upload-area {
    height: 300px;
    outline: 2px dashed #cccccc;
    outline-offset: -3px;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    transition: outline-offset 100ms;
}

.image-gallery-block .upload-area.drag-over {
    outline-offset: -20px;
}

.image-gallery-block .upload-area .file-input {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.image-gallery-block .images {
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--thumbnail-size));
    justify-content: center;
    gap: 15px;
}

.image-gallery-block .images .image img {
    cursor: pointer;
}

.image-gallery-block .images > * {
    min-height: var(--thumbnail-size);
}

.image-gallery-block textarea[name="caption"] {
    min-height: 150px;
}

.image-gallery-block .js-open-lightbox {
    cursor: pointer;
}

.image-gallery-block .lightbox-shadow {
    display: flex;
    flex-direction: column;
    justify-content: center;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;

    background-color: rgba(0, 0, 0, 0.8);
}

.image-gallery-block .lightbox-shadow .close-button {
    position: absolute;
    top: 0;
    right: 0;
    color: #fff;
    padding: 10px 20px;
    font-size: 2rem;
    background: none;
    border: 0;
    cursor: pointer;
    outline: 0;
    z-index: 1;
}

.image-gallery-block .lightbox-shadow .close-button::before {
    content: "\f00d";
    font-family: FontAwesome;
}