/* ============================================================================
   精選旅宿詳情頁 · 圖文敘事版（v1.51.0）
   ----------------------------------------------------------------------------
   獨立覆蓋層，排在 visual-a.css 之後；移除 views/layout.js 裡這一行的 <link>
   就整層回退，前三層（site / theme / design）與 visual-a 完全不受影響。

   只服務 /stays/:slug（.sm- 前綴），不動列表頁與其他頁面。
   沿用方案 A「白淨線序」的令牌：白底、1px 髮絲線、6px 圓角、零陰影、
   區段 60px（手機 40px）。圖片區不新增玻璃、不新增陰影。

   版面節奏（v1.51.0 重排）：
     白（開場）→ 白（圖集）→ 白（關於）→ 白（房型）
     → 淺綠帶（設備）→ 白（入住資訊）→ 深綠（收尾）

   四條防呆（都是實際踩過的坑）：
     1. `.section` 在 design.css 用 `padding-block: … !important`，所以這裡
        的 .sm-sec 也必須帶 !important，否則區段節奏調不動。
     2. 圖集錯位只用 margin-top，不用 transform——transform 會讓 hover 時的
        scale 過渡從錯位高度開始，看起來像圖片在抖。
     3. 深綠收尾面板上的 .btn-primary / .btn-ghost 一定要在本檔覆寫顏色，
        visual-a.css 的白底綠字規則會把白底按鈕壓成白底白字。
     4. 手機 390 斷點不得出現橫向捲動：圖集不用 columns（瀑布流在窄屏會
        把圖擠成 1px），一律 grid 單欄。
   ========================================================================== */

/* ------------------------------- 首屏 ------------------------------- */
.sm-hero {
  padding: 24px 0 0;
}
.sm-hero .crumbs {
  margin: 0 0 22px;
  font-size: 12.5px;
  color: var(--va-muted, #5D6B62);
}
.sm-hero .crumbs a {
  color: var(--va-muted, #5D6B62);
  text-decoration: none;
}
.sm-hero .crumbs a:hover {
  color: var(--va-deep, #2B7649);
}
.sm-hero .crumbs span:not(:last-child) { opacity: .45; }

/* 左文右圖。比例刻意不對稱（1 : 1.05）：五五開會讓標題與大圖互搶，
   文字少一點、圖多一點，第一眼看到的是「什麼樣的地方」而不是「一行字」。 */
.sm-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.sm-hero__grid--solo { grid-template-columns: minmax(0, 1fr); }
.sm-hero__copy h1 {
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 14px 0 16px;
  /* 中文標題的斷行點只有「字與字之間」，硬換行會把地名切開
     （「山海之間·墾 / 丁海岸別墅」）。balance 會挑最接近等長的位置換，
     讓「墾丁」留在同一行。 */
  text-wrap: balance;
}
.sm-hero__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--va-body, #3C4A41);
  margin: 0;
  max-width: 32em;
}
.sm-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.sm-hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--va-muted, #5D6B62);
}
.sm-hero__meta li svg { width: 15px; height: 15px; flex: none; }

.sm-hero__shot {
  margin: 0;
  min-width: 0;
}
.sm-hero__shot .sm-shot { aspect-ratio: 4 / 5; }
.sm-hero__shot figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--va-muted, #5D6B62);
}

.sm-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}
/* 全頁最大的一顆按鈕。其他四個出口都存在，但只有這顆負責「第一眼被看到」。 */
.sm-book {
  min-height: 54px !important;
  padding: 0 32px !important;
  font-size: 16px !important;
}
.sm-book svg { width: 15px; height: 15px; }
.sm-hero__more {
  font-size: 14px;
  font-weight: 500;
  color: var(--va-deep, #2B7649);
  text-decoration: none;
  border-bottom: 1px solid var(--va-g2, #D2EBDC);
  padding-bottom: 3px;
}
.sm-hero__more:hover { border-bottom-color: var(--va-action, #57B26F); }
.sm-hero__note { margin: 14px 0 0; font-size: 12px; color: var(--va-muted, #5D6B62); }

/* --------------------------- 吸頂錨點條 ---------------------------
   刻意不用 backdrop-filter：全站液態玻璃只保留首頁標籤條一處。 */
.sm-nav {
  position: sticky;
  top: var(--header-h, 72px);
  z-index: 30;
  margin-top: 40px;
  background: #fff;
  border-block: 1px solid var(--va-hair, #DBE9E0);
}
.sm-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
}
.sm-nav__links { display: flex; gap: 26px; }
.sm-nav__links a {
  font-size: 14px;
  color: var(--va-body, #3C4A41);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.sm-nav__links a:hover {
  color: var(--va-deep, #2B7649);
  border-bottom-color: var(--va-action, #57B26F);
}
.sm-nav__cta { min-height: 40px !important; padding: 0 20px !important; font-size: 13.5px !important; }

/* ------------------------------ 區段 ------------------------------ */
.sm-sec { padding-block: var(--ds-section-y, 60px) !important; }
.sm-sec--tight { padding-top: 0 !important; }
.sm-sec--tint { background: var(--va-g0, #F6FCF8); }

/* 區段標頭：眉標 → 標題 → 一句說明。全頁共用同一種節奏。 */
.sm-head { margin-bottom: 30px; }
.sm-head h2 {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 10px 0 0;
  color: var(--va-ink, #16351F);
}
.sm-head p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--va-muted, #5D6B62);
  max-width: 52ch;
}

/* ------------------------------ 圖集 ------------------------------
   不對稱編排：錯位（margin-top）只在 2–3 張時使用，圖一多就改成整齊兩欄，
   否則錯位會從「有節奏」變成「沒對齊」。 */
.sm-story__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px 20px;
  align-items: start;
}
.sm-story__item { margin: 0; min-width: 0; grid-column: span 12; }
.sm-story__item .sm-shot { aspect-ratio: 4 / 3; }
.sm-story__item figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--va-muted, #5D6B62);
}

/* 1 張：整幅 */
.sm-story__grid[data-count="1"] .sm-story__item .sm-shot { aspect-ratio: 21 / 9; }

/* 2 張：8 / 4，右邊那張往下錯開 72px */
.sm-story__grid[data-count="2"] .sm-story__item:nth-child(1) { grid-column: 1 / span 8; }
.sm-story__grid[data-count="2"] .sm-story__item:nth-child(2) {
  grid-column: 9 / span 4;
  margin-top: 72px;
}
.sm-story__grid[data-count="2"] .sm-story__item:nth-child(2) .sm-shot { aspect-ratio: 3 / 4; }

/* 3 張：7 / 5 + 一張收尾全寬 */
.sm-story__grid[data-count="3"] .sm-story__item:nth-child(1) { grid-column: 1 / span 7; }
.sm-story__grid[data-count="3"] .sm-story__item:nth-child(2) {
  grid-column: 8 / span 5;
  margin-top: 64px;
}
.sm-story__grid[data-count="3"] .sm-story__item:nth-child(2) .sm-shot { aspect-ratio: 4 / 5; }
.sm-story__grid[data-count="3"] .sm-story__item:nth-child(3) { grid-column: 1 / span 12; }
.sm-story__grid[data-count="3"] .sm-story__item:nth-child(3) .sm-shot { aspect-ratio: 21 / 9; }

/* ≥4 張：第一張全寬開場，其餘兩兩成對 */
.sm-story__grid[data-many] .sm-story__item:nth-child(1) { grid-column: 1 / span 12; }
.sm-story__grid[data-many] .sm-story__item:nth-child(1) .sm-shot { aspect-ratio: 21 / 9; }
.sm-story__grid[data-many] .sm-story__item:not(:nth-child(1)) { grid-column: span 6; }
/* 成對的圖用 3:2 而不是 4:3：4:3 在 1200 版心上每張要 440px 高，
   六張圖疊起來就是 2,600px 的畫廊，把後面的文字全擠到看不見。 */
.sm-story__grid[data-many] .sm-story__item:not(:nth-child(1)) .sm-shot { aspect-ratio: 3 / 2; }
/* 奇數結尾（例：6 張＝1 全寬 + 5 張）讓最後一張收成全寬，不留半張空位 */
.sm-story__grid[data-last-wide] .sm-story__item:last-child { grid-column: 1 / span 12; }
.sm-story__grid[data-last-wide] .sm-story__item:last-child .sm-shot { aspect-ratio: 21 / 9; }

/* ------------------------------ 關於 ------------------------------ */
.sm-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 56px;
  align-items: start;
}
.sm-about__grid--solo { grid-template-columns: minmax(0, 1fr); }
.sm-about__main { max-width: 46em; }
.sm-about__en {
  margin: 0 0 10px;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--va-muted, #5D6B62);
}
.sm-about__main h2 {
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.25;
  margin: 0 0 18px;
  color: var(--va-ink, #16351F);
}
.sm-about__lead {
  margin: 0 0 18px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--va-ink, #16351F);
}
.sm-about__main p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--va-body, #3C4A41);
}
.sm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}
.sm-tags li {
  padding: 6px 14px;
  border: 1px solid var(--va-hair, #DBE9E0);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--va-deep, #2B7649);
  background: #fff;
}

/* 特色側欄：淺綠底 + 髮絲線，用編號建立層級，不再是一片灰盒子。 */
.sm-hl {
  padding: 30px 30px 8px;
  border: 1px solid var(--va-hair, #DBE9E0);
  border-radius: var(--va-r, 6px);
  background: var(--va-g0, #F6FCF8);
}
.sm-hl h3 {
  margin: 0 0 20px;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--va-deep, #2B7649);
}
.sm-hl__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.sm-hl__list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--va-hair, #DBE9E0);
}
.sm-hl__list li:last-child { border-bottom: 0; padding-bottom: 14px; }
.sm-hl__n {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--va-action, #57B26F);
  padding-top: 3px;
}
.sm-hl__txt strong {
  display: block;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--va-ink, #16351F);
  margin-bottom: 4px;
}
.sm-hl__txt span {
  display: block;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--va-muted, #5D6B62);
}

/* ------------------------------ 設備 ------------------------------
   掃讀用的細線表：四欄、上下髮絲線、沒有圖示圓底。
   設備不是賣點，是「確認有沒有我要的」——所以它必須安靜。 */
.sm-amen {
  padding-block: 46px !important;
  background: var(--va-g0, #F6FCF8);
  border-block: 1px solid var(--va-hair, #DBE9E0);
}
.sm-amen h2 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--va-ink, #16351F);
}
.sm-amen__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sm-amen__grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border-bottom: 1px solid var(--va-hair, #DBE9E0);
  font-size: 14px;
  color: var(--va-body, #3C4A41);
}
.sm-amen__grid li svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--va-action, #57B26F);
}

/* ------------------------------ 房型 ------------------------------
   圖片主導卡：4:3 大圖在上、資訊在中、按鈕在下。
   沒有房型圖時整塊換成淺綠色塊 + 大圖示 + 坪數——面積一樣大，不會塌成一行字。 */
.sm-roomlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.sm-room {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--va-hair, #DBE9E0);
  border-radius: var(--va-r, 6px);
  background: #fff;
  overflow: hidden;
}
.sm-room__media {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--va-g1, #E8F5EC);
  overflow: hidden;
}
.sm-room__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sm-room__media--icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  /* 沒有房型照時，4:3 會變成一塊 272px 高的空面板；16:9 保留色塊的存在感，
     又不至於讓三張卡加起來多出兩百多像素的空白。 */
  aspect-ratio: 16 / 9;
  background: linear-gradient(155deg, #F3FAF5 0%, #E4F3E9 100%);
  color: var(--va-deep, #2B7649);
}
.sm-room__media--icon svg { width: 44px; height: 44px; opacity: .7; }
.sm-room__media--icon span {
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--va-muted, #5D6B62);
}
.sm-room__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px 0;
  flex: 1;
}
.sm-room__body h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
  color: var(--va-ink, #16351F);
}
.sm-room__spec,
.sm-room__note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--va-body, #3C4A41);
}
.sm-room__note { color: var(--va-muted, #5D6B62); font-size: 13px; }
.sm-room__cta {
  margin: 18px 22px 22px;
  justify-content: center;
}

/* --------------------------- 入住資訊＋周邊 --------------------------- */
.sm-info__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 56px;
  align-items: start;
}
.sm-info__grid--solo { grid-template-columns: minmax(0, 1fr); }
.sm-info .ota-policies {
  border-color: var(--va-hair, #DBE9E0);
  border-radius: var(--va-r, 6px);
}
.sm-info__col h2 {
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--va-ink, #16351F);
}
.sm-places {
  list-style: none;
  margin: 0;
  padding: 2px 16px;
  border: 1px solid var(--va-hair, #DBE9E0);
  border-radius: var(--va-r, 6px);
}
.sm-places li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--va-hair, #DBE9E0);
  font-size: 14.5px;
  color: var(--va-body, #3C4A41);
}
.sm-places li:first-child { border-top: 0; }
.sm-places em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--va-muted, #5D6B62);
  white-space: nowrap;
}
.sm-legal {
  margin: 30px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--va-muted, #5D6B62);
}

/* --------------------------- 收尾導流面板 --------------------------- */
.sm-end__panel {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 40px;
  align-items: center;
  padding: 52px;
  border-radius: var(--va-r, 6px);
  background: var(--va-deep, #2B7649);
  color: #fff;
}
.sm-end__copy .eyebrow { color: #A8DBB9; }
.sm-end__copy h2 {
  color: #fff;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  margin: 10px 0 12px;
}
.sm-end__copy p { color: #D2EBDC; margin: 0; max-width: 540px; line-height: 1.7; }
.sm-end__facts {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.sm-end__facts li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #D2EBDC;
}
.sm-end__facts strong { color: #fff; font-weight: 600; }
.sm-end__actions { display: flex; flex-direction: column; gap: 10px; }
.sm-end__panel .btn-primary {
  background: #fff !important;
  color: var(--va-ink, #16351F) !important;
  border-color: #fff !important;
}
.sm-end__panel .btn-primary:hover {
  background: var(--va-g1, #E8F5EC) !important;
  border-color: var(--va-g1, #E8F5EC) !important;
  color: var(--va-ink, #16351F) !important;
}
.sm-end__panel .btn-ghost {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, .5) !important;
}
.sm-end__note { font-size: 12px; color: #A8DBB9; text-align: center; }

/* ------------------------ 手機底部固定訂房條 ------------------------ */
.sm-bottombar { display: none; }
.sm-bottombar__pad { display: none; }

/* ---------------------------- 響應式 ---------------------------- */
@media (max-width: 1080px) {
  .sm-hero__grid { gap: 40px; }
  .sm-about__grid,
  .sm-info__grid { gap: 40px; }
}

@media (max-width: 980px) {
  /* 首屏改成上下：標題在上、大圖在下。順序不動，H1 仍是最先讀到的。 */
  .sm-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sm-hero__shot .sm-shot { aspect-ratio: 16 / 10; }
  .sm-about__grid,
  .sm-info__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .sm-end__panel { grid-template-columns: 1fr; gap: 28px; padding: 38px; }
  .sm-end__actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
}

@media (max-width: 899px) {
  .sm-nav { display: none; }
  .sm-bottombar {
    display: block;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--va-hair, #DBE9E0);
  }
  .sm-bottombar .btn { width: 100%; justify-content: center; }
  .sm-bottombar__pad { display: block; height: 74px; }

  /* 圖集：錯位一律收平，兩欄 */
  .sm-story__grid[data-count="2"] .sm-story__item:nth-child(1),
  .sm-story__grid[data-count="2"] .sm-story__item:nth-child(2),
  .sm-story__grid[data-count="3"] .sm-story__item:nth-child(1),
  .sm-story__grid[data-count="3"] .sm-story__item:nth-child(2) {
    grid-column: span 6;
    margin-top: 0;
  }
  .sm-story__grid[data-count="2"] .sm-story__item:nth-child(2) .sm-shot,
  .sm-story__grid[data-count="3"] .sm-story__item:nth-child(2) .sm-shot { aspect-ratio: 4 / 3; }
  .sm-amen__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
}

@media (max-width: 700px) {
  .sm-sec { padding-block: var(--ds-section-y, 40px) !important; }
  .sm-hero { padding-top: 18px; }
  .sm-hero .crumbs { margin-bottom: 16px; }
  .sm-hero__lead { font-size: 15.5px; }
  .sm-hero__actions { margin-top: 24px; gap: 14px; }
  .sm-book { width: 100%; justify-content: center; }
  .sm-hero__note { text-align: center; }
  .sm-hero__shot .sm-shot { aspect-ratio: 4 / 3; }

  .sm-head { margin-bottom: 22px; }

  /* 圖集全部單欄，固定 4:3——窄屏的 21:9 會變成一片扁縫 */
  .sm-story__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sm-story__grid[data-count] .sm-story__item,
  .sm-story__grid[data-many] .sm-story__item,
  .sm-story__grid[data-many] .sm-story__item:nth-child(1),
  .sm-story__grid[data-last-wide] .sm-story__item:last-child {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .sm-story__grid[data-count] .sm-story__item .sm-shot { aspect-ratio: 4 / 3; }

  .sm-about__lead { font-size: 17px; }
  .sm-about__main p { font-size: 15px; line-height: 1.8; }
  .sm-hl { padding: 24px 22px 6px; }

  .sm-roomlist { grid-template-columns: minmax(0, 1fr); }
  .sm-end__panel { padding: 28px 24px; }
  .sm-end__facts li { grid-template-columns: 1fr; gap: 2px; }
  .sm-end__actions { flex-direction: column; align-items: stretch; }
  .sm-end__actions .btn { justify-content: center; }
  .sm-amen { padding-block: 36px !important; }
  /* 八項設備排單欄要 520px，比整個房型區還長；窄屏維持兩欄掃讀即可 */
  .sm-amen__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
}

/* ============================================================================
   v1.48.0 追加（保留）：列表卡換圖／張數角標 · 可點圖片 · 燈箱
   ========================================================================== */

/* ---- 列表卡：封面換圖（純 CSS，觸控裝置不載入第二張） ---- */
.ota-stay__media .ota-stay__img--alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
}
@media (hover: hover) {
  .ota-stay:hover .ota-stay__media .ota-stay__img--alt { opacity: 1; }
}
@media (hover: none) {
  .ota-stay__media .ota-stay__img--alt { display: none; }
}
.ota-stay__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .94);
  color: var(--va-deep, #2B7649);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.ota-stay__count svg { width: 13px; height: 13px; }

/* ---- 可點圖片：滑鼠是放大鏡，鍵盤可聚焦 ---- */
.sm-shot {
  display: block;
  overflow: hidden;
  border-radius: var(--va-r, 6px);
  cursor: zoom-in;
}
.sm-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.sm-shot:hover img { transform: scale(1.02); }
.sm-shot:focus-visible {
  outline: 2px solid var(--va-action, #57B26F);
  outline-offset: 2px;
}

/* ---- 燈箱 ---- */
.sm-lb {
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  max-width: min(1120px, 94vw);
  max-height: 92vh;
  overflow: visible;
}
.sm-lb::backdrop { background: rgba(10, 22, 15, .92); }
.sm-lb__img {
  display: block;
  margin: 0 auto;
  max-width: min(1120px, 94vw);
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  background: #0c1811;
}
.sm-lb__bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-size: 12.5px;
  color: #D2EBDC;
}
.sm-lb__cap { min-width: 0; }
.sm-lb__count { flex: none; color: #A8DBB9; }

.sm-lb__close,
.sm-lb__nav {
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  cursor: pointer;
  transition: background .2s ease;
}
.sm-lb__close:hover,
.sm-lb__nav:hover { background: rgba(255, 255, 255, .3); }
.sm-lb__close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.sm-lb__nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.sm-lb__nav--prev { left: -58px; transform: translateY(-50%) rotate(180deg); }
.sm-lb__nav--next { right: -58px; transform: translateY(-50%); }

@media (max-width: 899px) {
  .sm-lb__close { top: -42px; right: 0; }
  .sm-lb__nav { top: auto; bottom: -52px; transform: none; width: 40px; height: 40px; }
  .sm-lb__nav--prev { left: 0; transform: rotate(180deg); }
  .sm-lb__nav--next { right: 0; }
  .sm-lb__bar { margin-top: 56px; }
}
