  :root{
    --paper:#e9e5dd;
    --paper-deep:#ddd7cb;
    --ink:#211f1b;
    --ink-soft:#544e43;
    --line: rgba(33,31,27,0.22);
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0; background:var(--paper); color:var(--ink);
    font-family:'Noto Sans TC', sans-serif; -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
  }
  h1,h2,h3,.serif{ font-family:'Noto Serif TC', serif; }
  a{ color:inherit; text-decoration:none; }
  img{ display:block; max-width:100%; }
  .grain{
    position:fixed; inset:0; pointer-events:none; z-index:999; opacity:0.05; mix-blend-mode:multiply;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
  .label{ font-size:11.5px; letter-spacing:0.22em; color:var(--ink-soft); text-transform:uppercase; }

  /* ---------- TOP-RIGHT MINI MENU ---------- */
  .menu-btn{
    position:fixed; top:22px; right:22px; z-index:210;
    width:46px; height:46px; background:var(--ink); color:var(--paper);
    border:none; cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
    opacity:0; pointer-events:none; transition:opacity .5s ease;
  }
  .menu-btn.visible{ opacity:1; pointer-events:auto; }
  .menu-btn span{ display:block; width:18px; height:1px; background:var(--paper); transition:transform .3s ease, opacity .3s ease; }
  .menu-btn.open span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
  .menu-btn.open span:nth-child(2){ opacity:0; }
  .menu-btn.open span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }
  @media (prefers-reduced-motion: reduce){
    .menu-btn{ opacity:1; pointer-events:auto; transition:none; }
  }

  .menu-panel{
    position:fixed; top:22px; right:22px; z-index:205;
    background:var(--paper); border:1px solid var(--ink);
    min-width:200px; padding:70px 26px 26px;
    transform:translateY(-8px) scale(0.97); opacity:0; pointer-events:none;
    transition:transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
    max-height: calc(100vh - 44px);
    overflow-y: auto;
  }
  .menu-panel.open{ transform:translateY(0) scale(1); opacity:1; pointer-events:auto; }
  .menu-panel a{
    display:block; font-family:'Noto Serif TC',serif; font-size:17px; padding:12px 0;
    border-bottom:1px solid var(--line);
  }
  .menu-panel a:last-child{ border-bottom:none; }
  .menu-flat-link{
    display:block; font-family:'Noto Serif TC',serif; font-size:17px; padding:12px 0;
  }

  /* ---------- 選單：主項目 / 子項目手風琴 ---------- */
  .menu-group{ border-bottom:1px solid var(--line); padding:4px 0; }
  .menu-group:last-of-type{ border-bottom:none; }
  .menu-group-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; cursor:pointer; }
  .menu-group-label{ display:block; font-family:'Noto Serif TC',serif; font-size:17px; }
  .menu-group-head .menu-group-label{ flex:1; border-bottom:none !important; padding:12px 0 !important; }
  .menu-expand-btn{
    background:none; border:none; color:var(--ink-soft); font-size:13px; cursor:pointer;
    padding:8px 4px; transition:transform .25s ease; flex:0 0 auto;
  }
  .menu-group-head.open .menu-expand-btn{ transform:rotate(180deg); }
  .menu-expand-icon{
    font-size:17px; line-height:1; color:var(--ink-soft); flex:0 0 auto;
    transition:transform .3s ease;
  }
  .menu-group-head.open .menu-expand-icon{ transform:rotate(45deg); }
  /* 點主項目（或箭頭）就整組展開：文章清單 + 相簿清單一起滑出來 */
  .menu-group-body{
    max-height:0; overflow:hidden;
    transition:max-height .4s cubic-bezier(.4,0,.2,1);
  }
  .menu-group-body.open{ max-height:900px; overflow-y:auto; }
  .menu-sublist{ padding-left:12px; }

  /* ---------- 選單文字翻轉（中文 → 英文，滑過/點擊翻轉） ---------- */
  .flip-label{ display:inline-block; perspective:600px; vertical-align:top; }
  .flip-inner{
    display:grid; transform-style:preserve-3d; transform-origin:50% 50%;
    transition:transform .3s ease;
  }
  .menu-group-label:active .flip-inner,
  .menu-group-label:hover .flip-inner{ transform:rotateX(180deg); }
  .flip-front, .flip-back{ grid-area:1 / 1; backface-visibility:hidden; white-space:nowrap; }
  .flip-back{
    transform:rotateX(180deg); font-size:0.86em; letter-spacing:0.14em; color:var(--ink-soft);
    align-self:center;
  }
  @media (prefers-reduced-motion: reduce){ .flip-inner{ transition:none; } }

  .menu-sub-link{
    display:block; font-size:14.5px; padding:10px 0; border-bottom:1px dashed var(--line);
    color:var(--ink); font-family:'Noto Serif TC', serif;
  }
  .menu-sub-link:last-child{ border-bottom:none; }

  /* ---------- 選單：分類下方的相簿名稱清單（比文章小一層，跟 V1 的層級一致） ---------- */
  .menu-album-list{ padding-left:22px; padding-bottom:6px; }
  .menu-album-item{
    display:block; font-size:9px; letter-spacing:0.03em; color:var(--ink-soft); padding:6px 0;
    font-family:'Noto Sans TC', sans-serif; cursor:pointer;
  }
  .menu-album-item:hover{ color:var(--ink); }

  /* ---------- 選單：影音子分類展開 ---------- */
  .menu-video-item{
    display:flex; align-items:center; justify-content:space-between; gap:8px;
    font-size:17px; padding:12px 0; border-bottom:1px solid var(--line);
    color:var(--ink); font-family:'Noto Serif TC', serif; cursor:pointer;
  }
  .menu-video-toggle-icon{ font-size:14px; color:var(--ink-soft); transition:transform .3s ease; flex:0 0 auto; }
  .menu-video-item.open .menu-video-toggle-icon{ transform:rotate(45deg); }
  .menu-video-subpanel{ max-height:0; overflow:hidden; transition:max-height .4s cubic-bezier(.4,0,.2,1); }
  .menu-video-subpanel.open{ max-height:420px; overflow-y:auto; }
  .menu-video-sub-inner{ padding:6px 0 4px; display:flex; flex-direction:column; gap:2px; }
  .menu-video-sub-link{
    display:block; font-size:13px; padding:10px 0 10px 2.6em; color:var(--ink-soft);
    font-family:'Noto Sans TC', sans-serif;
  }
  .menu-video-sub-link:hover{ color:var(--ink); }

  /* ---------- 浮動 IG / EMAIL 按鈕 ---------- */
  .float-links{
    position:fixed; right:22px; bottom:26px; z-index:200;
    display:flex; flex-direction:column; gap:10px;
  }
  .float-btn{
    width:44px; height:44px; background:var(--ink); color:var(--paper);
    display:flex; align-items:center; justify-content:center;
    border-radius:50%; transition:transform .25s ease, background .25s ease;
    border:none; cursor:pointer;
  }
  .float-btn:hover{ background:var(--ink-soft); transform:translateY(-2px); }
  .float-btn svg{ display:block; }
  .textsize-icon{ font-family:'Noto Sans TC', sans-serif; font-size:14px; font-weight:500; letter-spacing:0; color:var(--paper); }
  .textsize-icon span{ font-size:10px; vertical-align:super; }
  body.text-large{ zoom:1.18; }
  .float-textsize.active{ background:var(--ink-soft); }

  .btn{
    display:inline-block; padding:14px 28px; border:1px solid var(--ink);
    font-size:12px; letter-spacing:0.18em; text-transform:uppercase;
    transition:background .3s ease, color .3s ease;
  }
  .btn:hover{ background:var(--ink); color:var(--paper); }
  .btn.light{ border-color:rgba(233,229,221,0.7); color:var(--paper); }
  .btn.light:hover{ background:var(--paper); color:var(--ink); }

  /* ---------- HERO ---------- */
  .hero{ position:relative; }
  .hero img{ width:100%; height:78vh; min-height:460px; object-fit:cover; object-position:center 68%; filter:grayscale(1) contrast(1.05); }
  .hero::after{
    content:''; position:absolute; inset:0;
    background:linear-gradient(180deg, rgba(18,16,13,0.1) 0%, rgba(18,16,13,0.72) 100%);
  }
  .hero-lines{ position:absolute; inset:0; z-index:1; pointer-events:none; }
  .hero-lines .v{ position:absolute; top:0; bottom:0; width:1px; background:rgba(233,229,221,0.35); }
  .hero-lines .v1{ left:33%; }
  .hero-lines .v2{ left:66%; }
  .hero-lines .h{ position:absolute; left:0; right:0; height:1px; background:rgba(233,229,221,0.35); top:38%; }
  .hero-text{ position:absolute; left:0; right:0; bottom:0; padding:0 8vw 8vh; color:var(--paper); z-index:2; }
  .hero-text .label{ color:rgba(233,229,221,0.75); margin-bottom:16px; }
  .hero-text h1{
    font-size:clamp(30px,6vw,58px); letter-spacing:0.04em; margin:0 0 26px; font-weight:500; line-height:1.5;
    max-width:640px;
  }
  .hero-curtain{
    position:absolute; inset:0; z-index:5; background:var(--paper);
    transform-origin:top; transform:scaleY(1);
    transition:transform 0.95s cubic-bezier(.65,0,.2,1);
    pointer-events:none;
  }
  .hero-curtain.is-done{ transform:scaleY(0); }
  .hero-text h1 .char{ display:inline-block; opacity:0; transform:translateY(0.4em); white-space:pre; }
  .hero-text h1.split-ready .char{ animation:heroCharIn 0.7s cubic-bezier(.2,.8,.2,1) forwards; }
  @keyframes heroCharIn{ to{ opacity:1; transform:translateY(0); } }
  @media (prefers-reduced-motion: reduce){
    .hero-curtain{ display:none; }
    .hero-text h1 .char{ opacity:1 !important; transform:none !important; animation:none !important; }
  }

  /* ---------- QUOTE / ABOUT EN ---------- */
  .quote-section{ padding:64px 8vw 56px; text-align:center; }
  .quote-section blockquote{
    max-width:680px; margin:0 auto 32px; font-family:'Noto Serif TC',serif; font-style:italic;
    font-size:clamp(17px,2vw,21px); line-height:2; color:var(--ink);
  }
  .quote-section .desc{ max-width:560px; margin:0 auto; font-size:14px; line-height:2; color:var(--ink-soft); font-weight:300; }

  /* ---------- ABOUT DAILY ---------- */
  #about-daily{ background:var(--paper-deep); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
  .section-head{ max-width:600px; margin:0 auto 36px; text-align:center; padding-top:56px; }
  .section-head .label{ margin-bottom:12px; }
  .section-head h1, .section-head h2{ font-size:clamp(24px,3.2vw,36px); margin:0; font-weight:500; }

  .service-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:0; max-width:1100px; margin:56px auto 70px; padding:0 8vw; }
  .service{ padding:0 30px; text-align:center; border-left:1px solid var(--line); }
  .service:first-child{ border-left:none; }
  .service .num{ font-family:'Noto Serif TC',serif; font-size:13px; color:var(--ink-soft); margin-bottom:12px; }
  .service .label{ margin-bottom:6px; }
  .service-title-link{ display:inline-block; }
  .service-title-link h3{ transition:opacity .25s ease; }
  .service-title-link:hover h3{ opacity:0.6; }
  .service h3{ font-size:19px; margin:0 0 8px; font-weight:500; }

  /* ---------- 最新拍攝花絮：素面淡入格子，響應式 3/2/1 欄 ---------- */
  #recent-shoots{ padding-bottom:56px; }
  .recent-shoots-grid{
    display:grid; grid-template-columns:repeat(3,1fr); gap:22px;
    max-width:1100px; margin:36px auto 70px; padding:0 8vw;
  }
  .recent-shoots-item{ margin:0; }
  .recent-shoots-item img{ width:100%; aspect-ratio:4/5; object-fit:cover; display:block; }
  .recent-shoots-item figcaption{ font-size:12.5px; color:var(--ink-soft); margin-top:10px; line-height:1.6; }
  @media (max-width:900px){
    .recent-shoots-grid{ grid-template-columns:repeat(2,1fr); }
  }
  @media (max-width:520px){
    .recent-shoots-grid{ grid-template-columns:1fr; gap:26px; }
  }
  .service .tagline{ font-family:'Noto Serif TC',serif; font-style:italic; font-size:13.5px; color:var(--ink-soft); margin-bottom:20px; }
  .service .desc{ font-size:13px; line-height:1.9; color:var(--ink-soft); font-weight:300; min-height:60px; }

  /* ---------- JOURNAL ---------- */
  #journal{ padding:70px 0; }
  .journal-list{ max-width:680px; margin:0 auto; padding:0 8vw; }
  .journal-entry{ border-bottom:1px solid var(--line); padding:26px 0; }
  .journal-row{ display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; row-gap:6px; }
  .journal-row .title{ font-family:'Noto Serif TC',serif; font-size:17px; }
  .journal-row .date{ font-size:11.5px; letter-spacing:0.1em; color:var(--ink-soft); white-space:nowrap; margin-left:20px; }

  /* ---------- FOOTER ---------- */
  footer{ padding:64px 8vw 40px; border-top:1px solid var(--line); }
  .footer-top{ text-align:center; margin-bottom:40px; }
  footer h2{ font-size:clamp(24px,3.6vw,38px); font-weight:500; margin:0 0 24px; }
  .ig-handle{ font-family:'Noto Serif TC',serif; font-size:clamp(22px,3vw,30px); display:block; margin-bottom:30px; }
  .footer-bottom{
    display:flex; justify-content:space-between; font-size:11px; letter-spacing:0.1em;
    color:var(--ink-soft); text-transform:uppercase; padding-top:24px; border-top:1px solid var(--line); flex-wrap:wrap; gap:10px;
    max-width:1100px; margin:0 auto;
  }

  /* ---------- ARTICLE / JOURNAL POST ---------- */
  .article-inner{ max-width:680px; margin:0 auto; padding:60px 8vw 90px; }
  @media (min-width:960px){ .article-inner{ max-width:760px; } }
  @media (min-width:1280px){ .article-inner{ max-width:860px; } }
  .article-back{ display:inline-block; margin-bottom:40px; font-size:13px; border-bottom:1px solid var(--line); }
  .article-inner h1{ font-size:clamp(26px,4vw,40px); margin:0 0 10px; }
  .article-date{ font-size:12px; color:var(--ink-soft); letter-spacing:0.1em; margin-bottom:40px; }
  .article-body{ font-size:15px; line-height:2.1; color:var(--ink); }
  .article-body p{ margin:0 0 24px; }
  .article-body img{ width:100%; margin:30px 0; }
  .article-cover{ width:100%; margin-bottom:40px; }

  /* ---------- 相簿（文章內、關於商業共用） ---------- */
  .biz-albums{ display:grid; grid-template-columns:repeat(2,1fr); gap:44px; margin-top:50px; align-items:start; }
  @media (max-width:700px){ .biz-albums{ grid-template-columns:1fr; } }
  /* 2026-09-13：真正抓到「忽大忽小」的原因——照片張數多的相簿（例如8~9張），
     裡面的輪播是用 flex 排的，瀏覽器計算格線欄寬時，會被那些「還沒捲動到看不見」
     的照片撐開最小寬度需求，導致格線的兩欄沒有真的一樣寬（張數多的那欄變超寬，
     另一欄被擠窄）。加這行 min-width:0，明確告訴瀏覽器「這個相簿方塊不用管裡面
     輪播的照片有幾張，就乖乖照格線分配的寬度顯示就好」，兩欄就會真的等寬。
     已經用實際網頁測試過（個人形象、婚禮兩個相簿寬度從 276px／871px 不等，
     改完變成兩個都是 335.6px），確認有效。 */
  .biz-album{ min-width:0; }
  .biz-album .album-title{ font-family:'Noto Serif TC',serif; font-size:18px; margin-bottom:6px; }
  .biz-album .album-link{ display:inline-block; font-size:12.5px; color:var(--ink-soft); border-bottom:1px solid var(--line); margin-bottom:18px; }
  .album-photo-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:10px; margin-top:14px; }
  .album-photo{ margin:0; }
  .album-photo img{ width:100%; aspect-ratio:4/5; object-fit:cover; cursor:zoom-in; }
  .album-photo figcaption{ font-size:11.5px; color:var(--ink-soft); margin-top:6px; }

  /* ---------- 燈箱：點照片看大圖 ---------- */
  .lightbox-overlay{
    position:fixed; inset:0; z-index:500; background:rgba(0,0,0,0.88);
    display:flex; align-items:center; justify-content:center;
    opacity:0; pointer-events:none; transition:opacity .25s ease;
  }
  .lightbox-overlay.open{ opacity:1; pointer-events:auto; }
  .lightbox-overlay img{ max-width:92vw; max-height:92vh; object-fit:contain; cursor:zoom-out; }

  /* ---------- AI自動化：一張主圖卡片，不是整組照片牆 ---------- */
  .biz-albums--single-image{ display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:22px; margin-top:14px; }
  .biz-album--main-image .album-photo--main img{ width:100%; aspect-ratio:4/3; object-fit:cover; cursor:zoom-in; }
  .biz-album--main-image .album-link--button{
    display:inline-block; margin-top:12px; padding:8px 18px; border:1px solid var(--ink); border-radius:2px;
    font-size:12.5px; letter-spacing:0.06em;
  }
  /* ---------- AI自動化：社群連結圖示（IG／YT／TikTok／FB／Threads，逐一可設定連結，沒填就不顯示） ---------- */
  /* 「立即查看」按鈕已經被這排圖示取代，這裡只留一句提示文字，不是連結 */
  .album-social-links{ display:flex; align-items:center; gap:10px; margin-top:14px; flex-wrap:wrap; }
  .social-hint{ font-size:12.5px; color:var(--ink-soft); margin-right:4px; }
  .social-icon-btn{
    width:38px; height:38px; border-radius:50%; border:1px solid var(--ink);
    display:flex; align-items:center; justify-content:center; color:var(--ink);
    transition:background .25s ease, color .25s ease;
  }
  .social-icon-btn:hover{ background:var(--ink); color:var(--paper); }

  /* ---------- 文章內相簿：跳脫窄版內文欄，用較寬的版面顯示，兩本一排 + 輪播 ---------- */
  .article-albums-breakout{ width:100vw; position:relative; left:50%; transform:translateX(-50%); }
  .article-albums{
    display:grid; grid-template-columns:repeat(2,1fr); gap:36px;
    max-width:1000px; margin:36px auto 0; padding:0 8vw; box-sizing:border-box;
  }
  @media (max-width:700px){ .article-albums{ grid-template-columns:1fr; padding:0 6vw; } }
  .album-carousel{ position:relative; margin-top:14px; overflow:hidden; width:100%; }
  .album-carousel-track{ display:flex; width:100%; transition:transform .5s ease; }
  .album-carousel-slide{ flex:0 0 100%; min-width:0; margin:0; }
  .album-carousel-slide img{ width:100%; aspect-ratio:4/5; object-fit:cover; display:block; }
.album-video-embed{ position:relative; width:100%; aspect-ratio:16/9; background:#000; }
.album-video-embed iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; display:block; }
.album-video-embed--photo{ aspect-ratio:4/5; }
  .album-carousel-slide figcaption{ font-size:11.5px; color:var(--ink-soft); margin-top:6px; }
  .album-carousel-btn{
    position:absolute; top:40%; transform:translateY(-50%); background:rgba(255,255,255,0.75); border:none;
    width:32px; height:32px; font-size:18px; cursor:pointer; color:var(--ink);
  }
  .album-carousel-prev{ left:0; }
  .album-carousel-next{ right:0; }
  .album-carousel-dots{ display:flex; justify-content:center; gap:6px; margin-top:10px; }
  .album-carousel-dot{ width:6px; height:6px; border-radius:50%; background:var(--line); cursor:pointer; }
  .album-carousel-dot.active{ background:var(--ink); }

  /* ---------- 關於商業（後台架構以原網站四大分類為主） ---------- */
  .business-inner{ max-width:920px; margin:0 auto; padding:60px 8vw 100px; }
  .biz-section{ margin-bottom:100px; padding-top:20px; }
  .biz-section h2{ font-size:clamp(22px,3vw,30px); margin:0 0 20px; }
  .video-tabs, .video-subtags{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:10px; }
  .video-tab, .video-subtag{
    font-size:12.5px; padding:8px 16px; border:1px solid var(--line); border-radius:999px;
    color:var(--ink-soft); background:transparent;
  }
  .video-tab.active, .video-subtag.active{ background:var(--ink); color:var(--paper); border-color:var(--ink); }

  /* ---------- 影音 Video ---------- */
  .video-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:22px; margin-top:30px; }
  .video-card{ display:block; }
  .video-thumb-frame{
    position:relative; display:block; aspect-ratio:16/9; overflow:hidden; background:var(--paper-deep);
    cursor:pointer;
  }
  .video-cover{ width:100%; height:100%; object-fit:cover; }
  .video-play-overlay{
    position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  }
  .video-play-overlay::before{
    content:''; width:0; height:0; border-top:11px solid transparent; border-bottom:11px solid transparent;
    border-left:18px solid rgba(233,229,221,0.92);
  }
  .video-card-meta{ font-family:'Noto Serif TC',serif; font-size:14px; color:var(--ink); margin-top:10px; line-height:1.6; }
  .article-video-wrap{ margin-top:44px; max-width:480px; }

  /* ---------- 分類文章列表（portrait.html／band.html／pet.html／archive.html 共用，
     2026-09-14：延續 V1 的「分類總覽頁」概念，內容從 about_en／about_daily／about_love
     這幾個collection自動抓，之後你在後台新增文章，這幾頁會自動出現，不用另外維護） ---------- */
  .article-list{ max-width:640px; margin:40px auto 0; }
  .article-list-item{ padding:22px 0; border-top:1px solid var(--line); }
  .article-list-item:last-of-type{ border-bottom:1px solid var(--line); }
  .article-list-item h3{ font-size:19px; margin:0 0 6px; font-weight:500; }
  .article-list-item a{ transition:opacity .25s ease; }
  .article-list-item a:hover{ opacity:0.6; }
  .article-list-date{ font-size:12px; color:var(--ink-soft); }
  .archive-empty{ font-size:13px; color:var(--ink-soft); margin-top:24px; }
  .archive-group{ max-width:640px; margin:0 auto 56px; }
  .archive-group h2{ font-size:20px; margin-bottom:4px; }
  .archive-group-sub{ font-size:12.5px; color:var(--ink-soft); margin-bottom:18px; display:flex; gap:14px; flex-wrap:wrap; }
  .archive-category-nav{ max-width:640px; margin:48px auto 0; display:flex; gap:18px; flex-wrap:wrap; font-size:13px; }
  .archive-category-nav a{ border-bottom:1px solid var(--line); padding-bottom:2px; }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width:900px){
    .service-grid{ grid-template-columns:1fr; }
    .service{ border-left:none; border-top:1px solid var(--line); padding:50px 10px 0; }
    .service:first-child{ border-top:none; padding-top:0; }
  }
  @media (max-width:480px){ .float-links{ right:16px; bottom:18px; } }
  @media (prefers-reduced-motion:reduce){ *{ transition-duration:.001ms !important; } }

/* =====================================================================
   2026-09-27：看照片的體驗
   ① 全螢幕看照片（文章相簿、關於商業都適用）
   ② 換頁淡入淡出（瀏覽器原生 View Transitions，不支援的瀏覽器照常換頁）
   ③ 照片載入前先顯示底色，載好再淡入
   ===================================================================== */

/* ---------- ① 全螢幕看照片 ---------- */
.album-carousel-slide img, .album-photo img, .article-body img, .article-cover{ cursor:zoom-in; }
.album-carousel{ touch-action:pan-y; }
.album-carousel.is-dragging .album-carousel-track{ transition:none; }
.album-carousel.is-dragging{ cursor:grabbing; user-select:none; -webkit-user-select:none; }
.album-carousel img{ -webkit-user-drag:none; }

.pv{
  position:fixed; inset:0; z-index:700; background:rgba(14,13,11,0.98);
  display:flex; flex-direction:column; color:#e9e5dd;
  opacity:0; pointer-events:none; transition:opacity .22s ease-out;
  touch-action:none; -webkit-user-select:none; user-select:none;
}
.pv.open{ opacity:1; pointer-events:auto; }
.pv-bar{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:calc(14px + env(safe-area-inset-top, 0px)) 18px 10px; font-size:13px; letter-spacing:0.08em;
  font-family:'Noto Sans TC', sans-serif; position:relative; z-index:2;
}
.pv-title{ font-family:'Noto Serif TC', serif; letter-spacing:0.04em; opacity:0.85; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pv-count{ font-variant-numeric:tabular-nums; opacity:0.7; white-space:nowrap; }
.pv-close{
  background:none; border:none; color:inherit; width:40px; height:40px; margin:-8px -8px -8px 0;
  font-size:26px; line-height:1; cursor:pointer; flex:0 0 auto;
}
.pv-stage{ position:relative; flex:1; overflow:hidden; }
.pv-track{ position:absolute; inset:0; will-change:transform; }
.pv-slide{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  padding:8px clamp(8px, 5vw, 72px) 24px;
}
.pv-slide img{
  max-width:100%; max-height:100%; object-fit:contain; display:block;
  box-shadow:0 10px 40px rgba(0,0,0,0.35); cursor:auto;
}
.pv-caption{
  text-align:center; font-size:13px; opacity:0.75; min-height:1.6em;
  padding:0 20px calc(18px + env(safe-area-inset-bottom, 0px)); font-family:'Noto Sans TC', sans-serif;
}
.pv-nav{
  position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  width:48px; height:48px; border-radius:50%; border:none; cursor:pointer;
  background:rgba(233,229,221,0.12); color:#e9e5dd; font-size:26px; line-height:1;
  display:flex; align-items:center; justify-content:center; transition:background .2s ease, transform .1s ease-out;
}
.pv-prev{ left:16px; } .pv-next{ right:16px; }
.pv-nav:active{ transform:translateY(-50%) scale(0.92); }
.pv-nav[hidden]{ display:none; }
@media (hover:hover){ .pv-nav:hover{ background:rgba(233,229,221,0.22); } }
@media (hover:none){ .pv-nav{ display:none; } }

/* ---------- ② 換頁淡入淡出 ---------- */
@view-transition{ navigation:auto; }
.menu-btn{ view-transition-name:menu-btn; }
.float-links{ view-transition-name:float-links; }
::view-transition-old(root){ animation:pageOut .2s ease-in both; }
::view-transition-new(root){ animation:pageIn .36s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pageOut{ to{ opacity:0; } }
@keyframes pageIn{ from{ opacity:0; transform:translateY(10px); } }
@media (prefers-reduced-motion: reduce){
  ::view-transition-old(root), ::view-transition-new(root){ animation:none; }
}

/* ---------- ③ 照片先顯示底色，載好再淡入 ---------- */
.album-carousel-slide, .album-photo, .recent-shoots-item a, .article-cover-wrap{ background:var(--paper-deep); }
.js-fade .album-carousel-slide img, .js-fade .album-photo img,
.js-fade .recent-shoots-item img, .js-fade .article-body img, .js-fade .article-cover{
  opacity:0; transition:opacity .45s ease-out;
}
.js-fade img.is-loaded{ opacity:1 !important; }
@media (prefers-reduced-motion: reduce){ .js-fade img{ transition:none !important; } }
.recent-shoots-item a{ display:block; }
.pv-close:focus:not(:focus-visible){ outline:none; }
