/* Gutenberg Gallery */
.post-entry ul.wp-block-gallery {
    
}

.wp-block-gallery.justified-gallery,
.wp-block-gallery > .justified-gallery {
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-wrap: wrap !important;
    flex-wrap: wrap !important;
    list-style-type: none;
    padding: 0;
    margin: 0 0 1.5em;
}

    .wp-block-gallery.justified-gallery > li,
    .wp-block-gallery > .justified-gallery > li {
        position: absolute;
        display: inline-block;
        overflow: hidden;
        /* background: #888888; To have gray placeholders while the gallery is loading with waitThumbnailsLoad = false */
        filter: "alpha(opacity=10)";
        opacity: 0.1;
        margin: 0;
        padding: 0;
    }

    .wp-block-gallery.justified-gallery .blocks-gallery-image,
    .wp-block-gallery.justified-gallery .blocks-gallery-item,

    .wp-block-gallery > .justified-gallery .blocks-gallery-image,
    .wp-block-gallery > .justified-gallery .blocks-gallery-item {
        -ms-flex-positive: 0;
        flex-grow: 0;

        -ms-flex-direction: row;
        flex-direction: row;

        -ms-flex-pack: start;
        justify-content: flex-start;

        position: absolute;
        display: inline-block;
        overflow: hidden;
        filter: "alpha(opacity=10)";
        opacity: 0.1;
        margin: 0;
        padding: 0;
    }

    .wp-block-gallery.justified-gallery .blocks-gallery-image figure,
    .wp-block-gallery.justified-gallery .blocks-gallery-item figure,

    .wp-block-gallery > .justified-gallery .blocks-gallery-image figure,
    .wp-block-gallery > .justified-gallery .blocks-gallery-item figure {
        position: relative;
        display: block;
        overflow: hidden;
        -ms-flex-align: stretch;
        align-items: stretch;
    }

    .wp-block-gallery.justified-gallery .thumb-overlay-container .thumb-overlay .thumb-overlay-inner .thumb-icon-wrp,
    .wp-block-gallery > .justified-gallery .thumb-overlay-container .thumb-overlay .thumb-overlay-inner .thumb-icon-wrp {
        
    }

    .wp-block-gallery.justified-gallery.is-cropped .blocks-gallery-image a,
    .wp-block-gallery.justified-gallery.is-cropped .blocks-gallery-image img,
    .wp-block-gallery.justified-gallery.is-cropped .blocks-gallery-item a,
    .wp-block-gallery.justified-gallery.is-cropped .blocks-gallery-item img,
    .wp-block-gallery > .justified-gallery.is-cropped .blocks-gallery-image a,
    .wp-block-gallery > .justified-gallery.is-cropped .blocks-gallery-image img,
    .wp-block-gallery > .justified-gallery.is-cropped .blocks-gallery-item a,
    .wp-block-gallery > .justified-gallery.is-cropped .blocks-gallery-item img {
        -ms-flex: 0 1 auto !important;
        flex: 0 1 auto !important;
    }


    .wp-block-gallery.justified-gallery .blocks-gallery-image img,
    .wp-block-gallery.justified-gallery .blocks-gallery-item img,

    .wp-block-gallery > .justified-gallery .blocks-gallery-image img,
    .wp-block-gallery > .justified-gallery .blocks-gallery-item img {
        width: 100% !important;
        object-fit: cover;
        margin: 0 !important;
    }

    .wp-block-gallery.justified-gallery > li > figure figcaption,
    .wp-block-gallery > .justified-gallery > li > figure figcaption {
        position: absolute;
        bottom: -50%;
        filter: "alpha(opacity=0)";
        opacity: 0;
        
        background: rgba(0, 0, 0, 0.5);
        left: 0;
        right: 0;
        color: #fff;
        font-size: 12px;
        font-weight: 300;
        font-family: sans-serif;

        padding: 8px 0;
        width: 100%;

        will-change: bottom, opacity;
        transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    }

    .wp-block-gallery.justified-gallery > li:hover > figure figcaption
    .wp-block-gallery > .justified-gallery > li:hover > figure figcaption {
        bottom: 0;
        filter: "alpha(opacity=100)";
        opacity: 1;
    }

    .wp-block-gallery.justified-gallery > li.entry-visible,
    .wp-block-gallery.justified-gallery > li.entry-visible > figure,
    .wp-block-gallery.justified-gallery > li.entry-visible > figure > img,

    .wp-block-gallery > .justified-gallery > li.entry-visible,
    .wp-block-gallery > .justified-gallery > li.entry-visible > figure,
    .wp-block-gallery > .justified-gallery > li.entry-visible > figure > img,

    .wp-block-gallery.justified-gallery > li.jg-entry-visible,
    .wp-block-gallery.justified-gallery > li.jg-entry-visible > figure,
    .wp-block-gallery.justified-gallery > li.jg-entry-visible > figure > img,

    .wp-block-gallery > .justified-gallery > li.jg-entry-visible,
    .wp-block-gallery > .justified-gallery > li.jg-entry-visible > figure,
    .wp-block-gallery > .justified-gallery > li.jg-entry-visible > figure > img {
        filter: "alpha(opacity=100)";
        opacity: 1;
        -webkit-transition: opacity 500ms ease-in;
        -moz-transition: opacity 500ms ease-in;
        -o-transition: opacity 500ms ease-in;
        transition: opacity 500ms ease-in;
    }