/* ✅ 正確寫法：不靠 JS，直接 fixed */
.elementor-location-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
}

/* Elementor JS sticky class 也補上，雙重保險 */
.elementor-sticky,
.elementor-sticky--active {
  z-index: 9999 !important;
}

/* 壓低輪播 z-index，避免蓋過 header */
.elementor-main-swiper,
.swiper {
  z-index: auto !important;
}

/* ================================================
   WordPress Admin Bar 存在時，header 往下移
   admin bar 高度：桌機 32px，手機 46px
   ================================================ */

/* 桌機：admin bar 高度 32px */
.admin-bar .elementor-location-header {
  top: 32px !important;
}

/* 手機：admin bar 高度 46px */
@media screen and (max-width: 782px) {
  .admin-bar .elementor-location-header {
    top: 46px !important;
  }
}

/* admin bar 消失後（捲動時 WordPress 會隱藏它），header 回到頂部 */
@media screen and (max-width: 600px) {
  .admin-bar .elementor-location-header {
    top: 0 !important;
  }
}

.menu-en {
    display: block;
    font-size: 10px;
    color: #000;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

nav .menu-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sub-arrow{
	display:none !important;
}

/* 只作用在這個 taxonomy filter（你已加的 class：events-tax-filter） */
.events-tax-filter button.e-filter-item{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

/* 英文第二行的共用樣式 */
.events-tax-filter button.e-filter-item::after{
  display: block;
  font-size: 0.78em;
  opacity: 1;
  margin-top: 1px;
  white-space: normal;
  line-height: 1.2;
}

/* 各分類英文：用 data-filter 精準對應 */
.events-tax-filter button.e-filter-item[data-filter="workshop-lecture-camps"]::after{
  content: "Workshop / Lecture / Camps";
}

.events-tax-filter button.e-filter-item[data-filter="puppet-show"]::after{
  content: "Puppet Show";
}

.events-tax-filter button.e-filter-item[data-filter="master-class"]::after{
  content: "Master Class";
}

.events-tax-filter button.e-filter-item[data-filter="festival-air-presentation"]::after{
  content: "Festival / AIR Presentation";
}

/* ALL 的按鈕（通常 data-filter="__all" 或空值；你這邊先給兩種常見寫法） */
.events-tax-filter button.e-filter-item[data-filter="__all"]::after,
.events-tax-filter button.e-filter-item[data-filter="all"]::after{
  content: "All";
}