.wp-block-gallery {
    --wp--style--gallery-gap-default: 0.5em;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    background: var(--theme--color--primary);
    color: var(--theme--color--background);
    margin: 0;
    padding: 0.5em;
    font-size: var(--theme--font-size--small);
    text-align: center;
    line-height: 1.5;
}
