/* 朔方文境：3D 線上展廳（/exhibition） */
.ex {
  --ex-ink: #F4F1EC; --ex-stone: #B9B2A8; --ex-panel: rgba(24, 22, 20, .78); --ex-line: rgba(255, 255, 255, .16);
  --ex-serif: 'Shuofang Serif', 'Noto Serif TC', serif; /* 標題、名字：網站自帶的思源宋體 */ --ex-sans: system-ui, -apple-system, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  position: relative; overflow: hidden; height: calc(100svh - 80px); min-height: 480px;
  background: #161513; color: var(--ex-ink); font-family: var(--ex-sans);
  -webkit-user-select: none; user-select: none;
}
.ex-view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.ex-view.drag { cursor: grabbing; }
/* 鏡頭暗角：畫面四周微微暗下來，視線集中在中間（像相機拍出來的） */
.ex::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 85% 80% at 50% 48%, rgba(0, 0, 0, 0) 52%, rgba(20, 16, 12, .3) 100%); }
.ex-ui { position: absolute; z-index: 5; }
.ex-glass { box-sizing: border-box; background: var(--ex-panel); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--ex-line); }

.ex-head { top: 14px; left: 16px; padding: 12px 16px; max-width: min(360px, calc(100% - 32px)); }
.ex-head small { display: block; font-size: 11px; letter-spacing: .24em; color: var(--ex-stone); }
.ex-head h1 { margin: 4px 0 0; font: 400 19px/1.35 var(--ex-serif); letter-spacing: .14em; color: var(--ex-ink); text-wrap: balance; }
.ex-head p { margin: 6px 0 0; font-size: 12px; color: var(--ex-stone); letter-spacing: .06em; }

.ex-bar { left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 6px; padding: 6px; border-radius: 999px; }
.ex-bar button { font: 500 13px var(--ex-sans); letter-spacing: .12em; color: var(--ex-ink); background: transparent; border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; white-space: nowrap; }
.ex-bar button:hover { background: rgba(255, 255, 255, .08); }
.ex-bar button[aria-pressed="true"] { background: transparent; color: var(--ex-ink); box-shadow: inset 0 0 0 1px var(--ex-line); } /* 播放中：單色細框，不用整顆白底 */
.ex-bar .i { width: 16px; height: 16px; display: block; }
.ex-bar #bPrev, .ex-bar #bNext { display: inline-flex; align-items: center; justify-content: center; }
.ex-bar #bTour { display: inline-flex; align-items: center; justify-content: center; }
.ex-bar #bTour .ic .i { width: 12px; height: 12px; }
.ex-bar .sep { width: 1px; background: var(--ex-line); margin: 6px 2px; }
.ex button:focus-visible, .ex a:focus-visible { outline: 2px solid var(--ex-ink); outline-offset: 2px; }

.ex-card { left: 16px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); width: min(340px, calc(100% - 32px)); padding: 16px 18px; transition: opacity .35s, transform .35s; }
.ex-card[hidden] { display: block !important; opacity: 0; transform: translateY(8px); pointer-events: none; }
.ex-card .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ex-card .n { font-size: 11px; letter-spacing: .2em; color: var(--ex-stone); min-width: 0; }
.ex-card .tg { flex: none; width: 30px; height: 30px; margin: -6px -8px -6px 0; display: grid; place-items: center; font: 400 18px/1 var(--ex-sans); color: var(--ex-ink); background: none; border: 0; cursor: pointer; }
.ex-card h2 { margin: 6px 0 2px; font: 400 18px/1.4 var(--ex-serif); letter-spacing: .1em; color: var(--ex-ink); }
.ex-card .meta { font-size: 13px; color: var(--ex-stone); line-height: 1.7; }
.ex-card .row { display: flex; gap: 8px; margin-top: 12px; }
.ex-card a, .ex-card .row button { font: 500 13px var(--ex-sans); letter-spacing: .1em; color: #1d1b19; background: var(--ex-ink); border: 0; padding: 9px 14px; text-decoration: none; cursor: pointer; }
.ex-card .ghost { background: transparent !important; color: var(--ex-ink) !important; border: 1px solid var(--ex-line) !important; }
.ex-card a[hidden] { display: none; }
.ex-card.min { cursor: pointer; padding: 10px 14px; width: auto; max-width: calc(100% - 32px); }
.ex-card.min .meta, .ex-card.min .row { display: none; }
.ex-card.min h2 { font-size: 14px; margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ex-plan { top: 14px; right: 16px; padding: 10px; cursor: pointer; }
.ex-plan canvas { display: block; width: 220px; height: auto; }
.ex-plan .lbl { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; letter-spacing: .2em; color: var(--ex-stone); margin-bottom: 6px; }
.ex-plan.big { top: 50%; right: 50%; transform: translate(50%, -50%); cursor: default; padding: 16px; }
.ex-plan.big canvas { width: min(860px, calc(100vw - 64px)); max-height: calc(100% - 120px); object-fit: contain; }
.ex-plan .close { display: none; font: inherit; color: var(--ex-ink); background: none; border: 0; cursor: pointer; letter-spacing: .1em; }
.ex-plan.big .close { display: inline; }
.ex-plan.big .lbl span:nth-child(2) { display: none; }

.ex-pad { right: 12px; top: 150px; display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 44px); gap: 4px; }
.ex-pad button { width: 44px; height: 44px; border-radius: 50%; color: var(--ex-ink); font-size: 14px; cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; padding: 0; }
.ex-pad button:active { background: rgba(244, 241, 236, .3); }
.ex-pad [data-k="KeyW"] { grid-area: 1 / 2; } .ex-pad [data-k="ArrowLeft"] { grid-area: 2 / 1; } .ex-pad [data-k="ArrowRight"] { grid-area: 2 / 3; } .ex-pad [data-k="KeyS"] { grid-area: 3 / 2; }
@media (pointer: fine) { .ex-pad { display: none; } }
/* 橫向觀看：放在下方工具列裡，只在手機（觸控）出現 */
@media (pointer: fine) { .ex-bar .rot { display: none; } }
/* 導覽鍵：電腦顯示文字，手機只顯示 ▶／❚❚ */
.ex-bar #bTour .ic { display: inline-flex; letter-spacing: 0; margin-right: 6px; } /* 電腦也顯示 ▶，和說明文字一致 */
/* 一陣子沒操作：介面半透明 */
.ex .ex-head, .ex .ex-plan, .ex .ex-bar, .ex .ex-card:not([hidden]) { transition: opacity .8s, transform .35s; }
.ex.idle .ex-head, .ex.idle .ex-plan:not(.big), .ex.idle .ex-card:not([hidden]) { opacity: 0; pointer-events: none; }
.ex.idle .ex-bar .opt { display: none !important; }
.ex.idle .ex-card.keep:not([hidden]) { opacity: 1; pointer-events: auto; } /* 點作品叫出來的小卡，收起介面時也留著 */
.ex.idle .ex-card.keep.min:not([hidden]) { opacity: 0; pointer-events: none; } /* 縮成一行的小卡：和其他介面一樣，沒操作就收起來 */
/* 「•••」：收起時才出現，按了展開 */
.ex-bar .more { display: none; align-items: center; justify-content: center; gap: 5px; min-width: 52px; }
.ex-bar .more i { width: 6px; height: 6px; border-radius: 50%; background: var(--ex-ink); }
.ex.idle .ex-bar .more { display: inline-flex; }
.ex.rot { position: fixed !important; z-index: 2147483000; top: 0; left: 0; width: var(--rw) !important; height: var(--rh) !important; min-height: 0 !important; transform-origin: 0 0; transform: translateX(var(--rh)) rotate(90deg); }
.ex.rot .ex-plan:not(.big), .ex:fullscreen .ex-plan:not(.big) { top: 14px; }
.ex:fullscreen { height: 100% !important; width: 100%; }
/* 橫向時：工具列左下、小卡右下 */
.ex.rot .ex-card, .ex:fullscreen .ex-card { bottom: 70px; width: min(320px, 40%); }
.ex.rot .ex-bar, .ex:fullscreen .ex-bar { bottom: 14px; }
.ex.rot .ex-card.min, .ex:fullscreen .ex-card.min { width: auto; }
html.ex-rot, html.ex-rot body { overflow: hidden; }

.ex-hint { left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; max-width: calc(100% - 32px); padding: 18px 22px; text-align: center; font-size: 13px; line-height: 2; letter-spacing: .08em; transition: opacity .6s; pointer-events: none; }
.ex-hint b { font: 400 16px var(--ex-serif); letter-spacing: .14em; display: block; margin-bottom: 4px; }
.ex-loading { inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; background: #161513; font: 400 15px var(--ex-serif); letter-spacing: .3em; color: var(--ex-stone); transition: opacity .6s; margin: 0; }

/* 載入進度 */
.ex-loading { grid-auto-flow: row; align-content: center; gap: 18px; }
.ex-loadbar { display: block; width: min(220px, 60%); height: 1px; margin: 0 auto; background: var(--ex-line); overflow: hidden; }
.ex-loadbar i { display: block; height: 100%; width: 0; background: var(--ex-ink); transition: width .3s; }
/* 導覽倒數：小卡上緣一條細線 */
.ex-card::before { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--ex-ink); opacity: .7; }
.ex-card.timing::before { animation: ex-wait var(--wait, 5s) linear forwards; }
.ex-bar { overflow: hidden; }
.ex-bar::before { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; border-radius: 2px; background: var(--ex-ink); opacity: .85; transform: scaleX(0); transform-origin: left; }
.ex-bar.timing::before { animation: ex-bar-wait var(--wait, 3.5s) linear forwards; }
@keyframes ex-bar-wait { to { transform: scaleX(1); } }
.ex-card.min::before { display: none; }
@keyframes ex-wait { to { width: 100%; } }
.ex-card .row { flex-wrap: wrap; }
.ex-card .row button[hidden] { display: none; }
/* 看大圖 */
.ex-lb { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(14, 13, 12, .94); overflow: hidden; touch-action: none; cursor: zoom-out; }
.ex-lb[hidden] { display: none; }
.ex-lb img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 48px); max-height: calc(100% - 130px); object-fit: contain; transform-origin: center; cursor: grab; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); -webkit-user-drag: none; }
.ex-lb-cap { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); padding: 0 16px; text-align: center; font: 400 14px/1.6 var(--ex-serif); letter-spacing: .12em; color: var(--ex-stone); pointer-events: none; }
.ex-lb-x { position: absolute; top: 14px; right: 16px; font: 500 13px var(--ex-sans); letter-spacing: .12em; color: var(--ex-ink); background: rgba(255, 255, 255, .08); border: 1px solid var(--ex-line); padding: 9px 14px; cursor: pointer; }

@media (max-width: 720px) {
  .ex-plan:not(.big) canvas { width: 120px; }
  .ex-plan:not(.big) .lbl span:nth-child(2) { display: none; }
  .ex-head { max-width: calc(100% - 32px - 150px); padding: 10px 12px; }
  .ex-head h1 { font-size: 16px; }
  .ex-head p { display: none; }
  .ex-bar { left: 16px; transform: none; } /* 右下角留給語言切換 */
  .ex-bar button { padding: 9px 10px; font-size: 12px; letter-spacing: .04em; }
  .ex-bar #bTour { min-width: 48px; min-height: 44px; } /* 播放／暫停和「上」「下」一樣大 */
  .ex-bar #bPrev, .ex-bar #bNext { min-width: 48px; min-height: 44px; font-size: 17px; letter-spacing: 0; } .ex-bar .lg { display: none; } /* 手機：大一點的「上」「下」，好按 */
  .ex-bar #bTour .ic { display: inline-flex; margin-right: 0; } .ex-bar #bTour .ic .i { width: 16px; height: 16px; } .ex-bar #bTour .tx, .ex-bar #bQ .tx { display: none; }
  .ex-card { padding: 12px 14px; }
  .ex-card h2 { font-size: 16px; }
  .ex-card { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .ex-lb-cap { bottom: calc(60px + env(safe-area-inset-bottom, 0px)); font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .ex-card, .ex-hint, .ex-loading { transition: none; } .ex-card.timing::before, .ex-bar.timing::before { animation: none; } }

/* 線上展廳列表 */
.exi { max-width: 1200px; margin: 0 auto; padding: 56px max(24px, env(safe-area-inset-left, 0px)) 96px; }
.exi .page-title { margin-bottom: 12px; }
.exi-lead { margin: 0 0 40px; color: var(--stone, #77716a); line-height: 1.8; }
.exi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 28px; }
.exi-card { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.exi-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #e9e5df, #cfc9c0); }
.exi-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.exi-card:hover .exi-img img { transform: scale(1.03); }
.exi-img i { position: absolute; left: 12px; top: 12px; font: 600 11px/1 system-ui, sans-serif; font-style: normal; letter-spacing: .2em; color: #fff; background: rgba(24, 22, 20, .72); padding: 6px 8px; }
.exi-t { margin-top: 8px; font-family: 'Shuofang Serif', 'Noto Serif TC', serif; font-size: 19px; letter-spacing: .1em; }
.exi-sub { font-size: 14px; color: var(--stone, #77716a); }
.exi-meta { font-size: 13px; color: var(--stone, #77716a); letter-spacing: .06em; }
body:has(.ex) .lang-switch { display: none; }

/* 3D 跑不動時的作品列表 */
.ex.ex-fb { height: auto !important; min-height: 0; overflow: visible; background: #faf9f7; color: #2b2824; -webkit-user-select: text; user-select: text; }
.ex-fbw { max-width: 1100px; margin: 0 auto; padding: 40px max(16px, env(safe-area-inset-left, 0px)) 80px; }
.ex-fbn { font-size: 13px; color: #7a7369; margin: 0 0 16px; }
.ex-fbw h1 { font: 400 26px/1.4 'Noto Serif TC', serif; letter-spacing: .1em; margin: 0; }
.ex-fbsub { color: #7a7369; margin: 6px 0 24px; }
.ex-fbw h2 { font: 400 19px 'Noto Serif TC', serif; letter-spacing: .12em; margin: 36px 0 14px; }
.ex-fbg { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px 18px; }
.ex-fbg a { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.ex-fbg img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #efece7; }
.ex-fbg b { font-weight: 400; font-family: 'Noto Serif TC', serif; margin-top: 6px; }
.ex-fbg span { font-size: 13px; color: #7a7369; }
.ex.ex-fb::after { display: none; }
body:has(.ex) .site-foot { display: none; } /* 展廳頁不放頁尾，畫面到底 */


/* 小卡不放「下一件」：下方工具列已經有「上」「下」 */
#cNext { display: none !important; }
/* 手機橫向（轉向鍵或直接橫拿）：工具列、小卡縮小一點，小卡和工具列之間留空 */
.ex.rot .ex-card, .ex:fullscreen .ex-card { bottom: 84px; }
.ex.rot .ex-bar button { padding: 7px 9px; font-size: 11px; }
.ex.rot .ex-bar #bPrev, .ex.rot .ex-bar #bNext, .ex.rot .ex-bar #bTour { min-width: 40px; min-height: 36px; font-size: 15px; }
.ex.rot .ex-card { padding: 9px 12px; width: min(260px, 34%); }
.ex.rot .ex-card h2 { font-size: 14px; } .ex.rot .ex-card .meta { font-size: 11px; }
.ex.rot .ex-card a, .ex.rot .ex-card .row button { padding: 7px 10px; font-size: 11px; }
@media (pointer: coarse) and (orientation: landscape) and (max-height: 520px) {
  .ex-bar { left: 16px; transform: none; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .ex-bar button { padding: 7px 9px; font-size: 11px; letter-spacing: .04em; }
  .ex-bar #bPrev, .ex-bar #bNext, .ex-bar #bTour { min-width: 40px; min-height: 36px; font-size: 15px; } .ex-bar .lg, .ex-bar #bTour .tx { display: none; } .ex-bar #bTour .ic { margin-right: 0; }
  .ex-card { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); padding: 9px 12px; width: min(260px, 34%); }
  .ex-card h2 { font-size: 14px; } .ex-card .meta { font-size: 11px; }
  .ex-card a, .ex-card .row button { padding: 7px 10px; font-size: 11px; }
  .ex-head { padding: 8px 12px; } .ex-head p { display: none; }
}

/* 手機：按鍵、小卡點兩下不放大整頁；展廳頁不做橡皮筋回彈和邊緣滑動 */
.ex, .ex button, .ex a, .ex-card { touch-action: manipulation; }
.ex .ex-view, .ex-lb { touch-action: none; }
html:has(.ex), body:has(.ex) { overscroll-behavior: none; }

.ex-card .meta .nw { display: inline-block; white-space: nowrap; } /* 價格不從中間斷行 */
.ex-lb-cap { display: none !important; } /* 看大圖：只有圖，不顯示名稱和尺寸 */

/* ---------- 線上展廳入口：近期展覽輪播＋展廳方塊 ---------- */
.exh { position: relative; height: min(68vh, 640px); min-height: 360px; overflow: hidden; background: #1c1a18; }
.exh-track { position: absolute; inset: 0; }
.exh-slide { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s; }
.exh-slide.on { opacity: 1; visibility: visible; transition: opacity 1s ease; }
.exh-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.exh-slide.on img { transform: scale(1); }
.exh-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,16,0) 40%, rgba(20,18,16,.62) 100%); }
.exh-cap { position: absolute; z-index: 1; left: max(24px, calc((100% - 1200px) / 2 + 24px)); right: 24px; bottom: 56px; display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.exh-k { font-size: 13px; letter-spacing: .2em; opacity: .9; }
.exh-t { font-family: 'Shuofang Serif', 'Noto Serif TC', serif; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.2; letter-spacing: .08em; text-wrap: balance; }
.exh-sub { font-size: 15px; opacity: .88; letter-spacing: .04em; }
.exh-go { align-self: flex-start; margin-top: 8px; padding: 10px 18px; border: 1px solid rgba(255,255,255,.75); font-size: 14px; letter-spacing: .14em; transition: background .3s, color .3s; }
.exh-slide:hover .exh-go { background: #fff; color: #222; }
.exh-dots { position: absolute; z-index: 2; right: max(24px, calc((100% - 1200px) / 2 + 24px)); bottom: 62px; display: flex; gap: 10px; }
.exh-dots button { width: 28px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.exh-dots button[aria-current="true"] { background: #fff; }
.exh-dots button::before { content: ''; display: block; margin: -10px 0; height: 23px; } /* 點擊範圍加大 */
@media (max-width: 720px) {
  .exh { height: 62vh; min-height: 320px; }
  .exh-cap { bottom: 48px; left: 20px; }
  .exh-dots { left: 20px; right: auto; bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) { .exh-slide, .exh-slide img { transition: none; } }
.exi-h { margin: 64px 0 24px; font-family: 'Shuofang Serif', 'Noto Serif TC', serif; font-weight: 400; font-size: 24px; letter-spacing: .12em; }
.exi-img i.k-collection { background: rgba(24, 22, 20, .82); }
.exi-img i.k-solo { background: rgba(92, 78, 62, .85); }
.exi-img i.p-current { background: rgba(150, 48, 38, .88); }
.exi-img i.p-upcoming { background: rgba(60, 74, 88, .85); }
.exi-img i.p-ended { background: rgba(110, 106, 100, .8); }
.exi-card.ended .exi-img img { filter: grayscale(.5); opacity: .85; }

/* 輪播：封面是入口大牆（整張海報，上面已經有展名）——置中完整顯示，「進入展廳」放在圖的右下角，輪播點在圖下方置中 */
.exh-slide.is-wall { background: #26231f; }
.exh-slide.is-wall::after { background: radial-gradient(ellipse at center, rgba(20,18,16,0) 40%, rgba(20,18,16,.45) 100%); }
.exh-frame { position: absolute; z-index: 1; left: 50%; top: 46%; height: 76%; max-width: 88%; transform: translate(-50%, -50%); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.exh-frame img, .exh-slide.on .exh-frame img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; transform: none; transition: none; }
.exh-frame .exh-go { position: absolute; right: 18px; bottom: 18px; margin: 0; background: rgba(28,26,24,.62); border-color: rgba(255,255,255,.8); color: #fff; }
.exh-slide.is-wall:hover .exh-go { background: #fff; color: #222; }
.exh:has(.exh-slide.is-wall) .exh-dots { left: 50%; right: auto; transform: translateX(-50%); bottom: 26px; }
@media (max-width: 720px) {
  .exh:has(.exh-slide.is-wall) { height: calc((100vw - 40px) / 1.65 + 84px); min-height: 0; }
  .exh-frame { top: calc(50% - 22px); left: 20px; right: 20px; height: auto; max-width: none; transform: translateY(-50%); } /* 上下置中（輪播點留在下方） */
  .exh-frame img, .exh-slide.on .exh-frame img { width: 100%; height: auto; }
  .exh-frame .exh-go { right: 10px; bottom: 10px; padding: 7px 12px; font-size: 12px; }
  .exh:has(.exh-slide.is-wall) .exh-dots { bottom: 22px; }
}
/* 輪播：上傳的大圖封面（圖上已有展名）——同一張圖模糊壓暗當背景，整張置中，下方只留展期 */
.exh-slide.is-poster { background: #1c1a18; }
.exh-slide.is-poster .exh-bg, .exh-slide.is-poster.on .exh-bg { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover; filter: blur(32px) brightness(.4) saturate(.85); transform: none; transition: none; }
.exh-slide.is-poster::after { background: radial-gradient(ellipse at center, rgba(20,18,16,0) 45%, rgba(20,18,16,.5) 100%); }
.exh-pbox { position: absolute; z-index: 1; inset: 5% 6% 13%; container-type: size; display: flex; align-items: center; justify-content: center; }
.exh-slide.is-poster .exh-frame { position: relative; top: auto; left: auto; right: auto; height: auto; width: auto; max-width: none; transform: none; }
.exh-slide.is-poster .exh-frame img, .exh-slide.is-poster.on .exh-frame img { display: block; width: auto; height: auto; max-width: 100cqw; max-height: 100cqh; object-fit: contain; transform: none; transition: none; }
.exh-slide.is-poster:hover .exh-go { background: #fff; color: #222; }
.exh-pk { position: absolute; z-index: 1; left: max(24px, calc((100% - 1200px) / 2 + 24px)); bottom: 24px; font-size: 13px; letter-spacing: .2em; color: rgba(255,255,255,.88); }
.exh:has(.exh-slide.is-poster) .exh-dots { left: 50%; right: auto; transform: translateX(-50%); bottom: 26px; }
@media (max-width: 720px) {
  .exh:has(.exh-slide.is-poster) { height: min(62vh, calc((100vw - 40px) * .85 + 104px)); min-height: 0; }
  .exh-pbox { inset: 16px 20px 88px; }
  .exh-pk { left: 0; right: 0; bottom: 50px; text-align: center; font-size: 12px; }
  .exh:has(.exh-slide.is-poster) .exh-dots { bottom: 22px; }
}
/* 卡片：大牆封面照原比例完整顯示，下面只有「進入展廳」 */
.exi-grid { align-items: start; }
.exi-card.is-wall .exi-img { aspect-ratio: auto; background: none; }
.exi-card.is-wall .exi-img img { display: block; height: auto; object-fit: contain; }
.exi-row { display: flex; align-items: stretch; justify-content: space-between; gap: 14px; margin-top: 8px; } /* 展名、副標的上下緣跟按鍵等高齊平 */
.exi-txt { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-width: 0; }
.exi-row .exi-t, .exi-row .exi-sub { line-height: 1.05; margin: 0; }
.exi-go { flex: none; display: flex; align-items: center; padding: 0 16px; border: 1px solid #2b2824; color: #2b2824; font-size: 13px; letter-spacing: .14em; transition: background .3s, color .3s; }
.exi-card:hover .exi-go { background: #2b2824; color: #fff; }

/* 大牆封面背後：這個展覽所有作品拼成的相片牆（壓暗，不搶主圖） */
.exh-mosaic { position: absolute; inset: -2px -2px -140px; /* 往下多鋪 140px，背景上移漂動時底部不會露出黑底 */ display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 150px; gap: 3px; overflow: hidden; filter: brightness(.36) saturate(.75); }
.exh-mosaic img, .exh-slide.on .exh-mosaic img { width: 100%; height: 100%; object-fit: cover; transform: none; transition: none; }
.exh-slide.is-wall .exh-mosaic { animation: exh-drift 40s linear infinite alternate; }
@keyframes exh-drift { from { transform: translateY(0); } to { transform: translateY(-120px); } }
@media (max-width: 720px) { .exh-mosaic { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); grid-auto-rows: 96px; } }
@media (prefers-reduced-motion: reduce) { .exh-slide.is-wall .exh-mosaic { animation: none; } }
/* 線上展廳卡片：一排三張（平板兩張、手機一張），標題不斷行 */
.exi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
@media (max-width: 960px) { .exi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .exi-grid { grid-template-columns: 1fr; } }
.exi-row .exi-t, .exi-row .exi-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 攝影模式（研華等場館）：預設機位、取景框、拍照下載 ---------- */
.ex-bar .ph-btn { padding: 8px 12px; display: inline-flex; align-items: center; }
.ex.photo::after { display: none; } /* 存下來的照片沒有暗角，預覽也拿掉 */
.ex.photo .ex-ui { display: none !important; }
.ex-photo { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.ex-photo[hidden] { display: none; }
.ph-frame { position: absolute; box-shadow: 0 0 0 200vmax rgba(10, 9, 8, .42); outline: 1px solid rgba(255, 255, 255, .55); }
.ph-frame i { display: none; position: absolute; background: rgba(255, 255, 255, .28); }
.ph-frame.grid i { display: block; }
.ph-frame .g1, .ph-frame .g2 { top: 0; bottom: 0; width: 1px; } .ph-frame .g1 { left: 33.333%; } .ph-frame .g2 { left: 66.667%; }
.ph-frame .g3, .ph-frame .g4 { left: 0; right: 0; height: 1px; } .ph-frame .g3 { top: 33.333%; } .ph-frame .g4 { top: 66.667%; }
.ph-panel { pointer-events: auto; position: absolute; right: 14px; top: 14px; bottom: 14px; width: 272px; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; font-size: 12px; color: var(--ex-ink); }
.ph-top { display: flex; justify-content: space-between; align-items: center; }
.ph-top b { font: 400 15px var(--ex-serif); letter-spacing: .16em; }
.ph-panel button { font: 400 12px var(--ex-sans); color: var(--ex-ink); background: rgba(255, 255, 255, .06); border: 1px solid var(--ex-line); border-radius: 8px; padding: 6px 9px; cursor: pointer; letter-spacing: .04em; }
.ph-panel button:hover { background: rgba(255, 255, 255, .12); }
.ph-panel button.on { background: var(--ex-ink); color: #1a1816; border-color: var(--ex-ink); }
.ph-top .ph-x { border: 0; background: transparent; color: var(--ex-stone); }
.ph-shots { flex: 1; min-height: 80px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 2px; }
.ph-shots button { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.ph-row > span { width: 34px; color: var(--ex-stone); }
.ph-row label { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; cursor: pointer; }
.ph-tip { color: var(--ex-stone); line-height: 1.6; }
.ph-panel .ph-snap { padding: 11px; font-size: 14px; letter-spacing: .2em; background: var(--ex-ink); color: #1a1816; border-color: var(--ex-ink); border-radius: 999px; }
.ph-snap:disabled { opacity: .6; cursor: progress; }
.ph-flash { position: absolute; inset: 0; z-index: 7; background: #fff; pointer-events: none; animation: phFlash .45s ease-out forwards; }
@keyframes phFlash { from { opacity: .85; } to { opacity: 0; } }
@media (max-width: 720px) {
  .ph-panel { top: auto; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; max-height: 46%; padding: 10px; gap: 7px; }
  .ph-shots { flex-direction: row; overflow-x: auto; overflow-y: hidden; flex: none; min-height: 0; }
  .ph-tip { display: none; }
}
.ph-shots button { flex: none; }
/* 純白長廊：暗角很淡，保持乾淨的白 */
.ex.ex-corridor { background: #f3f2ef; }
.ex.ex-corridor::after { background: radial-gradient(ellipse 90% 85% at 50% 48%, rgba(0, 0, 0, 0) 62%, rgba(60, 52, 44, .1) 100%); }
/* 純白長廊：作品說明，出現在畫的正下方靠左（像美術館牆上的說明，深色字、不加底） */
.cr-cap { position: absolute; z-index: 4; left: 0; top: 0; color: #2b2926; opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; text-shadow: 0 0 12px rgba(250, 249, 246, .9); }
.cr-cap.on { opacity: 1; transform: none; pointer-events: auto; }
.cr-cap .cr-n { margin: 0 0 4px; font: 400 11px var(--ex-sans); letter-spacing: .16em; color: #8f877d; }
.cr-cap .cr-t { margin: 0; font: 400 19px/1.35 var(--ex-serif); letter-spacing: .06em; }
.cr-cap .cr-m { margin: 3px 0 0; font: 400 12.5px/1.6 var(--ex-sans); color: #5b564f; letter-spacing: .05em; }
.cr-cap .cr-p { margin: 1px 0 0; font: 400 12.5px/1.6 var(--ex-sans); color: #5b564f; letter-spacing: .05em; }
.cr-cap .cr-p[hidden] { display: none; }
.cr-cap .cr-a { margin: 9px 0 0; display: flex; gap: 14px; font: 400 12px var(--ex-sans); letter-spacing: .1em; }
.cr-cap .cr-a a, .cr-cap .cr-a button { color: #2b2926; background: none; border: 0; padding: 0 0 2px; border-bottom: 1px solid rgba(43, 41, 38, .35); cursor: pointer; text-decoration: none; font: inherit; letter-spacing: inherit; }
.ex.photo .cr-cap { display: none; }
@media (max-width: 720px) { .cr-cap .cr-t { font-size: 16px; } .cr-cap .cr-m { font-size: 11.5px; } }
