.is-twentynineteen {
  .entry-content div[class*="wp-block-responsive-block-editor-addons-gallery"] {
    margin-bottom: 46px;
    margin-top: 46px;

    .responsive-block-editor-addons-gallery--caption {
      font-family: $default-font;
      font-size: 0.71111em;
      line-height: 1.6;
      margin: 0 0 -20px;
      padding: 0.5rem;
      text-align: center;
    }
  }

  .wp-block-responsive-block-editor-addons-gallery-stacked
    figcaption:not([class*="font-size"]) {
    font-size: 0.71111em;
  }
}

.is-twentyseventeen {
  .entry-content div[class*="wp-block-responsive-block-editor-addons-gallery"] {
    margin-bottom: 1.75em;
    margin-top: 1.65em;

    .responsive-block-editor-addons-gallery--primary-caption {
      font-style: italic;
      margin-bottom: -10px;
      margin-top: 1em;
    }

    &:not([class*="masonry"]) {
      .responsive-block-editor-addons-gallery:not(.has-caption-color)
        figcaption {
        color: $dark-gray-500;
      }
    }
  }

  .wp-block-responsive-block-editor-addons-gallery-masonry figcaption {
    padding-bottom: 6px;
  }
}

.is-twentysixteen {
  .entry-content div[class*="wp-block-responsive-block-editor-addons-gallery"] {
    margin-bottom: 2.3em;
    margin-top: 2.3em;

    .responsive-block-editor-addons-gallery--primary-caption {
      margin-bottom: -10px;
      margin-top: 0.6em;
    }
  }

  .wp-block-responsive-block-editor-addons-gallery-masonry figcaption {
    padding-bottom: 6px;
  }
}

.is-twentyfifteen {
  .entry-content div[class*="wp-block-responsive-block-editor-addons-gallery"] {
    margin-bottom: 2.2em;
    margin-top: 2.2em;

    .responsive-block-editor-addons-gallery--primary-caption {
      margin-bottom: -15px;
      margin-top: 0.5em;
      padding-bottom: 0;
    }
  }

  .wp-block-responsive-block-editor-addons-gallery-masonry figcaption {
    font-size: 13px !important;
  }
}

.is-twentyfourteen {
  .entry-content div[class*="wp-block-responsive-block-editor-addons-gallery"] {
    margin-bottom: 30px;
    margin-top: 30px;

    .responsive-block-editor-addons-gallery--primary-caption {
      margin-bottom: -7px;
      text-align: left;
    }
  }
}

.is-twentythirteen {
  .entry-content div[class*="wp-block-responsive-block-editor-addons-gallery"] {
    margin-bottom: 30px;
    margin-top: 34px;

    .responsive-block-editor-addons-gallery--primary-caption {
      margin-bottom: -10px;
    }
  }

  .wp-block-responsive-block-editor-addons-gallery-masonry figcaption {
    font-size: 13px !important;
  }
}

.is-twentytwelve {
  .entry-content div[class*="wp-block-responsive-block-editor-addons-gallery"] {
    margin-bottom: 32px;
    margin-top: 32px;

    // Override the theme's border radius behavior for our blocks.
    .responsive-block-editor-addons-gallery:not([class*="border-radius"]) img {
      border-radius: inherit;
    }

    .responsive-block-editor-addons-gallery--primary-caption {
      margin-bottom: -10px;
    }
  }

  .wp-block-responsive-block-editor-addons-gallery-masonry figcaption {
    padding-bottom: 6px;
  }
}

.is-twentyeleven {
  .entry-content div[class*="wp-block-responsive-block-editor-addons-gallery"] {
    margin-bottom: 32px;
    margin-top: 33px;

    // Override the theme's padding/border effect on our blocks.
    .responsive-block-editor-addons-gallery img {
      border: 0;
      max-width: 100%;
      padding: 0;
    }

    .responsive-block-editor-addons-gallery--primary-caption {
      margin-bottom: -15px;

      &::before {
        color: #666;
        content: "\2014";
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        left: 10px;
        margin-right: 5px;
        position: absolute;
        top: 0;
      }
    }
  }

  .wp-block-responsive-block-editor-addons-gallery-stacked figcaption {
    padding-left: 1em !important;
    padding-right: 1em !important;
    text-align: center !important;

    &::before {
      display: none;
      padding-left: 0;
    }
  }
}
