
/* ============ 雨過編晴 · 全站樣式 ============ */
:root{
  --navy:#1c2b4a;
  --navy-deep:#131f38;
  --navy-soft:#2b3d66;
  --navy-mist:#3d5180;
  --cream:#f8f4ec;
  --cream-2:#efe7d8;
  --cream-3:#e6dcc8;
  --gold:#c2a068;
  --gold-soft:#d8c39a;
  --ink:#2b3446;
  --radius:18px;
  --shadow:0 10px 30px rgba(19,31,56,.10);
  --shadow-lg:0 18px 50px rgba(19,31,56,.16);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:'Noto Sans TC','PingFang TC','Microsoft JhengHei',sans-serif;
  background:var(--cream);
  color:var(--ink);
  line-height:1.85;
  letter-spacing:.02em;
}
h1,h2,h3,h4,.serif{font-family:'Noto Serif TC','Songti TC',serif;font-weight:600;line-height:1.5}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.wrap{max-width:1120px;margin:0 auto;padding:0 24px}

/* ---------- 導航列 ---------- */
nav{
  position:sticky;top:0;z-index:100;
  background:rgba(19,31,56,.92);
  backdrop-filter:blur(10px);
}
.nav-inner{max-width:1120px;margin:0 auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:10px;color:var(--cream);font-family:'Noto Serif TC',serif;font-size:1.25rem;letter-spacing:.15em}
.brand .logo{
  width:58px;height:58px;border-radius:50%;
  flex:0 0 58px;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  background:transparent;
  box-shadow:0 0 0 3px rgba(248,244,236,.15);
}
.brand .logo img{
  width:100%;height:100%;display:block;
  object-fit:cover;border-radius:50%;
}
.brand-name{white-space:nowrap;}
.nav-links{display:flex;gap:6px;flex-wrap:wrap}
.nav-links a{
  color:rgba(248,244,236,.82);font-size:.92rem;padding:8px 14px;border-radius:999px;
  transition:all .25s ease;
}
.nav-links a:hover{color:var(--cream);background:rgba(248,244,236,.12)}
.nav-links a.active{color:var(--navy-deep);background:var(--cream)}
.nav-cta{background:var(--gold);color:var(--navy-deep)!important;font-weight:600}
.nav-cta:hover{background:var(--gold-soft)!important}
.burger{display:none;background:none;border:none;color:var(--cream);font-size:1.5rem;cursor:pointer}
@media(max-width:820px){
  .brand .logo{width:44px;height:44px;flex-basis:44px}
  .brand{font-size:1.1rem;gap:9px}
  .burger{display:block}
  .nav-links{
    display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;
    background:var(--navy-deep);padding:12px 20px 20px;gap:4px;
  }
  .nav-links.open{display:flex}
  .nav-links a{padding:12px 14px}
}

/* ---------- Hero ---------- */
.hero{
  /* Desktop：更換 assets/images/hero-desktop.jpg 即可 */
  background-image:
    linear-gradient(160deg,rgba(8,20,28,.42) 0%,rgba(12,31,39,.25) 50%,rgba(19,31,56,.48) 100%),
    url("images/hero-desktop.jpg");
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  color:var(--cream);
  min-height:620px;
  padding:110px 0 100px;
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:'';position:absolute;inset:0;z-index:1;
  background:
    radial-gradient(circle at 82% 18%,rgba(255,235,195,.10),transparent 40%),
    linear-gradient(180deg,rgba(9,18,27,.03),rgba(9,18,27,.12));
  pointer-events:none;
}
.hero-inner{position:relative;z-index:4;text-align:center;max-width:820px;margin:0 auto;padding:0 24px}
.hero .kicker{
  display:inline-block;font-size:.85rem;letter-spacing:.4em;color:var(--gold-soft);
  border:1px solid rgba(194,160,104,.45);border-radius:999px;padding:6px 20px;margin-bottom:26px;
  background:rgba(19,31,56,.10);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
}
.hero h1{font-size:clamp(1.9rem,4.5vw,3rem);letter-spacing:.08em;margin-bottom:18px;text-shadow:0 3px 22px rgba(0,0,0,.28)}
.hero h1 em{font-style:normal;color:var(--gold-soft)}
.hero p.sub{font-size:clamp(1rem,2vw,1.15rem);color:rgba(248,244,236,.90);max-width:640px;margin:0 auto 40px;text-shadow:0 2px 16px rgba(0,0,0,.28)}
.btn-row{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.btn{
  display:inline-block;padding:13px 32px;border-radius:999px;font-size:1rem;letter-spacing:.08em;
  transition:all .25s ease;cursor:pointer;border:none;font-family:inherit;
}
.btn-gold{background:var(--gold);color:var(--navy-deep);font-weight:600;box-shadow:0 8px 24px rgba(194,160,104,.35)}
.btn-gold:hover{background:var(--gold-soft);transform:translateY(-2px)}
.btn-ghost{border:1.5px solid rgba(248,244,236,.5);color:var(--cream);background:rgba(19,31,56,.08);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.btn-ghost:hover{background:rgba(248,244,236,.12);transform:translateY(-2px)}

/* Mobile：自動切換另一張 Hero 圖 */
@media(max-width:768px){
  .hero{
    background-image:
      linear-gradient(165deg,rgba(8,20,28,.38) 0%,rgba(12,31,39,.22) 50%,rgba(19,31,56,.46) 100%),
      url("images/hero-mobile.jpg");
    background-size:cover;
    background-position:center center;
    min-height:600px;
    padding:95px 0 80px;
  }
  .hero-inner{padding:0 20px}
  .hero .kicker{font-size:.72rem;letter-spacing:.28em}
  .hero h1{font-size:clamp(1.8rem,8vw,2.35rem)}
  .hero p.sub{font-size:.98rem;line-height:1.9}
}
/* ===== HERO 标题大小 ===== */
.hero h1 {
  font-size: clamp(30px, 4.5vw, 45px);
  line-height: 1.15;
}

/* 手机 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
  }
}

/* ---------- 通用區塊 ---------- */
section{padding:90px 0}
.sec-head{text-align:center;margin-bottom:56px}
.sec-head .eyebrow{font-size:.85rem;letter-spacing:.35em;color:var(--gold);margin-bottom:10px;display:block}
.sec-head h2{font-size:clamp(1.6rem,3vw,2.2rem);color:var(--navy)}
.sec-head .divider{width:56px;height:2px;background:linear-gradient(90deg,transparent,var(--gold),transparent);margin:18px auto 0}
.sec-head p.lead{max-width:640px;margin:18px auto 0;color:#5a6478}
.on-dark .sec-head h2{color:var(--cream)}
.on-dark .sec-head p.lead{color:rgba(248,244,236,.75)}

/* ---------- 品牌故事 ---------- */
.story{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
@media(max-width:860px){.story{grid-template-columns:1fr;gap:36px}}
.story-visual{
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-lg);
  aspect-ratio:4/5;background:linear-gradient(150deg,var(--navy-soft),var(--navy-deep));
  position:relative;display:flex;align-items:center;justify-content:center;
}
.story-visual svg{width:78%;height:auto;opacity:.95}
.story-quote{
  font-family:'Noto Serif TC',serif;font-size:1.25rem;color:var(--navy);
  border-left:3px solid var(--gold);padding-left:18px;margin-bottom:22px;
}
.story-text p{margin-bottom:16px;color:#4a5468}
.story-sig{margin-top:24px;font-family:'Noto Serif TC',serif;color:var(--gold);letter-spacing:.15em}

/* ---------- 工藝理念卡片 ---------- */
.craft-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
@media(max-width:860px){.craft-grid{grid-template-columns:1fr}}
.craft-card{
  background:#fffdf8;border-radius:var(--radius);padding:38px 30px;box-shadow:var(--shadow);
  border-top:4px solid var(--gold);transition:transform .3s ease,box-shadow .3s ease;
}
.craft-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg)}
.craft-icon{
  width:58px;height:58px;border-radius:16px;margin-bottom:20px;
  background:linear-gradient(135deg,var(--navy),var(--navy-soft));color:var(--gold-soft);
  display:flex;align-items:center;justify-content:center;font-size:1.5rem;
}
.craft-card h3{color:var(--navy);font-size:1.15rem;margin-bottom:12px}
.craft-card p{color:#5a6478;font-size:.95rem}

/* ---------- CTA 橫幅 ---------- */
.cta-band{
  background:linear-gradient(135deg,var(--navy) 0%,var(--navy-soft) 100%);
  border-radius:var(--radius);padding:56px 40px;text-align:center;color:var(--cream);
  position:relative;overflow:hidden;
}
.cta-band::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 85% 15%,rgba(194,160,104,.25),transparent 45%);pointer-events:none}
.cta-band h3{font-size:1.5rem;margin-bottom:12px;position:relative}
.cta-band p{color:rgba(248,244,236,.8);margin-bottom:26px;position:relative}

/* ---------- 頁尾 ---------- */
footer{background:var(--navy-deep);color:rgba(248,244,236,.75);padding:64px 0 34px;text-align:center}
footer .f-brand{font-family:'Noto Serif TC',serif;font-size:1.4rem;color:var(--cream);letter-spacing:.2em;margin-bottom:8px}
footer .f-micro{font-family:'Noto Serif TC',serif;color:var(--gold-soft);margin:6px 0;font-size:.98rem}
footer .f-links{display:flex;gap:22px;justify-content:center;margin:26px 0;flex-wrap:wrap}
footer .f-links a{font-size:.9rem;transition:color .2s}
footer .f-links a:hover{color:var(--gold-soft)}
footer .f-copy{font-size:.8rem;color:rgba(248,244,236,.4);border-top:1px solid rgba(248,244,236,.12);padding-top:22px;margin-top:10px}

/* ---------- 作品集 ---------- */
.filter-bar{
  background:#fffdf8;border-radius:var(--radius);box-shadow:var(--shadow);
  padding:22px 26px;margin-bottom:44px;display:flex;flex-wrap:wrap;gap:14px;align-items:center;
}
.search-box{flex:1;min-width:220px;position:relative}
.search-box input{
  width:100%;padding:12px 18px 12px 44px;border-radius:999px;border:1.5px solid var(--cream-3);
  background:var(--cream);font-size:.95rem;font-family:inherit;color:var(--ink);outline:none;
  transition:border .2s;
}
.search-box input:focus{border-color:var(--gold)}
.search-box::before{content:'🔍';position:absolute;left:16px;top:50%;transform:translateY(-50%);font-size:.9rem;opacity:.55}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{
  padding:9px 18px;border-radius:999px;font-size:.88rem;cursor:pointer;border:1.5px solid var(--cream-3);
  background:#fff;transition:all .2s;font-family:inherit;color:#5a6478;
}
.chip:hover{border-color:var(--gold);color:var(--navy)}
.chip.active{background:var(--navy);border-color:var(--navy);color:var(--cream)}
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
@media(max-width:960px){.product-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.product-grid{grid-template-columns:1fr}}
.p-card{
  background:#fffdf8;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);
  transition:transform .3s ease,box-shadow .3s ease;display:flex;flex-direction:column;
}
.p-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg)}
.p-img{aspect-ratio:1/1;overflow:hidden;position:relative;background:linear-gradient(145deg,var(--navy-soft),var(--navy-deep))}
.p-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.p-card:hover .p-img img{transform:scale(1.05)}
.p-tag{
  position:absolute;top:12px;left:12px;background:rgba(248,244,236,.92);color:var(--navy);
  font-size:.75rem;padding:4px 12px;border-radius:999px;letter-spacing:.05em;
}
.p-body{padding:20px 22px 24px;display:flex;flex-direction:column;flex:1}
.p-body h3{font-size:1.05rem;color:var(--navy);margin-bottom:6px}
.p-body .p-desc{font-size:.88rem;color:#6a7488;flex:1;margin-bottom:14px}
.p-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.p-price{font-family:'Noto Serif TC',serif;color:var(--navy);font-size:1.1rem;font-weight:600}
.p-price small{font-size:.72rem;color:#8a92a4;font-family:'Noto Sans TC',sans-serif;font-weight:400}
.btn-order{
  background:var(--navy);color:var(--cream);font-size:.85rem;padding:9px 18px;border-radius:999px;
  transition:all .2s;white-space:nowrap;
}
.btn-order:hover{background:var(--gold);color:var(--navy-deep)}
.empty-state{text-align:center;padding:70px 20px;color:#8a92a4}
.empty-state .big{font-size:3rem;margin-bottom:14px}
.count-note{font-size:.85rem;color:#8a92a4;margin:-24px 0 30px;text-align:right}

/* ==================================================
   PRODUCT ZONE FILTER
================================================== */

.product-toolbar {
  max-width: 1000px;
  margin: 0 auto 45px;
  padding: 0 24px;

  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 12px;

  position: relative;
  z-index: 20;
}


/* SEARCH */

.product-search {
  height: 56px;

  display: flex;
  align-items: center;

  background: #fff;

  border: 1px solid rgba(20, 45, 55, .16);
  border-radius: 10px;

  padding: 0 18px;

  transition: .25s ease;
}

.product-search:focus-within {
  border-color: var(--gold);

  box-shadow:
    0 0 0 3px rgba(194,160,104,.10);
}

.search-icon {
  font-size: 1.5rem;
  margin-right: 12px;
  opacity: .55;
}

.product-search input {
  width: 100%;

  border: 0;
  outline: 0;

  background: transparent;

  font-family: inherit;
  font-size: 1rem;

  color: var(--navy);
}


/* ==============================
   FILTER
============================== */

.category-filter {
  position: relative;
}


/* FILTER BUTTON */

.filter-toggle {
  width: 100%;
  height: 56px;

  border: 1px solid rgba(20,45,55,.16);
  border-radius: 10px;

  background: #fff;

  display: flex;
  align-items: center;
  gap: 9px;

  padding: 0 15px;

  font-family: inherit;

  cursor: pointer;

  color: var(--navy);

  transition: .25s ease;
}

.filter-toggle:hover {
  border-color: var(--gold);
}


.filter-icon {
  font-size: 1rem;
  color: var(--gold);
}


.current-category {
  margin-left: auto;

  font-size: .85rem;

  color: rgba(20,45,55,.55);

  max-width: 95px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.filter-arrow {
  font-size: 1rem;

  transition:
    transform .3s ease;
}


/* OPEN */

.category-filter.open .filter-arrow {
  transform: rotate(180deg);
}


/* ==============================
   DROPDOWN PANEL
============================== */

.filter-panel {
  position: absolute;

  top: calc(100% + 8px);
  right: 0;

  width: 290px;

  background: rgba(255,255,255,.98);

  border:
    1px solid rgba(20,45,55,.10);

  border-radius: 12px;

  box-shadow:
    0 18px 45px rgba(10,25,30,.15);

  padding: 8px;

  opacity: 0;

  visibility: hidden;

  transform:
    translateY(-10px);

  transition:
    opacity .25s ease,
    transform .25s ease,
    visibility .25s;

  z-index: 100;
}


/* PANEL OPEN */

.category-filter.open .filter-panel {
  opacity: 1;

  visibility: visible;

  transform:
    translateY(0);
}


/* ==============================
   FILTER OPTIONS
============================== */

.filter-option {
  width: 100%;

  border: 0;

  background: transparent;

  padding: 14px 15px;

  border-radius: 8px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  text-align: left;

  font-family: inherit;

  font-size: .95rem;

  color: var(--navy);

  cursor: pointer;

  transition:
    background .2s ease,
    color .2s ease;
}


.filter-option:hover {
  background:
    rgba(194,160,104,.10);
}


/* CHECKMARK */

.filter-option span:last-child {
  opacity: 0;

  color: var(--gold);

  font-weight: 700;
}


.filter-option.active {
  background:
    rgba(194,160,104,.12);

  color:
    var(--navy-deep);
}


.filter-option.active span:last-child {
  opacity: 1;
}


/* ==============================
   MOBILE
============================== */

@media (max-width: 768px) {

  .product-toolbar {
    grid-template-columns: 1fr;

    gap: 10px;

    margin-bottom: 30px;

    padding:
      0 18px;
  }


  .product-search,
  .filter-toggle {
    height: 52px;
  }


  .filter-panel {
    width: 100%;

    left: 0;
    right: auto;
  }


  .filter-option {
    min-height: 50px;

    font-size:
      .95rem;
  }
  /* =========================================
   STORY IMAGE
========================================= */

.story-visual {
  position: relative;
  overflow: hidden;
}

/* 新图片 */
.story-main-image {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;

  transition:
    transform 0.8s cubic-bezier(.2,.7,.2,1),
    filter 0.6s ease;
}

/* Desktop 鼠标经过 */
@media (hover: hover) and (pointer: fine) {

  .story-visual:hover .story-main-image {
    transform: scale(1.035);
  }

}



}

/* ---------- 藏傳寶物 ---------- */
.treasure-hero{
  background:linear-gradient(160deg,var(--navy-deep),var(--navy) 60%,var(--navy-soft));
  color:var(--cream);padding:96px 0;text-align:center;position:relative;overflow:hidden;
}
.treasure-hero::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 50% -10%,rgba(194,160,104,.28),transparent 55%)}
.treasure-hero h1{font-size:clamp(1.8rem,4vw,2.6rem);letter-spacing:.1em;margin-bottom:16px;position:relative}
.treasure-hero p{max-width:600px;margin:0 auto;color:rgba(248,244,236,.8);position:relative}
.t-card{
  background:#fffdf8;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;
  display:grid;grid-template-columns:220px 1fr;transition:transform .3s ease,box-shadow .3s ease;
}
.t-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
@media(max-width:680px){.t-card{grid-template-columns:1fr}}
.t-card .t-img{background:linear-gradient(145deg,var(--navy-soft),var(--navy-deep));min-height:200px;display:flex;align-items:center;justify-content:center}
.t-card .t-img svg{width:60%}
.t-card .t-body{padding:30px 32px}
.t-card h3{color:var(--navy);margin-bottom:8px}
.t-card .t-note{font-size:.85rem;color:var(--gold);letter-spacing:.1em;margin-bottom:10px}
.t-card p{font-size:.93rem;color:#5a6478}
.t-list{display:grid;gap:24px}
.ritual{
  background:linear-gradient(150deg,var(--navy) 0%,var(--navy-soft) 100%);
  border-radius:var(--radius);color:var(--cream);padding:56px 44px;position:relative;overflow:hidden;
}
.ritual::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 90% 10%,rgba(194,160,104,.22),transparent 45%)}
.ritual-grid{display:grid;grid-template-columns:1fr 1fr;gap:44px;position:relative}
@media(max-width:820px){.ritual-grid{grid-template-columns:1fr}}
.ritual h3{color:var(--gold-soft);font-size:1.3rem;margin-bottom:14px}
.ritual p{color:rgba(248,244,236,.82);font-size:.95rem;margin-bottom:12px}
.ritual ul{list-style:none;margin-top:8px}
.ritual li{padding:8px 0 8px 26px;position:relative;color:rgba(248,244,236,.85);font-size:.93rem}
.ritual li::before{content:'✦';position:absolute;left:0;color:var(--gold-soft)}

/* ---------- 關於我們 ---------- */
.values{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;margin-top:54px}
@media(max-width:860px){.values{grid-template-columns:1fr}}
.timeline{max-width:680px;margin:0 auto}
.tl-item{display:flex;gap:22px;margin-bottom:34px}
.tl-dot{
  flex:none;width:14px;height:14px;border-radius:50%;background:var(--gold);margin-top:10px;
  box-shadow:0 0 0 5px rgba(194,160,104,.18);
}
.tl-item h4{color:var(--navy);margin-bottom:4px}
.tl-item p{font-size:.93rem;color:#5a6478}

/* ---------- 管理後台 ---------- */
.admin-layout{display:grid;grid-template-columns:380px 1fr;gap:30px;align-items:start}
@media(max-width:920px){.admin-layout{grid-template-columns:1fr}}
.admin-panel{background:#fffdf8;border-radius:var(--radius);box-shadow:var(--shadow);padding:30px}
.admin-panel h3{color:var(--navy);margin-bottom:18px;font-size:1.1rem}
.field{margin-bottom:16px}
.field label{display:block;font-size:.85rem;color:#5a6478;margin-bottom:6px}
.field input,.field select,.field textarea{
  width:100%;padding:10px 14px;border-radius:12px;border:1.5px solid var(--cream-3);
  font-family:inherit;font-size:.92rem;background:var(--cream);outline:none;color:var(--ink);
}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--gold)}
.admin-item{
  display:flex;gap:14px;align-items:center;background:#fffdf8;border-radius:14px;
  box-shadow:var(--shadow);padding:14px 18px;margin-bottom:12px;
}
.admin-item .thumb{width:56px;height:56px;border-radius:12px;overflow:hidden;flex:none;background:linear-gradient(145deg,var(--navy-soft),var(--navy-deep))}
.admin-item .thumb img{width:100%;height:100%;object-fit:cover}
.admin-item .info{flex:1;min-width:0}
.admin-item .info b{color:var(--navy);display:block;font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-item .info span{font-size:.8rem;color:#8a92a4}
.admin-item .ops{display:flex;gap:8px}
.mini-btn{padding:6px 14px;border-radius:999px;font-size:.8rem;border:none;cursor:pointer;font-family:inherit;transition:all .2s}
.mini-btn.edit{background:var(--navy);color:var(--cream)}
.mini-btn.del{background:#f3e3e3;color:#a44848}
.mini-btn.save{background:var(--gold);color:var(--navy-deep);font-weight:600}
.hint{background:rgba(194,160,104,.12);border:1px solid rgba(194,160,104,.35);border-radius:12px;padding:14px 18px;font-size:.85rem;color:#7a6435;margin-bottom:22px;line-height:1.7}
.reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s ease}
.reveal.show{opacity:1;transform:none}

.gallery-section {
  padding: 75px 0 0;
  background: var(--cream);
}

.gallery-title {
  text-align: center;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 42px;
}

.gallery-strip {
  width: 100%;
  overflow-x: auto;
  background: #273149;
  padding: 105px 0 78px;
  cursor: grab;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.gallery-strip.is-dragging {
  cursor: grabbing;
}

.gallery-track {
  display: flex;
  width: max-content;
  gap: 42px;
  padding: 0 42px;
}

.gallery-item {
  flex: 0 0 250px;
  width: 250px;
  height: 250px;
  background: #c9c9c9;
  overflow: hidden;
  user-select: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

@media (max-width: 700px) {
  .gallery-section { padding-top: 48px; }
  .gallery-title { margin-bottom: 22px; }
  .gallery-strip { padding: 44px 0; }
  .gallery-track { gap: 16px; padding: 0 13px; }
  .gallery-item {
    flex-basis: 55vw;
    width: 55vw;
    height: 55vw;
  }
}
@media (max-width: 700px) {
  .gallery-item {
    flex-basis: 40vw;
    width: 40vw;
    height: 40vw;
  }
}


/* 經幡 · 供燈：依參考圖固定尺寸拼貼；窄視窗橫向滑動，不縮放格子 */
.blessing-wall-scroll{width:100vw;max-width:none;margin:0 0 55px calc(50% - 50vw);overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:var(--gold) transparent}
.blessing-wall{width:1948px;height:687px;position:relative;margin:0 auto;flex:none}
.blessing-wall-tile{position:absolute;overflow:hidden;background:#303033;color:#fff;display:flex;align-items:center;justify-content:center;font:400 64px/1 'Noto Sans TC',sans-serif}
.blessing-wall-tile img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;z-index:1}
.blessing-wall-tile:nth-child(1){left:0px;top:89px;width:133px;height:132px}
.blessing-wall-tile:nth-child(2){left:156px;top:0px;width:224px;height:144px}
.blessing-wall-tile:nth-child(3){left:156px;top:166px;width:224px;height:145px}
.blessing-wall-tile:nth-child(4){left:156px;top:335px;width:224px;height:130px}
.blessing-wall-tile:nth-child(5){left:402px;top:72px;width:146px;height:147px}
.blessing-wall-tile:nth-child(6){left:571px;top:72px;width:146px;height:147px}
.blessing-wall-tile:nth-child(7){left:402px;top:241px;width:315px;height:203px}
.blessing-wall-tile:nth-child(8){left:402px;top:466px;width:146px;height:146px}
.blessing-wall-tile:nth-child(9){left:571px;top:466px;width:146px;height:146px}
.blessing-wall-tile:nth-child(10){left:739px;top:0px;width:225px;height:204px}
.blessing-wall-tile:nth-child(11){left:739px;top:221px;width:225px;height:130px}
.blessing-wall-tile:nth-child(12){left:739px;top:375px;width:225px;height:144px}
.blessing-wall-tile:nth-child(13){left:739px;top:541px;width:225px;height:146px}
.blessing-wall-tile:nth-child(14){left:985px;top:0px;width:224px;height:143px}
.blessing-wall-tile:nth-child(15){left:985px;top:166px;width:224px;height:145px}
.blessing-wall-tile:nth-child(16){left:985px;top:335px;width:224px;height:130px}
.blessing-wall-tile:nth-child(17){left:985px;top:489px;width:224px;height:198px}
.blessing-wall-tile:nth-child(18){left:1232px;top:72px;width:146px;height:147px}
.blessing-wall-tile:nth-child(19){left:1400px;top:72px;width:147px;height:147px}
.blessing-wall-tile:nth-child(20){left:1232px;top:241px;width:315px;height:203px}
.blessing-wall-tile:nth-child(21){left:1232px;top:466px;width:146px;height:146px}
.blessing-wall-tile:nth-child(22){left:1400px;top:466px;width:147px;height:146px}
.blessing-wall-tile:nth-child(23){left:1569px;top:221px;width:224px;height:130px}
.blessing-wall-tile:nth-child(24){left:1569px;top:374px;width:224px;height:145px}
.blessing-wall-tile:nth-child(25){left:1569px;top:541px;width:224px;height:146px}
.blessing-wall-tile:nth-child(26){left:1815px;top:466px;width:133px;height:132px}
@media(max-width:700px){.blessing-wall-scroll{margin-bottom:38px}.blessing-wall{margin-left:16px;margin-right:16px}}
body:has(.blessing-wall-scroll){overflow-x:clip}
.blessing-wall {
  zoom: 0.7;
}
