/* 手機隱藏指定區塊 */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .mobile-full {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {

  /* 最終強制解：解除主題對容器的寬度限制 */
  .mobile-full,
  .mobile-full *,
  .wp-block-group.mobile-full,
  .wp-block-column.mobile-full {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

}

@media (max-width: 768px) {

  /* Media & Text 手機版強制橫排 */
  .fix-media-text-mobile {
    grid-template-columns: 1fr !important;
  }

  .fix-media-text-mobile .wp-block-media-text__content {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .fix-media-text-mobile p,
  .fix-media-text-mobile h1,
  .fix-media-text-mobile h2,
  .fix-media-text-mobile h3 {
    white-space: normal !important;
    word-break: break-word !important;
  }

}

@media (max-width: 768px) {
  .mobile-img-small img {
    max-width: 80%;
    margin: 0 auto;
  }
}

.img-center img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .mobile-img-gap img {
    margin-bottom: 40px;
  }
}

/* 解除首頁 Hero 滿版左右留白 */
.wp-block-cover.alignfull {
  margin-left: calc(-1 * var(--wp--style--root--padding-left, 0px));
  margin-right: calc(-1 * var(--wp--style--root--padding-right, 0px));
}

/* 桌機 / 平板：滿版 */
.hero-cover {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hero-cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* 手機：取消滿版，避免歪掉 */
@media (max-width: 768px) {
  .hero-cover {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* 解除外層限制，避免 sticky 失效 */
.wp-site-blocks {
  overflow: visible;
}

/* 讓 header 本身成為 sticky 容器 */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* 你的實際頁首內容 */
.site-header {
  background-color: #2e2e2e; /* 你目前用的深色 */
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}


