.wp-block-gallery *, .gallery * {
    transition: 300ms ease-out
}

.gallery.is-equalize {
    display: flex;
    flex-wrap: wrap
}

.gallery .gallery-item {
    position: relative;
    flex-grow: 1;
    margin: 0
}

.gallery.gallery-columns-1.is-equalize .gallery-item {
    width: 100%
}

.gallery.gallery-columns-2.is-equalize .gallery-item {
    width: calc(100%/2)
}

.gallery.gallery-columns-3.is-equalize .gallery-item {
    width: calc(100%/3)
}

.gallery.gallery-columns-4.is-equalize .gallery-item {
    width: calc(100%/4)
}

.gallery.gallery-columns-5.is-equalize .gallery-item {
    width: calc(100%/5)
}

.gallery.gallery-columns-6.is-equalize .gallery-item {
    width: calc(100%/6)
}

.gallery.gallery-columns-7.is-equalize .gallery-item {
    width: calc(100%/7)
}

.gallery.gallery-columns-8.is-equalize .gallery-item {
    width: calc(100%/8)
}

.gallery.gallery-columns-9.is-equalize .gallery-item {
    width: calc(100%/9)
}

.gallery.is-equalize .gallery-item .gallery-icon,.gallery.is-equalize .gallery-item .gallery-icon img {
    height: 100%
}

.gallery .gallery-item .gallery-icon img {
    object-fit: cover;
    object-position: center;
    border: 0;
    outline: 0
}

.gallery .gallery-item figcaption,.wp-block-gallery .blocks-gallery-item figcaption {
    display: none
}

.wp-block-gallery {
    overflow: hidden
}

.gallery.is-masonry,.wp-block-gallery.is-masonry {
    display: block
}

.gallery.is-masonry .gallery-item,.wp-block-gallery.is-masonry .blocks-gallery-item {
    float: left;
    margin-right: 8px;
    margin-bottom: 8px
}

.gallery.column-large-1 .gallery-item,.wp-block-gallery.column-large-1 .blocks-gallery-item {
    width: 100%
}

.gallery.column-large-2 .gallery-item,.wp-block-gallery.column-large-2 .blocks-gallery-item {
    width: calc((100% - 32px)/2)
}

.gallery.column-large-3 .gallery-item,.wp-block-gallery.column-large-3 .blocks-gallery-item {
    width: calc((100% - 32px)/3)
}

.gallery.column-large-4 .gallery-item,.wp-block-gallery.column-large-4 .blocks-gallery-item {
    width: calc((100% - 32px)/4)
}

.gallery.column-large-5 .gallery-item,.wp-block-gallery.column-large-5 .blocks-gallery-item {
    width: calc((100% - 32px)/5)
}

.gallery.column-large-6 .gallery-item,.wp-block-gallery.column-large-6 .blocks-gallery-item {
    width: calc((100% - 32px)/6)
}

.gallery:hover .gallery-item,.wp-block-gallery:hover .blocks-gallery-item {
    opacity: .8
}

.gallery .gallery-item:hover,.wp-block-gallery .blocks-gallery-item:hover {
    opacity: 1;
    transform: scale(1.025);
    z-index: 2
}

@media only screen and (max-width:768px) {
    .gallery.column-medium-1 .gallery-item,.wp-block-gallery.column-medium-1 .blocks-gallery-item {
        width: 100%
    }

    .gallery.column-medium-2 .gallery-item,.wp-block-gallery.column-medium-2 .blocks-gallery-item {
        width: calc((100% - 32px)/2)
    }

    .gallery.column-medium-3 .gallery-item,.wp-block-gallery.column-medium-3 .blocks-gallery-item {
        width: calc((100% - 32px)/3)
    }

    .gallery.column-medium-4 .gallery-item,.wp-block-gallery.column-medium-4 .blocks-gallery-item {
        width: calc((100% - 32px)/4)
    }

    .gallery.column-medium-5 .gallery-item,.wp-block-gallery.column-medium-5 .blocks-gallery-item {
        width: calc((100% - 32px)/5)
    }

    .gallery.column-medium-6 .gallery-item,.wp-block-gallery.column-medium-6 .blocks-gallery-item {
        width: calc((100% - 32px)/6)
    }
}

@media only screen and (max-width:576px) {
    .gallery.column-small-1 .gallery-item,.wp-block-gallery.column-small-1 .blocks-gallery-item {
        width: 100%
    }

    .gallery.column-small-2 .gallery-item,.wp-block-gallery.column-small-2 .blocks-gallery-item {
        width: calc((100% - 32px)/2)
    }

    .gallery.column-small-3 .gallery-item,.wp-block-gallery.column-small-3 .blocks-gallery-item {
        width: calc((100% - 32px)/3)
    }

    .gallery.column-small-4 .gallery-item,.wp-block-gallery.column-small-4 .blocks-gallery-item {
        width: calc((100% - 32px)/4)
    }

    .gallery.column-small-5 .gallery-item,.wp-block-gallery.column-small-5 .blocks-gallery-item {
        width: calc((100% - 32px)/5)
    }

    .gallery.column-small-6 .gallery-item,.wp-block-gallery.column-small-6 .blocks-gallery-item {
        width: calc((100% - 32px)/6)
    }
}