/*
Theme Name: Cocoon Child
Template: cocoon-master
*/

/* ギャラリー ここから */
.wp-block-gallery {
  margin-bottom: 40px !important;
}
.wp-block-gallery .wp-block-image {
  margin: 4px !important;
}
.wp-block-gallery img {
  border-radius: 4px;
  transition: transform 0.3s ease;
}
.wp-block-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 記事ヘッダー ここから */
.single .article-header .cat-label {
  display: none !important;
}

/* カラム内ブログカード ここから */
.wp-block-columns .wp-block-embed__wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}
.wp-block-columns .blogcard-wrap {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* タブレット ここから */
@media screen and (max-width: 768px) {
  .has-text-align-center .bold {
    font-size: 0.8em;
  }
}

/* 表 ここから */
@media screen and (max-width: 767px) {
  .wp-block-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .wp-block-table table {
    min-width: 600px;
  }
}

/* ポートフォリオ ここから */
@media screen and (max-width: 600px) {
  .my-portfolio,
  .fixed-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }
  .my-portfolio .wp-block-image,
  .fixed-grid .wp-block-image {
    width: calc(50% - 5px) !important;
    flex-basis: calc(50% - 5px) !important;
    margin: 0 0 10px !important;
  }
  .my-portfolio .wp-block-image img,
  .fixed-grid .wp-block-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }
}

/* SP ここから */
@media screen and (max-width: 480px) {
  div.entry-content div.child-btn-area a {
    font-size: 11px !important;
    height: auto !important;
    padding: 8px 10px !important;
    margin-bottom: 8px !important;
    display: inline-flex !important;
  }
}
