.md-col-article-content .md-responsive-image,
.editor-styles-wrapper .md-responsive-image {
  width: 100%;
  max-width: 100%;
  margin: 32px auto;
  box-sizing: border-box;
  overflow: hidden;
  clear: both;
}

.md-col-article-content .md-responsive-image .wp-block-image,
.editor-styles-wrapper .md-responsive-image .wp-block-image {
  width: min(100%, 760px);
  max-width: min(100%, 760px);
  margin: 0 auto;
  float: none;
  clear: both;
  text-align: center;
}

.md-col-article-content .md-responsive-image .wp-block-image:not(:has(img[src]:not([src=""]))),
.md-col-article-content .md-responsive-image .wp-block-image:empty {
  display: none !important;
}

.md-col-article-content .md-responsive-image .wp-block-image img,
.editor-styles-wrapper .md-responsive-image .wp-block-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 5px;
}

.md-col-article-content .md-responsive-image .wp-block-image img:not([src]),
.md-col-article-content .md-responsive-image .wp-block-image img[src=""] {
  display: none;
}

.md-col-article-content .md-responsive-image__pc,
.editor-styles-wrapper .md-responsive-image__pc,
.md-col-article-content .md-responsive-image__sp,
.editor-styles-wrapper .md-responsive-image__sp {
  width: 100%;
}

.md-col-article-content .md-responsive-image__sp {
  display: none;
}

.md-col-article-content .md-responsive-image:not(.md-responsive-image--has-sp) .md-responsive-image__pc,
.md-col-article-content .md-responsive-image--has-sp .md-responsive-image__pc {
  display: block;
}

.md-col-article-content .md-responsive-image__caption,
.editor-styles-wrapper .md-responsive-image__caption {
  width: min(100%, 760px);
  max-width: min(100%, 760px);
  margin: 10px 0 0;
  margin-left: auto;
  margin-right: auto;
  font-size: 13px;
  line-height: 1.7;
  color: #666666;
  text-align: left;
}

.md-col-article-content .md-responsive-image__label {
  display: none;
}

.editor-styles-wrapper .md-responsive-image__label {
  display: block;
  width: min(100%, 760px);
  max-width: min(100%, 760px);
  margin: 0 auto 8px;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 700;
  color: #0b65b9;
  letter-spacing: 0.04em;
}

.editor-styles-wrapper .md-responsive-image .block-editor-media-placeholder,
.editor-styles-wrapper .md-responsive-image .components-placeholder {
  margin: 0 auto;
  width: min(100%, 760px);
  max-width: min(100%, 760px);
  min-height: 220px;
  border: 1px dashed #9ca3af;
  border-radius: 5px;
  background: #f8fafc;
  box-sizing: border-box;
}

.editor-styles-wrapper .md-responsive-image .block-editor-media-placeholder .components-button,
.editor-styles-wrapper .md-responsive-image .components-placeholder .components-button {
  min-width: 0;
}

.editor-styles-wrapper .md-responsive-image__sp {
  display: block;
  margin-top: 12px;
}

@media (max-width: 767px) {
  .md-col-article-content .md-responsive-image,
  .editor-styles-wrapper .md-responsive-image {
    margin: 24px auto;
  }

  .md-col-article-content .md-responsive-image--has-sp .md-responsive-image__pc {
    display: none;
  }

  .md-col-article-content .md-responsive-image--has-sp .md-responsive-image__sp {
    display: block;
  }
}
