.wp-core-gallery {
    // Hide caption on lower breakpoints for:
    .columns-2 {
        .blocks-gallery-grid figcaption {
            display: none;

            @include media-breakpoint-up(md) {
                display: initial;
            }
        }
    }

    // Always hide caption for:
    .columns-3,
    .columns-4,
    .columns-5,
    .columns-6 {
        .blocks-gallery-grid figcaption {
            display: none;
        }
    }
}
