/* =========================================================
   OOS Gallery Caption - CSS v1.007
   Editor UI + Front Caption Style
   ========================================================= */

/* ===== Editor UI（ツール側ログ表示など） ===== */
.oos-gc-sidebar-root {
  padding: 12px;
}

.oos-gc-log {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: pre-wrap;
}


/* =========================================================
   Gallery / Image Caption Style
   完全集約版
   ========================================================= */

/* absolute caption の基準を固定（PCでも必要） */
.wp-block-gallery .wp-block-image,
.wp-block-image {
  position: relative !important;
}

/* 共通キャプション設定 */
.wp-block-gallery .wp-element-caption,
.wp-block-image figcaption {

  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;

  color: #ffffff !important;
  text-shadow: 1px 1px 2px #000;

  margin: 0 !important;
  box-sizing: border-box !important;
}


/* ===== PC用（769px以上） ===== */
@media (min-width: 769px) {

  .wp-block-gallery .wp-element-caption,
  .wp-block-image figcaption {

    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)) !important;

    font-size: 16px !important;
    font-weight: bold !important;
    line-height: 1.4 !important;

    padding: 18px 10px 6px 10px !important;
  }
}


/* ===== スマホ用（768px以下） ===== */
@media (max-width: 768px) {

  .wp-block-gallery .wp-element-caption,
  .wp-block-image figcaption {

    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)) !important;

    font-size: 11px !important;
    line-height: 1.4 !important;

    padding: 15px 8px 5px 8px !important;
  }
}