@media (max-width: 767px) {
  /* 手機選單浮層容器，提升層級 */
  .ast-main-header-wrap.main-header-bar-wrap {
    z-index: 9999 !important;
    top: 0;
    left: 0;
    width: 100{df4313fd60c9fb5d8174d8edcb0ea631d577700dec8e4e531cac2ad9f2082516};
    background: #fff;
  }

  /* 選單內層 */
  .ast-builder-menu-mobile .main-navigation {
    position: relative;
    z-index: 9998 !important;
  }

  /* Elementor 的所有內容，明確降層級 */
  .elementor-section,
  .elementor-container,
  .elementor-widget,
  .elementor-widget-container {
    z-index: 1 !important;
    position: relative !important;
  }

  /* 防止滑動背景 */
  html.ast-header-break-point.ast-mobile-menu-active {
    overflow: hidden;
  }
}


/* Home video layout fix */
body.page-id-47 .elementor-element-da8f480 .video-fullscreen-container {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
}
body.page-id-47 .elementor-element-da8f480 .video-fullscreen-card,
body.page-id-47 .elementor-element-da8f480 .video-thumbnail,
body.page-id-47 .elementor-element-da8f480 .video-thumbnail img,
body.page-id-47 .elementor-element-da8f480 .video-overlay {
  width: 100% !important;
  height: 100% !important;
}


body.page-id-47 .elementor-element-da8f480 .video-play-button {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 50% !important;
}
body.page-id-47 .elementor-element-da8f480 .video-fullscreen-card:hover .video-play-button {
  transform: translate(-50%, -50%) scale(1.1) !important;
}
body.page-id-47 .elementor-element-da8f480 .video-play-button::before {
  top: 50% !important;
  left: 54% !important;
  transform: translate(-50%, -50%) !important;
}
body.page-id-47 .elementor-element-da8f480 .video-play-button::after {
  top: 50% !important;
  left: 50% !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  animation: metaguru-video-pulse 2s infinite !important;
}
body.page-id-47 .elementor-element-da8f480 .video-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.35), rgba(0,0,0,.12)) !important;
}
body.page-id-47 .elementor-element-da8f480 .video-card-content {
  background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.55), transparent) !important;
}
@keyframes metaguru-video-pulse {
  from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  to { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}


/* Home video modal fix */
body.page-id-47 .elementor-element-da8f480 .video-modal {
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 1000000 !important;
}
body.page-id-47 .elementor-element-da8f480 .video-modal-content {
  width: min(1200px, calc(100vw - 48px), calc(177.78vh - 171px)) !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  max-width: none !important;
  max-height: none !important;
  overflow: visible !important;
}
body.page-id-47 .elementor-element-da8f480 #videoFrame {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 12px;
}
body.page-id-47 .elementor-element-da8f480 .video-modal-close {
  top: -56px !important;
  right: 0 !important;
  z-index: 5;
  line-height: 1;
}
