////
/// Gallery block.
///
/// @group  Blocks
/// @author Sky Shabatura <theme@sky.camp>
/// @link   https://taproot-theme.com
////

.blocks-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--block-spacing);
    padding: 0;
    margin: 0;
    list-style: none;
}

.blocks-gallery-item {
    figure {
        margin: 0;
    }
    img {
        display: block;
    }
}

.wp-block-gallery.is-cropped {
    .blocks-gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    figure {
        height: 100%;
    }
}
