/* CSS Reset & 基礎設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.fig-frame {
  position: relative;
  width: 100%;
  background-color: transparent;
  overflow: hidden;
  container-type: inline-size;
}

.fig-frame__layer {
  position: absolute;
}

.fig-frame__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 光影流動效果：僅疊加於背景圖層之上，靠 DOM 疊層順序讓後續文字/圖片圖層自然遮蓋 */
/* <div class="fig-frame__glow" aria-hidden="true"></div> 放在背景圖之後、其他圖片之前 */
.fig-frame__glow {
  position: absolute;
  inset: -45%;
  pointer-events: none;
  mix-blend-mode: overlay;
  background:
    radial-gradient(
      circle at 28% 32%,
      rgba(255, 196, 110, 0.85),
      transparent 30%
    ),
    radial-gradient(circle at 74% 62%, rgba(255, 150, 60, 0.8), transparent 22%);
  animation: fig-frame-glow-drift 5s linear infinite;
}

@keyframes fig-frame-glow-drift {
  0% {
    transform: translate(-10%, -8%) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(9%, -6%) scale(1.5) rotate(45deg);
  }
  66% {
    transform: translate(4%, 10%) scale(0.95) rotate(25deg);
  }
  100% {
    transform: translate(-10%, -8%) scale(1) rotate(0deg);
  }
}

/* 飛鳥循環位移呼吸動畫 */
.anim-bird-float {
  animation: bird-float var(--bird-duration, 4.8s) ease-in-out var(--bird-delay, 0s) infinite;
  transform-origin: center center;
  will-change: transform;
}

.anim-bird-float--alt {
  --bird-duration: 5.4s;
  --bird-delay: -1.6s;
  --bird-x: 2.2%;
  --bird-y: -5.5%;
  --bird-scale: 1.045;
  --bird-rotate: -2.5deg;
}

.anim-bird-float--slow {
  --bird-duration: 6s;
  --bird-delay: -2.8s;
}

@keyframes bird-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate3d(var(--bird-x, 0.8%), var(--bird-y, -2.4%), 0)
      scale(var(--bird-scale, 1.022)) rotate(var(--bird-rotate, -1.2deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .fig-frame__glow,
  .anim-bird-float {
    animation: none;
  }
}


/* RWD設定 */
.desktop-view {
  display: block;
  --container-width: 1920;
}

.mobile-view {
  display: none;
  --container-width: 800;
  padding-bottom: var(--mobile-menu-height);
  background-color: #f2f2f2;
  background-image: url("../images/background.webp");
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: top center;
}

.mobile-view:not(:has(.mobile-menu)) {
  padding-bottom: 0;
}

/* Custom Reservation Form Section */
.form-section {
  padding: max(8px, 0.83cqi) 4.92% max(16px, 2cqi);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.form-section__inner {
  width: 100%;
  background-color: #fafafa;
  border: 1px solid #969f92;
  padding: max(28px, 6.2cqi) max(12px, 4.8cqi) max(28px, 5.8cqi);
}

.form-header {
  text-align: center;
  margin-bottom: max(22px, 4.5cqi);
}

.form-title {
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: max(20px, 4.2cqi);
  font-weight: 700;
  color: #2f482e;
  letter-spacing: 0.25em;
  padding-left: 0.25em;
  line-height: 1.3;
}

.form-subtitle {
  font-family: "Noto Serif TC", "Times New Roman", serif;
  font-size: max(11px, 1.7cqi);
  color: #555c54;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  margin-top: max(6px, 0.9cqi);
}

.form-section .reservation-form {
  gap: max(14px, 2.8cqi);
}

.form-section .reservation-form * {
  font-size: max(13px, 2.35cqi);
}

.form-field-row {
  display: flex;
  align-items: center;
  gap: max(6px, 2cqi);
}

.form-section .reservation-form .form-label {
  display: flex !important;
  align-items: center;
  width: max(64px, 14cqi);
  flex-shrink: 0;
  color: #222222;
  font-size: max(13px, 2.35cqi);
  font-weight: 500;
}

.form-section .reservation-form .req {
  color: #c62828;
  margin-left: 4px;
}

.form-section .reservation-form .req--placeholder {
  color: transparent;
  margin-left: 4px;
}

.form-control-box {
  flex: 1;
  min-width: 0;
}

.form-section .form-input,
.form-section .form-select {
  width: 100%;
  height: max(38px, 6.2cqi);
  padding: 0 max(10px, 2cqi);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: max(14px, 2.35cqi);
  color: #222222;
  background-color: #ffffff;
  border: 1px solid #8c8c8c;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-section .form-input:focus,
.form-section .form-select:focus {
  border-color: #2f482e;
}

.form-section .form-input::placeholder {
  color: #757575;
}

.form-section .form-input[type="tel"],
.form-section .form-input[type="email"] {
  text-indent: 0;
}

.form-section .form-select {
  appearance: none;
  -webkit-appearance: none;
  line-height: calc(max(38px, 6.2cqi) - 2px);
  padding-right: max(24px, 4.2cqi);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.form-section .form-select::picker-icon {
  display: none;
  content: none;
}

.form-section .form-select:has(option[value=""]:checked) {
  color: #757575;
}

.form-section .select-icon {
  right: max(10px, 1.8cqi);
  width: max(10px, 1.4cqi);
  height: max(8px, 1.1cqi);
  color: #222222;
}

.form-section .zipcode3 {
  display: flex;
  align-items: center;
  gap: max(6px, 2cqi);
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.zipcode3__fields {
  display: flex;
  gap: max(6px, 1.6cqi);
}

.zipcode3__fields .form-select {
  padding-left: max(8px, 1.6cqi);
  padding-right: max(20px, 3.6cqi);
}

.zipcode3__fields .select-icon {
  right: max(7px, 1.4cqi);
}

.zipcode3__fields .select-wrapper {
  flex: 1;
  min-width: 0;
}

.form-agree-row {
  display: flex;
  justify-content: center;
  margin-top: max(6px, 1.2cqi);
}

.form-section .checkbox-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  gap: max(8px, 1.2cqi);
  color: #222222;
  font-size: max(12px, 2.0cqi);
}

.form-section .checkbox-label span {
  font-size: max(12px, 2.0cqi);
}

.form-section .checkbox-label input[type="checkbox"] {
  width: max(15px, 2.4cqi);
  height: max(15px, 2.4cqi);
  accent-color: #2f482e;
  flex-shrink: 0;
}

.form-section .privacy-modal-trigger {
  color: #222222;
  text-decoration: underline;
  cursor: pointer;
}

.form-section .submit-btn-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: max(4px, 0.8cqi);
}

.form-section .submit-btn {
  min-width: max(150px, 31cqi);
  height: max(42px, 6.8cqi);
  padding: 0 max(24px, 4cqi);
  background-color: #2f482e;
  color: #ffffff;
  border: none;
  border-radius: 2px;
  font-size: max(15px, 2.4cqi);
  letter-spacing: 0.25em;
  padding-left: calc(max(24px, 4cqi) + 0.25em);
  transition: background-color 0.2s ease;
}

.form-section .submit-btn:hover {
  background-color: #233722;
}

.form-section .submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 800px) {
  .desktop-view {
    display: none;
  }

  .mobile-view {
    display: block;
  }
}

:root {
  --web-breakpoint: 800;
  /* 響應式斷點基準值（桌機/手機切換），需與 @media (max-width) 及 window.__webBreakpoint 同步修改 */
  /* Menu */
  --desktop-menu-height: 80px;
  --mobile-menu-height: 70px;
  /* 依設計稿實際高度覆寫此值 */
  --theme-bg-color: #2f482e;
  /* 純手機版模式主色調（設計稿主視覺深綠色） */
}

/* 選單樣式 */
.desktop-menu,
.mobile-menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 2.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
}

.desktop-menu {
  padding-right: 0;
  height: var(--desktop-menu-height);
  /* 選單背景一律使用主題色（--theme-bg-color）；設計稿明確提供選單底圖時才改回 url() */
  background: var(--theme-bg-color);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
  font-size: clamp(
    14px,
    calc(16 / var(--container-width, 1920) * 100cqi),
    20px
  );
  /* backdrop-filter: saturate(180%) blur(20px); */
}
.mobile-menu {
  height: var(--mobile-menu-height);
  background: var(--theme-bg-color);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
  font-size: clamp(
    10px,
    calc(16 / var(--container-width, 1920) * 100cqi),
    18px
  );
  /* 毛玻璃：主要於使用背景圖片時開啟 */
  /* backdrop-filter: saturate(180%) blur(20px); */
}

.desktop-menu--logo {
  width: clamp(180px, calc(180 / var(--container-width, 1920) * 100cqi), 220px);
}
.mobile-menu--logo {
  width: clamp(100px, 35%, 180px);
  display: flex;
  align-items: center;
}

.desktop-menu--container,
.mobile-menu--container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(12px, 1.5%, 28px);
  width: 60%;
}

.desktop-menu--container {
  width: clamp(320px, 36%, 560px);
}

.desktop-menu--logo {
  display: flex;
  align-items: center;
}

.desktop-menu--logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* 第一個項目左側不需要分隔線 */
.desktop-menu--item:first-child::before,
.mobile-menu--item:first-child::before {
  display: none;
}

.desktop-menu--item span {
  font-size: var(--menu-font-size);
  letter-spacing: 0.1em;
}

.mobile-menu--item {
  position: relative;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  flex-grow: 1;
  /* width: clamp(12px, 8vw, 48px); */
}

.desktop-menu--item::before,
.mobile-menu--item::before {
  position: absolute;
  content: "";
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  left: clamp(-6px, -0.75%, -28px);
}

.desktop-menu--item {
  position: relative;
  text-decoration: none;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding-block: 12px;
}

.desktop-menu--item svg {
  width: clamp(14px, 2vw, 20px);
  height: clamp(14px, 2vw, 20px);
}

.mobile-menu--item svg {
  width: clamp(12px, 4vw, 20px);
  height: clamp(12px, 4vw, 20px);
}

.desktop-menu--item span,
.mobile-menu--item span {
  color: #fff;
  text-align: center;
}

/* 
   預留固定選單的高度，避免頁面最下方內容被選單蓋住：
   設計稿有 footer 時，由 .site-footer 自己預留（文字會置中於選單之上）；
   沒有 footer 時，由 .desktop-view／.mobile-view 的 padding-bottom 預留
*/
.desktop-view:not(:has(.site-footer)) {
  padding-bottom: var(--desktop-menu-height);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--desktop-menu-height) + 44px);
  padding: 0 0 var(--desktop-menu-height);
  /* background-color／color／font-size 依設計稿設定 */
}

/* 手機版有 footer 時，高度由 footer 預留，view 本身不再重複預留 */
.mobile-view:has(.site-footer) {
  padding-bottom: 0;
}

.mobile-view .site-footer {
  min-height: calc(var(--mobile-menu-height) + 44px);
  padding-bottom: var(--mobile-menu-height);
}

/* 只有手機版時額外樣式 */
body.mobile-only-layout {
  background-color: var(--theme-bg-color);
}

body.mobile-only-layout .mobile-view {
  display: block;
  max-width: 800px;
  /* 與 breakpoint 相同 */
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Swiper Overrides */
.swiper-container-wrapper {
  overflow: hidden;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom Swiper Pagination */
.swiper-pagination {
  position: absolute;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  --swiper-pagination-bottom: 0;
}

.swiper-pagination-bullet {
  width: 1.44cqi;
  height: 1.44cqi;
  background-color: rgba(54, 87, 60, 0.45);
  opacity: 1;
  border-radius: 50%;
  border: none;
  margin: 0 !important;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
  background-color: #2f482e;
}

.justify-center {
  justify-content: center;
}
.justify-start {
  justify-content: start;
}
.justify-end {
  justify-content: end;
}

.object-cover {
  object-fit: cover;
}
.object-contain {
  object-fit: contain;
}

/* Custom Swiper Arrows */
.custom-arrows-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.custom-prev,
.custom-next {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.custom-prev::after,
.custom-next::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.custom-prev::after {
  border-right: 12px solid #926127;
  margin-right: 4px;
}

.custom-next::after {
  border-left: 12px solid #926127;
  margin-left: 4px;
}

/* Form Styles */
.form-layer {
  display: flex;
  align-items: center;
  justify-content: center;
}

.reservation-form {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: calc(16 / var(--container-width, 1920) * 100cqi);
  /* 背景填色 */
  /* background-color: #fff; */
  /* 內距 */
  /* padding: calc(48 / var(--container-width, 1920) * 100cqi) 0
    calc(28 / var(--container-width, 1920) * 100cqi); */
}

.desktop-view .reservation-form {
  --form-font-size: clamp(
    12px,
    calc(16 / var(--container-width, 1920) * 100cqi),
    20px
  );
}
.mobile-view .reservation-form {
  --form-font-size: clamp(
    10px,
    calc(16 / var(--container-width, 1920) * 100cqi),
    18px
  );
}

.reservation-form * {
  font-size: var(--form-font-size);
}

/* 單選 */
.radio-group {
  display: flex;
  gap: calc(20 / var(--container-width, 1920) * 100cqi);
  margin-bottom: calc(20 / var(--container-width, 1920) * 100cqi);
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: calc(8 / var(--container-width, 1920) * 100cqi);
  cursor: pointer;
}

.radio-group input[type="radio"] {
  width: calc(16 / var(--container-width, 1920) * 100cqi);
  height: calc(16 / var(--container-width, 1920) * 100cqi);
  margin: 0;
}

/* 文字輸入 */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: calc(12 / var(--container-width, 1920) * 100cqi)
    calc(16 / var(--container-width, 1920) * 100cqi);
  font-family: "NotoSansHans", sans-serif;
  outline: none;
  /* 字色 */
  color: #333;
  /* 底色 */
  background-color: rgba(255, 255, 255, 0.75);
  /* 邊框 */
  border-radius: calc(4 / var(--container-width, 1920) * 100cqi);
  border: 1px solid #ddd;
}

.form-input[type="tel"],
.form-input[type="email"] {
  /* 對齊中文 */
  text-indent: 4px;
}

.form-textarea {
  resize: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #555;
}

.reservation-form .form-control {
  flex: 1;
  /* margin-left: 20px; */
  display: flex;
}

.form-container-wrapper {
  width: 30vw;
  max-width: 640px;
  margin: 0 auto;
}
.form-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

.reservation-form .form-label {
  display: flex;
  align-items: center;
  width: clamp(60px, 20%, 100px);
  flex-shrink: 0;
  color: #192532;
  /* label大小與input不同的時候 */
  /* font-size: clamp(14px, 4vw, 16px); */
}

.reservation-form .form-label .label-text {
  flex: 1;
  text-align: justify;
  text-align-last: justify;
}
.reservation-form .req {
  color: #ff0000;
  margin-left: 5px;
}
.reservation-form .req--placeholder {
  color: transparent;
}
.reservation-form .form-terms {
  color: #ffffff;
  text-align: center;
  margin-block: 10px;
}
.form-group {
  display: flex;
  align-items: center;
  border: 1px solid #ffffff;
  background: rgba(255, 255, 234, 0.7);
  border-radius: 8px;
  padding: 8px 15px;
}
.v-form-group {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 24px;
}
.v-form-group .form-textarea {
  padding-left: 0;
}

@media screen and (max-width: 800px) {
  .form-row {
    flex-direction: column;
  }
}

.select-wrapper {
  position: relative;
}
.select-wrapper select {
  height: 100%;
}

.select-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 16px;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.select-icon svg {
  width: 100%;
  height: 100%;
}

.checkbox-label {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 10%;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.radio-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px !important;
  color: #555;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: calc(8 / var(--container-width, 1920) * 100cqi);
  cursor: pointer;
}
.radio-group input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: calc(24 / var(--container-width, 1920) * 100cqi);
  height: calc(24 / var(--container-width, 1920) * 100cqi);
  background-color: #ffffff;
  border-radius: calc(6 / var(--container-width, 1920) * 100cqi);
  border: none;
  cursor: pointer;
  position: relative;
}
.radio-group input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(12 / var(--container-width, 1920) * 100cqi);
  height: calc(12 / var(--container-width, 1920) * 100cqi);
  background-color: #4c7a6d;
  border-radius: calc(3 / var(--container-width, 1920) * 100cqi);
}

.zipcode3 {
  display: flex;
  gap: 1rem;
}
.zipcode3 .form-label {
  display: none !important;
}
.zipcode3 .select-wrapper {
  flex: 1;
}

/* 提交按鈕 */
.submit-btn-wrapper {
  position: relative;
  display: inline-block;
  margin-top: calc(10 / var(--container-width, 1920) * 100cqi);
  width: fit-content;
}
.submit-btn {
  display: block;
  cursor: pointer;
  /* 字跟其他欄位大小不同的時候 */
  /* font-size: clamp(
    12px,
    calc(20 / var(--container-width, 1920) * 100cqi),
    20px
  ); */
  /* 寬度、距 */
  margin: 0 auto;
  letter-spacing: calc(2 / var(--container-width, 1920) * 100cqi);
  /* padding: calc(14 / var(--container-width, 1920) * 100cqi)
    calc(32 / var(--container-width, 1920) * 100cqi); */
  /* 顏色 */
  background-color: #1a222b;
  color: white;
  /* 邊框 */
  border: none;
  /* border-radius: calc(12 / var(--container-width, 1920) * 100cqi); */
}

/* 額外裝飾icon svg */
/* .submit-btn svg {
  stroke: #760000;
  width: calc(32 / var(--container-width, 1920) * 100cqi);
  transition: stroke 0.3s ease-in-out;
} */

 /* 設計稿指標icon樣式 */
.submit-btn-wrapper .pointer-icon {
  position: absolute;
  right: calc(-20 / var(--container-width, 1920) * 100cqi);
  bottom: calc(-20 / var(--container-width, 1920) * 100cqi);
  width: calc(40 / var(--container-width, 1920) * 100cqi);
  pointer-events: none;
}

/* hiyes 分支：jquery-confirm 提示框（booking js 的驗證與送出訊息） */
/* body 未指定字體時提示框按鈕會落回 Arial；專案若有指定表單字體，改成與表單一致 */
.jconfirm,
.jconfirm .jconfirm-box .jconfirm-buttons button {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

/* Swipe Hint Overlay */
.swipe-hint-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  pointer-events: none;
  transition: opacity 0.4s ease-out;
  z-index: 10;
}
.swipe-hint-overlay.hidden {
  opacity: 0 !important;
}
.swipe-hint-circle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  color: white;
}
.swipe-icon-container {
  animation: swipeHandAnim 2.5s infinite ease-in-out;
}
.swipe-icon-container svg {
  width: 45px;
  height: 45px;
}
.swipe-hint-text {
  margin-top: 8px;
  font-size: 1rem;
  letter-spacing: 2px;
  font-weight: bold;
}

@keyframes swipeHandAnim {
  0%,
  100% {
    transform: translateX(8px);
  }

  50% {
    transform: translateX(-8px);
  }
}

/* Privacy Modal Styles */
.privacy-modal-trigger {
  text-decoration: underline;
  cursor: pointer;
  color: #1a222b;
}

.privacy-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.privacy-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.privacy-modal-container {
  background-color: #fff;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.privacy-modal-overlay.is-open .privacy-modal-container {
  transform: translateY(0);
}

.privacy-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.privacy-modal-title {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}

.privacy-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.2s;
}

.privacy-modal-close:hover {
  color: #333;
}

.privacy-modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

/* Custom Click Animation */
@keyframes click-diagonal {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-5px, -5px);
  }
}

.anim-click-diagonal {
  animation: click-diagonal 1.5s infinite ease-in-out;
}

/* Lightbox 點擊放大（Fancybox） */
[data-name*="點擊放大"],
.lightbox-gallery a.lightbox-item {
  cursor: zoom-in;
}

.lightbox-gallery a.lightbox-item {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* 加號按鈕：預設在相簿右上角，尺寸與間距以設計稿 px 為單位（依 --container-width 等比縮放）；
   顏色依設計稿覆寫 --zoom-btn-* 變數 */
.desktop-view {
  --zoom-btn-size: 48;
  --zoom-btn-gap: 24;
}

.mobile-view {
  --zoom-btn-size: 35;
  --zoom-btn-gap: 18;
}

.zoom-btn {
  --zoom-btn-bg: rgba(0, 0, 0, 0.55);
  --zoom-btn-bg-hover: rgba(0, 0, 0, 0.75);
  --zoom-btn-color: #fff;
  position: absolute;
  z-index: 11;
  top: calc(var(--zoom-btn-gap) / var(--container-width) * 100cqi);
  right: calc(var(--zoom-btn-gap) / var(--container-width) * 100cqi);
  width: max(28px, calc(var(--zoom-btn-size) / var(--container-width) * 100cqi));
  aspect-ratio: 1;
  border: 1.5px solid var(--zoom-btn-color);
  border-radius: 50%;
  background: var(--zoom-btn-bg);
  cursor: zoom-in;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.zoom-btn::before,
.zoom-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50%;
  height: 2px;
  background: var(--zoom-btn-color);
  transform: translate(-50%, -50%);
}

.zoom-btn::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.zoom-btn:hover {
  background: var(--zoom-btn-bg-hover);
  transform: scale(1.08);
}

/* 影片播放器（Plyr＋自製控制列），填滿所在的 .fig-frame__layer */
.video-block {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
  color: #fff;
  cursor: pointer;
}

/* 影片本體不接收點擊，點擊一律由 .video-block 處理播放／暫停 */
.video-block__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.video-block__stage .plyr,
.video-block__stage .plyr__video-wrapper {
  width: 100%;
  height: 100%;
  background: #000;
}

.video-block__stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* YouTube／Vimeo：iframe 撐成三倍寬並置中，影片依高度縮放，標題列與 logo 落在可視範圍外 */
.video-block__stage .plyr__video-embed {
  height: 100% !important;
  padding-bottom: 0 !important;
  aspect-ratio: auto !important;
}

.video-block__stage .plyr__video-embed iframe {
  left: -100%;
  width: 300%;
  height: 100%;
}

.video-block__state,
.video-block__controls {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.video-block.is-active .video-block__state,
.video-block.is-active .video-block__controls,
.video-block.is-static .video-block__controls,
.video-block.is-static.is-paused .video-block__state {
  opacity: 1;
  visibility: visible;
}

.video-block__state {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(48px, 7cqi, 96px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-block__state svg {
  width: 45%;
  height: 45%;
}

/* 圖示顯示「點擊後」的動作：播放中顯示暫停、暫停中顯示播放 */
.video-block .icon-play,
.video-block.is-paused .icon-pause,
.video-block .icon-muted,
.video-block.is-muted .icon-volume {
  display: none;
}

.video-block.is-paused .icon-play,
.video-block.is-muted .icon-muted {
  display: block;
}

/* 控制列：播放／暫停 → 進度條 → 時間 → 靜音 → 音量條 */
.video-block__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2cqi, 18px);
  padding: clamp(10px, 2cqi, 28px) clamp(12px, 3cqi, 48px);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  cursor: default;
}

.video-block__btn {
  flex-shrink: 0;
  width: clamp(28px, 2.4cqi, 40px);
  height: clamp(28px, 2.4cqi, 40px);
  padding: 4px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

.video-block__btn svg {
  width: 100%;
  height: 100%;
}

.video-block__time {
  flex-shrink: 0;
  font-size: clamp(11px, 0.8cqi, 14px);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.video-block__range {
  --fill: 0%;
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, #fff var(--fill), rgba(255, 255, 255, 0.35) var(--fill));
  cursor: pointer;
}

.video-block__progress {
  flex: 1;
  min-width: 0;
}

.video-block__volume {
  flex: 0 0 auto;
  width: clamp(60px, 4cqi, 72px);
  min-width: 60px;
}

/* 進度條關閉時，播放鍵以外的元件靠右 */
.video-block__controls:not(:has(.video-block__progress)) > [data-video-toggle] + * {
  margin-left: auto;
}

.video-block__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

.video-block__range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
