/**
 * ----------------------------------------------------------------------------
 * Frontend CSS
 * ----------------------------------------------------------------------------
 */
.wp-block-bi-blocks-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.wp-block-bi-blocks-gallery img {
    height: 200px;
    width: auto;
    margin: 4px;
    transition: all 0.5s;
    border-radius: 2px;
    vertical-align: middle;
}

.wp-block-bi-blocks-gallery>.wrap {
    display: block;
    text-align: center;
    margin: 0px;
    position: relative;
}

.wp-block-bi-blocks-gallery .caption {
    padding:8px;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.74);
    z-index: 1;
    pointer-events: none;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    transition: all 0.2s;
    opacity: 0;
}

.wp-block-bi-blocks-gallery>.wrap:hover .caption {
    opacity: 1;
}
.wp-block-bi-blocks-gallery.grid img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius:16px;
    margin:16px;
}

@media all and (max-width: 768px) {
    .wp-block-bi-blocks-gallery {
        justify-content:center;
    }
}
