.elementor-kit-21{--e-global-color-primary:#19181A;--e-global-color-secondary:#1E2125;--e-global-color-text:#D9D9D9;--e-global-color-accent:#F0ABFC;--e-global-typography-primary-font-family:"Roboto";--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Roboto Slab";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Noto Sans";--e-global-typography-text-font-weight:700;--e-global-typography-text-font-style:normal;--e-global-typography-text-text-decoration:none;--e-global-typography-accent-font-family:"Roboto";--e-global-typography-accent-font-weight:500;}.elementor-kit-21 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;}.elementor-widget:not(:last-child){--kit-widget-spacing:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}.site-header .site-branding{flex-direction:column;align-items:stretch;}.site-header{padding-inline-end:0px;padding-inline-start:0px;}.site-footer .site-branding{flex-direction:column;align-items:stretch;}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-kit-21{--e-global-typography-text-font-size:13px;--e-global-typography-text-line-height:15px;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}/* Start custom CSS *//* 讓 Image Widget 變成定位容器 */
.photo-title-3line {
  position: relative;
}

/* 圖片本身：上圓角、下直角 */
.photo-title-3line img {
  border-radius: 8px 8px 0 0;
  display: block;
}

/* 標題預設狀態：3 行，覆蓋在圖片底部 */
.photo-title-3line figcaption.widget-image-caption.wp-caption-text {
  position: absolute;
  bottom: px;
  left: 0;
  width: 100%;

  padding: 02px 5px;
  background: #404040;
  color: #d9d9d9;
  
      border-bottom-left-radius: .3em;
    border-bottom-right-radius: .3em;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;

  line-height: 1.4;
  font-size: 14px;

  transition: all 0.3s ease;
  z-index: 2;
}

/* hover 時：只展開「被 hover 的那一張圖片」 */
.photo-title-3line:hover > figcaption.widget-image-caption.wp-caption-text {
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* 調整 Image Gallery 圖片之間的間距 */
.elementor-image-gallery .gallery-item {
  padding: 4px; /* 這個就是圖片之間的距離 */
}
.elementor-image-gallery .gallery-item img {
  border-radius: 8px 8px 8px 8px;
  display: block;
}

/* 只影響桌機版 */
@media (min-width: 1024px) {

  /* 限制整個 Gallery 寬度，避免圖片過大 */
  .elementor-image-gallery {
    max-width: 900px;   /* 可改成 800 / 1000 */
    margin: 0 auto;
  }

  /* 強制一排只顯示一張 */
  .elementor-image-gallery .gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

}

/* iPad 直向 左右留白問題 */
@media (min-width: 768px) and (max-width: 1023px) {

  .elementor-image-gallery {
    max-width: 100%;
    padding-left: 6px;
    padding-right: 6px;
  }

}

/* Posts widget 標題 套用 photo-title-3line */
.elementor-post__title,
.elementor-post__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* 移除 Posts 標題與圖片之間的留白 */
.elementor-post__text {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* 手機端：調整 Post 標題字體 + 縮小圖片與標題距離 */
@media (max-width: 767px) {

  /* 標題字體 */
  .elementor-post__title,
  .elementor-post__title a {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  /* 圖片底下的留白（通常是 margin） */
  .elementor-post__thumbnail {
    margin-bottom: 0 !important; /* 原本通常是 10~20px */
  }

  /* 標題整塊上方的留白（padding） */
  .elementor-post__text {
    padding-top: 0 !important; /* 視覺會立刻貼近圖片 */
  }

}
 /* 修復手機端圖片超出邊緣 */
html, body {
  max-width: 100%;
  overflow-x: hidden !important;
}/* End custom CSS */