        :root {
            --bg-color: #ffffff;
            --text-color: #000000;
            --gray-color: #7a7a7a;
            --accent-blue: #007AFF;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        /* iOS 長按圖片跳出的「儲存圖片」選單不是靠 contextmenu 事件觸發的，
           JS 那邊擋 contextmenu/dragstart 對 iOS 沒用，要另外靠這個屬性關掉 */
        img {
            -webkit-touch-callout: none;
        }

        .site-footer {
            text-align: center;
            color: var(--gray-color);
            font-size: 0.8rem;
            font-weight: 300;
            padding: 40px 0 20px;
            margin-top: auto;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            font-weight: 300;
            letter-spacing: -0.01em;
            line-height: 1.35;
            padding: 0 40px 50px 40px; /* 修改：將最上方的 50px 歸零，移到 header 內 */
            max-width: 1400px;
            margin: 0 auto;
            overflow-x: hidden;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* 開啟搜尋等全螢幕彈窗時，鎖住背景頁面不讓它跟著捲動（手機上尤其明顯） */
        body.modal-open {
            position: fixed;
            left: 0;
            right: 0;
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            overflow: hidden;
        }

        @media (max-width: 768px) {
            /* 手機版左右留白縮小，畫面內容可以更飽滿 */
            body {
                padding-left: 23px;
                padding-right: 23px;
            }
        }

        header {
            display: flex;
            justify-content: center;
            align-items: center;
            position: sticky;
            top: 0;
            padding-top: 20px; /* 修改：縮小數值並與 bottom 保持一致 */
            padding-bottom: 20px; /* 修改：達成完美的垂直置中 */
            margin-bottom: 40px; 
            z-index: 5000;
            background-color: var(--bg-color);
        }

        .menu-toggle {
            position: absolute;
            left: 0;
            background: none;
            border: none;
            cursor: pointer;
            line-height: 1;
            padding: 5px;
            letter-spacing: 0;
            color: var(--accent-blue);
        }

        h1 {
            font-size: 1.25rem;
            font-weight: 350;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            cursor: pointer;
        }

        .header-icons {
            position: absolute;
            right: 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .search-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent-blue);
        }

        .search-btn img {
            width: 20px;
            height: 20px;
            object-fit: contain;
            opacity: 0.8;
            transition: opacity 0.2s;
        }

        .search-btn img:hover {
            opacity: 1;
        }

        .wishlist-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray-color);
        }

        .wishlist-btn:hover {
            color: var(--text-color);
        }

        .wishlist-btn.has-items {
            color: var(--text-color);
        }

        .wishlist-btn.has-items svg path {
            fill: currentColor;
        }

        @media (max-width: 400px) {
            h1 {
                font-size: 1.05rem;
                letter-spacing: 0.08em;
            }
        }

        .drawer-wishlist-link {
            display: none;
            color: var(--gray-color);
        }

        .drawer-wishlist-link.has-items {
            color: var(--text-color);
        }

        .drawer-wishlist-link.has-items svg path {
            fill: currentColor;
        }

        @media (max-width: 768px) {
            .header-icons {
                gap: 4px;
            }
            /* 手機版把 header 上的愛心藏起來，搬進漢堡選單裡（Instagram 下面），
               不然 search、logo 擠在一起太容易點錯 */
            .wishlist-btn {
                display: none;
            }
            .drawer-wishlist-link {
                display: flex;
                align-items: center;
                gap: 8px;
                margin-top: 10px;
            }
        }

        .drawer {
            position: fixed;
            top: 0;
            left: -320px;
            width: 320px;
            height: 100%;
            background-color: var(--bg-color);
            border-right: 1px solid #eee;
            box-shadow: 5px 0 15px rgba(0,0,0,0.03);
            transition: left 0.3s ease;
            z-index: 6000;
            padding: 60px 40px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .drawer.open {
            left: 0;
        }

        @media (max-width: 768px) {
            .drawer {
                left: -100%;
                width: 100%;
                border-right: none;
                box-shadow: none;
            }
        }

        .drawer-close {
            align-self: flex-end;
            background: none;
            border: none;
            cursor: pointer;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
            margin-right: -10px;
            color: var(--accent-blue);
        }

        .drawer-links {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .nav-item-group {
            display: flex;
            flex-direction: column;
        }

        .drawer-links a {
            text-decoration: none;
            color: var(--text-color);
            font-size: 1.05rem;
            font-weight: 300;
            letter-spacing: 0.03em;
            transition: color 0.2s;
            padding: 4px 0;
            cursor: pointer;
        }

        .drawer-links a:hover {
            color: var(--gray-color);
        }

        .instagram-link {
            display: inline-flex;
            align-items: center;
            margin-top: 10px;
        }

        /* 字級跟顏色比照 ARCHIVE 展開後的子選單（Objects / Books & Magazines...），
           但不縮排、不是子選單的一部分，單純是漢堡選單最下面一個比較不搶眼的連結。
           選擇器故意寫 .drawer-links a.drawer-newsletter-link（比 .drawer-links a 更高的
           specificity），不然顏色會被 .drawer-links a 的 var(--text-color) 蓋掉 */
        .drawer-links a.drawer-newsletter-link {
            font-size: 0.9rem !important;
            color: var(--gray-color);
            margin-top: 10px;
        }

        .sub-menu {
            display: none;
            flex-direction: column;
            gap: 8px;
            padding-left: 15px;
            margin-top: 8px;
            margin-bottom: 5px;
        }

        .sub-menu.active {
            display: flex;
        }

        .sub-menu a {
            font-size: 0.9rem !important;
            color: var(--gray-color);
        }

        .sub-menu a:hover {
            color: var(--text-color);
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.2);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 5999;
        }

        .overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Search Modal Styles */
        .search-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 0.98);
            display: none;
            flex-direction: column;
            z-index: 8000;
            padding: 60px 40px;
        }

        .search-modal.active {
            display: flex;
        }

        .search-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 800px;
            margin: 0 auto 40px auto;
            width: 100%;
        }

        .search-input-wrapper {
            position: relative;
            flex: 1;
            margin-right: 20px;
        }

        .search-input {
            width: 100%;
            background: none;
            border: none;
            border-bottom: 1px solid var(--accent-blue);
            font-size: 1.5rem;
            font-weight: 300;
            color: var(--accent-blue);
            padding: 10px 0;
            outline: none;
            font-family: inherit;
        }

        .search-input::placeholder {
            color: var(--accent-blue);
            opacity: 0.6;
        }

        .search-close-btn {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--accent-blue);
            opacity: 0.6;
            transition: opacity 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
            margin: -10px;
        }

        .search-close-btn:hover {
            opacity: 1;
        }

        .search-results-container {
            max-width: 800px;
            margin: 0 auto;
            width: 100%;
            flex: 1;
            overflow-y: auto;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 30px;
            padding-bottom: 40px;
        }

        @media (max-width: 768px) {
            /* 手機版搜尋結果固定兩張一排，不然單欄的話一次只看得到一張 */
            .search-results-container {
                grid-template-columns: 1fr 1fr;
                gap: 19px;
            }
        }

        /* Archive Objects Layout (1/5 left filter column, 4/5 right content area) */
        #objects-view {
            display: none;
            grid-template-columns: 1fr 4fr;
            gap: 40px;
            align-items: start;
        }
/* Sources 頁面專屬簡潔樣式 */
    #sources-view {
        max-width: 800px;
        margin: 0 auto;
        padding: 20px 0;
    }

    #sources-view h2 {
        font-size: 1.25rem;
        font-weight: 300;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        margin-bottom: 2rem;
    }

    #sources-view > p {
        font-size: 1rem;
        font-weight: 300;
        margin-bottom: 2.5rem;
        line-height: 1.6;
    }

    #sources-view .source-section {
        margin-bottom: 2.5rem;
    }

    #sources-view h3 {
        font-size: 0.95rem;
        font-weight: 300; /* 保持與全域一致的輕盈字重 */
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 1rem;
        border-bottom: 1px solid #eee;
        padding-bottom: 0.5rem;
    }

    #sources-view ul {
        list-style-type: none;
        padding-left: 0;
        font-size: 0.9rem;
        font-weight: 300;
        color: var(--gray-color);
    }

    #sources-view li {
        margin-bottom: 0.6rem;
    }

    #sources-view li strong {
        color: var(--text-color);
        font-weight: 400; /* 讓書名/品牌粗體時稍微跳脫，但依舊克制 */
    }

/* 1. 主側邊欄容器：結合寬度、黏性定位與獨立滾動 */
.filter-click-area, .filter-sidebar {
    width: 20%;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 40px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding-right: 15px;
}

/* 美化滾動條，維持極簡質感 */
.filter-click-area::-webkit-scrollbar,
.filter-sidebar::-webkit-scrollbar {
    width: 3px;
}
.filter-click-area::-webkit-scrollbar-thumb,
.filter-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--border-color, #e0e0e0);
    display: none;
}

/* 2. 單個分類群組 */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 手機版篩選類別之間的間距，比照漢堡選單連結的間距（15px），比桌機版緊湊 */
@media (max-width: 768px) {
    .filter-click-area, .filter-sidebar {
        gap: 15px;
        padding-right: 5px;
    }
    .filter-group {
        margin-top: 0 !important;
    }
}

/* 3. 展開/收合標題 (BY DESIGNER 等) */
.filter-accordion-header {
    background: none;
    border: none;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-color);
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    transition: color 0.2s;
    width: 100%;
}

.filter-accordion-header:hover,
.filter-accordion-header.active {
    color: var(--text-color);
}

.filter-arrow-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

/* 4. 展開後的清單內容——用 grid-template-rows 做高度過渡，取代直接跳出的硬切 */
.filter-accordion-content {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding-top: 5px;
    padding-left: 5px;
}

.filter-accordion-content.active {
    display: flex;
}

/* 5. 清單內的按鈕選項 */
.filter-btn {
    background: none;
    border: none;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--gray-color);
    cursor: pointer;
    padding: 3px 0;
    font-family: inherit;
    transition: all 0.2s;
    display: inline-block;
}

.filter-btn:hover, 
.filter-btn.active {
    font-weight: 500;
    color: var(--text-color);
    opacity: 1;
}

        .objects-content-area {
            display: grid;
            gap: 50px 30px;
            grid-template-columns: repeat(4, 1fr);
        }

        /* Archive Grid Styles (General / Magazines) */
        .grid {
            display: grid;
            gap: 60px 30px;
        }

        .grid.magazine-grid {
            grid-template-columns: repeat(4, 1fr);
        }

        .card {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .card .img-container {
            cursor: pointer;
        }

        .img-container {
            width: 100%;
            aspect-ratio: 2 / 3;
            background-color: #f9f9f9;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border: 1px solid #f0f0f0;
        }

        .img-container.square-format {
            aspect-ratio: 1 / 1;
        }

        .img-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: opacity 0.3s ease;
        }

        .img-container img:hover {
            opacity: 0.85;
        }

        .meta {
            font-size: 0.8rem;
            font-weight: 300;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .meta .title {
            font-weight: 600; 
        }

        .meta .details {
            color: var(--gray-color);
        }

        /* Home (Featured) View Styles */
        #home-view {
            display: flex;
            flex-direction: column;
        }

        .home-intro {
            font-family: 'Source Serif 4', Georgia, serif;
            font-size: 1.15rem;
            line-height: 1.8;
            font-weight: 350;
            color: #333;
            text-align: center;
            max-width: 700px;
            margin: 0 auto 40px;
        }

        .home-intro-break {
            display: none;
        }

        .home-grid-wrapper {
            display: flex;
            gap: 20px;
            align-items: flex-start;
        }

        .home-objects {
            flex: 1;
            display: flex;
            gap: 20px;
            align-items: flex-start;
        }

        .home-objects-col {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 20px;
            min-width: 0;
        }

        .home-projects-col {
            flex: 1.5;
            display: flex;
            flex-direction: column;
            gap: 20px;
            min-width: 0;
        }

        .home-project-item img,
        .home-project-item .project-card-title {
            cursor: pointer;
        }

        .home-project-item img {
            display: block;
            width: 100%;
            height: auto;
            margin-bottom: 16px;
        }

        .home-gallery {
            width: 50%;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .home-large-item {
            display: flex;
            align-items: flex-end;
            gap: 20px;
        }

        .home-large-item img {
            display: block;
            max-width: 100%;
            max-height: 65vh;
            width: auto;
            height: auto;
            flex-shrink: 0;
        }

        .home-large-caption-block {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .home-large-caption {
            margin-bottom: 0 !important;
        }

        .home-gallery-link {
            font-size: 0.75rem;
            font-weight: 300;
            letter-spacing: 0.03em;
            color: var(--text-color);
            cursor: pointer;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        .home-gallery-link:hover {
            opacity: 0.6;
        }

        .home-small-item {
            display: flex;
            flex-direction: column;
            gap: 10px;
            cursor: pointer;
        }

        .home-small-item.not-linked {
            cursor: default;
        }

        .home-small-item.not-linked .img-container img:hover {
            opacity: 1;
        }

        @media (max-width: 768px) {
            .home-intro {
                font-size: 1.05rem;
            }
            .home-intro-break {
                display: inline;
            }
            .home-grid-wrapper {
                flex-direction: column;
            }
            .home-gallery {
                width: 100%;
            }
            .home-large-item img {
                max-height: 50vh;
            }

            /* 手機版排序：4 個 featured 物件先兩張一排排出來，再來是 project，最後才是 gallery */
            .home-objects {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 19px;
            }
            .home-objects-col {
                order: 1;
            }
            .home-projects-col {
                order: 2;
                grid-column: 1 / -1;
            }

            /* 手機版 project 卡片改成圖片在左、文字在右（桌機版維持圖片在上、文字在下） */
            .home-project-item {
                display: flex;
                align-items: flex-start;
                gap: 16px;
            }
            .home-project-item img {
                width: 40%;
                margin-bottom: 0;
                flex-shrink: 0;
            }
            .home-project-text {
                flex: 1;
                min-width: 0;
            }

            /* 手機版 gallery 圖片跟說明文字改成上下排列（桌機版維持左右並排） */
            .home-large-item {
                flex-direction: column;
                align-items: flex-start;
            }
            .home-large-caption-block {
                flex: none;
                width: 100%;
            }

            /* object 區跟 project 區、project 區跟 gallery 區之間，手機版多留一點空白區隔 */
            .home-projects-col {
                margin-top: 30px;
            }
            .home-gallery {
                margin-top: 30px;
            }
        }

        /* iPad 直放/橫放專用排版：第一排 4 個 featured 物件橫向排成一列，
           第二排左邊 project（圖片在上、文字在下，同桌機版）、右邊 gallery（圖片在左、文字在右，同桌機版）。
           用 display:contents 讓 .home-objects/.home-objects-col 這兩層外殼「隱形」，
           讓裡面的物件直接攤平排進下面的 4 欄格線，不用重寫整個 HTML 結構。 */
        /* 只有 iPad 直放（Mini 到 Pro）才套用這套 iPad 版面，橫放維持跟桌機版完全一樣。
           下限 744px 涵蓋最新一代 iPad Mini 直放，上限 1024px 涵蓋 iPad Pro 12.9" 直放
           （橫放最窄的寬度是 1133px，跟這個上限之間留有空隙，橫放不會誤觸這裡）。
           下緣會跟手機版（≤768px）重疊一小段，所以下面把手機版對 project 卡片
           的覆寫（圖片在左、文字在右）也明確改回桌機版樣式（圖片在上、文字在下），
           避免重疊區間內兩套規則打架、變成四不像。 */
        @media (min-width: 744px) and (max-width: 1024px) {
            .home-grid-wrapper {
                display: grid;
                grid-template-columns: repeat(4, 1fr);
            }
            .home-objects {
                display: contents;
            }
            .home-objects-col {
                display: contents;
            }
            .home-projects-col {
                grid-column: span 2;
                order: 5;
                margin-top: 0;
            }
            .home-gallery {
                grid-column: span 2;
                width: auto;
                order: 6;
                margin-top: 0;
            }
            /* 把手機版「圖片在左、文字在右」的 project 卡片排版改回桌機版「圖片在上、文字在下」 */
            .home-project-item {
                display: block;
            }
            .home-project-item img {
                width: 100%;
                margin-bottom: 16px;
            }
            /* iPad 版 gallery 圖片跟說明文字改成上下排列（桌機版維持左右並排） */
            .home-large-item {
                flex-direction: column;
                align-items: flex-start;
            }
            .home-large-caption-block {
                flex: none;
                width: 100%;
            }
            /* 把手機版「愛心圖示藏起來、搬進漢堡選單」的做法改回桌機版：
               愛心留在 top bar 放大鏡旁邊，漢堡選單裡就不用重複顯示了 */
            .wishlist-btn {
                display: flex;
            }
            .drawer-wishlist-link {
                display: none;
            }
            /* 把手機版「漢堡選單全螢幕」的做法改回桌機版：維持 320px 寬的側邊選單 */
            .drawer {
                left: -320px;
                width: 320px;
                border-right: 1px solid #eee;
                box-shadow: 5px 0 15px rgba(0,0,0,0.03);
            }
        }

        /* About 頁面：手機版圖片跟文字改成上下排列（桌機版維持左右並排），
           不然圖片沒有寬度上限，會把文字整個擠出螢幕外面，看起來像空白頁 */
        @media (max-width: 768px) {
            #about-view {
                flex-direction: column;
                gap: 30px;
            }
            .about-image-container {
                width: 100%;
            }
        }

        /* Projects Styles */
        .projects-grid {
            display: flex;
            gap: 40px;
            align-items: flex-start;
        }

        .projects-col {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 60px;
            min-width: 0;
        }

        .project-card img {
            display: block;
            width: 100%;
            height: auto;
            cursor: pointer;
            margin-bottom: 16px;
        }

        .project-card-title {
            font-family: 'Source Serif 4', Georgia, serif;
            font-weight: 350;
            font-style: normal;
            font-size: 1.15rem;
            line-height: 1.4;
            cursor: pointer;
            margin-bottom: 10px;
        }

        .project-card-divider {
            border: none;
            border-top: 1px solid #e5e5e5;
            margin: 0 0 10px;
        }

        .project-card-details {
            font-size: 0.8rem;
            font-weight: 300;
            color: var(--gray-color);
        }

        .project-card-details a,
        .detail-sub a {
            color: inherit;
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        .project-card-details a:hover,
        .detail-sub a:hover {
            color: var(--text-color);
        }

        #project-detail-view {
            display: none;
        }

        .project-detail-top {
            display: flex;
            gap: 60px;
            align-items: flex-start;
            margin-bottom: 60px;
        }

        .project-cover {
            flex-shrink: 0;
        }

        .project-cover img {
            display: block;
            max-width: 100%;
            max-height: 80vh;
            width: auto;
            height: auto;
            cursor: pointer;
        }

        .project-main {
            flex: 1;
        }

        .project-header h2 {
            font-family: 'Source Serif 4', Georgia, serif;
            font-style: normal;
            font-size: 1.8rem;
            font-weight: 350;
            margin-bottom: 10px;
            letter-spacing: -0.02em;
        }

        .project-header .detail-sub {
            font-size: 0.95rem;
            color: var(--gray-color);
            margin-bottom: 30px;
        }

        .project-article {
            font-family: 'Source Serif 4', Georgia, serif;
            font-size: 1.05rem;
            line-height: 1.8;
            font-weight: 350;
            color: #333;
            display: flex;
            flex-direction: column;
            gap: 22px;
        }

        .project-photos {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            align-items: flex-start;
            margin-bottom: 60px;
        }

        .project-photo-item {
            cursor: pointer;
        }

        .project-photo-item img {
            display: block;
            max-width: 100%;
            max-height: 55vh;
            width: auto;
            height: auto;
        }

        .project-photo-credit {
            width: 100%;
            font-size: 0.75rem;
            font-weight: 300;
            color: var(--gray-color);
            letter-spacing: 0.03em;
        }

        .project-objects-subtitle {
            font-family: 'Source Serif 4', Georgia, serif;
            font-style: normal;
            font-size: 1.15rem;
            font-weight: 350;
        }

        .project-objects-subtitle:not(:empty) {
            margin-bottom: 30px;
        }

        /* Project 頁的這行小標跟著 .project-article（Project 頁自己的內文）的字級，
           跟 Book/Detail 頁用同一個 class 但字級需求不同，所以分開用 id 覆蓋 */
        #project-objects-subtitle {
            font-size: 1.05rem;
        }

        /* Book/Detail 頁：文章內文後面，可選的單張瀏覽圖組
           （跟 volumes 網格不一樣，這個一次只顯示一張，靠左右箭頭/滑動切換）
           視覺上算文章的延伸，跟文章之間維持段落間距(22px)，
           但後面的「Objects from this book」是另一個區塊，維持全站標準的區塊間距(60px) */
        .content-images-carousel {
            margin-bottom: 60px;
        }

        .detail-intro + .content-images-carousel {
            margin-top: -38px; /* 跟 .detail-intro 的 60px margin-bottom 疊合後淨值剩 22px，等同文章內段落間距 */
        }

        /* Quadribaleno A 專用：相簿被搬進兩段文章中間或封面正下方（見 script.js 的
           positionQuadribalenoCarousel），不再是「文章後面的獨立區塊」，上面那條 60px 的
           margin-bottom 在這裡不適用——不歸零的話，兩段文章中間會多出 60px（相簿自己的
           區塊間距）+ 22px（.detail-intro 的 flex gap）= 82px，比正常段落間距(22px)多快 4 倍 */
        #quadribaleno-album-slot-mobile .content-images-carousel,
        #quadribaleno-album-slot-desktop .content-images-carousel {
            margin-bottom: 0;
        }

        .content-images-frame {
            position: relative;
            width: 100%;
            aspect-ratio: 3 / 2;
            background-color: #f9f9f9;
            overflow: hidden;
            border: 1px solid #f0f0f0;
        }

        /* item.contentImagesAspect === "vertical" 的項目改用直式畫框 */
        .content-images-frame--vertical {
            aspect-ratio: 2 / 3;
        }

        /* item.contentImagesAspect === "square" 的項目改用正方形畫框 */
        .content-images-frame--square {
            aspect-ratio: 1 / 1;
        }

        .content-images-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            cursor: pointer;
        }

        .content-image-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #fff;
            opacity: 0.7;
            cursor: pointer;
            padding: 10px;
            transition: opacity 0.2s;
            filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
        }

        .content-image-arrow:hover {
            opacity: 1;
        }

        .content-image-prev {
            left: 10px;
        }

        .content-image-next {
            right: 10px;
        }

        /* 手機版另外加大範圍的透明點擊區，箭頭本身太小不好點 */
        .content-image-tap-zone {
            display: none;
            position: absolute;
            top: 0;
            bottom: 0;
            width: 40%;
        }

        .content-image-tap-prev {
            left: 0;
        }

        .content-image-tap-next {
            right: 0;
        }

        @media (max-width: 768px) {
            .content-image-tap-zone {
                display: block;
            }
            /* Quadribaleno A 專用：合併後的相簿（型錄照片+實拍照片）手機版插在兩段文章中間的
               #quadribaleno-album-slot-mobile——這個插槽本身包在 .detail-intro-inline-image 裡，
               已經是 2/3 寬了（跟其他插在文章中間的圖片同一套寬度邏輯），相簿要填滿插槽本身
               （100%），不要再疊一層預設的 2/3 寬，不然會變成 2/3 的 2/3、太窄 */
            #quadribaleno-album-slot-mobile .content-images-frame {
                width: 100%;
            }
        }

        /* 桌機／iPad 版縮小成 2/3 寬，不要滿版 */
        @media (min-width: 769px) {
            .content-images-frame {
                width: 66.66%;
            }
            /* Quadribaleno A 專用：合併後的相簿桌機/iPad 版被搬進封面正下方的
               #quadribaleno-album-slot-desktop（見 script.js 的 positionQuadribalenoCarousel），
               要跟封面同寬，不要沿用上面這條預設的 2/3 寬。
               畫框比例維持 item.contentImagesAspect 設的直式 2/3（跟其他用到這個欄位的地方一致），
               不在這裡另外覆寫，選擇器只需要蓋過寬度 */
            #quadribaleno-album-slot-desktop .content-images-frame {
                width: 100%;
            }
            /* Quadribaleno A 專用：桌機/iPad 版相簿搬去封面下面了，兩段文章中間的
               #quadribaleno-album-slot-mobile 是空的——但 .detail-intro 是 flex 直排、
               子元素之間會自動插入 gap，就算這個 div 是空的、沒有高度，還是會在它前後各插一次
               22px 的 gap，兩段文章之間會變成 44px（是正常段落間距的兩倍）。這裡桌機/iPad 版
               直接把它藏起來（display: none），flex gap 才不會把它算進去，兩段文章之間才會
               正常的 22px */
            #quadribaleno-album-slot-mobile {
                display: none;
            }
        }

        .project-objects {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
            gap: 30px 16px;
        }

        .project-object-item {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .project-object-item .img-container {
            cursor: pointer;
        }

        .project-object-item .meta {
            font-size: 0.7rem;
        }

        @media (max-width: 768px) {
            .projects-grid {
                flex-direction: column;
                gap: 0;
            }
            .project-detail-top {
                flex-direction: column;
            }
            .project-cover {
                width: 100%;
            }
        }

        /* Detail View Styles */
        #detail-view {
            display: none;
            max-width: 900px;
            margin: 0 auto;
        }

        .back-btn {
            background: none;
            border: none;
            font-family: inherit;
            font-weight: 300;
            font-size: 0.9rem;
            color: var(--accent-blue);
            cursor: pointer;
            margin-bottom: 40px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            letter-spacing: 0.05em;
        }

        .back-btn:hover {
            opacity: 0.7;
        }

        .back-to-top-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            margin: 50px auto 0;
            color: var(--accent-blue);
            cursor: pointer;
        }

        .back-to-top-link:hover {
            opacity: 0.7;
        }

        .back-to-top-span-grid {
            grid-column: 1 / -1;
        }

        .back-btn-break {
            display: inline;
        }

        .back-btn-lines {
            display: inline;
        }

        .detail-header {
            margin-bottom: 40px;
        }

        .detail-title-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        /* 愛心（只有 available 的物件才有）跟分享按鈕綁在同一個靠右的小群組裡，
           兩個圖示的中心線對齊、永遠一起靠右——不管副標題文字長短，這組圖示的位置都固定 */
        .detail-title-icons {
            display: flex;
            align-items: center;
            gap: 14px;
            flex-shrink: 0;
        }

        .detail-header h2 {
            font-size: 1.8rem;
            font-weight: 400;
            letter-spacing: -0.02em;
            margin-bottom: 10px;
        }

        /* Nature Series 兩個項目的標題（見 script.js 的 splitTitleIds）：桌機/iPad 版夠寬，
           一行放得下，這個 <br> 預設不生效；只有手機版寬度不夠時才需要在 " - " 後面斷行 */
        .detail-title-mobile-break {
            display: none;
        }

        /* 分享按鈕：走 UI 圖示的視覺（藍色，跟資料/敘述文字的黑灰區隔開），
           小小的、不搶眼，放在副標題（設計師/年份那行）同一行右側 */
        .detail-share-wrap {
            position: relative;
            flex-shrink: 0;
        }

        .detail-share-btn {
            background: none;
            border: none;
            padding: 4px;
            color: var(--gray-color);
            cursor: pointer;
            display: flex;
        }

        .detail-share-btn:hover {
            opacity: 0.7;
        }

        .detail-share-menu {
            display: none;
            position: absolute;
            top: calc(100% + 6px);
            right: 0;
            background: #fff;
            border: 1px solid #eee;
            box-shadow: 0 4px 16px rgba(0,0,0,0.08);
            min-width: 140px;
            z-index: 20;
        }

        .detail-share-menu.active {
            display: flex;
            flex-direction: column;
        }

        .share-menu-item {
            display: block;
            width: 100%;
            text-align: left;
            padding: 10px 14px;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            font-size: 0.85rem;
            color: var(--text-color);
            background: none;
            border: none;
            cursor: pointer;
        }

        .share-menu-item:hover {
            background-color: #f9f9f9;
        }

        @media (max-width: 768px) {
            /* 手機版：冒號後面那段換到下一行，不然一行放不下
               箭頭獨立在左邊，.back-btn-lines 裡的兩行文字自己直排、都靠左對齊，
               這樣第二行才會對齊第一行文字開頭（不是對齊箭頭） */
            .back-btn {
                align-items: flex-start;
            }
            .back-btn-lines {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
            }
            /* 手機版標題縮小一點，內文維持原本大小 */
            .detail-header h2 {
                font-size: 1.4rem;
            }
            /* Nature Series 兩個項目的標題手機版寬度不夠，這裡才需要在 " - " 後面斷行 */
            .detail-title-mobile-break {
                display: block;
            }
            /* Project / Book detail 頁裡「提到的物件」小圖網格，手機版固定一行三格 */
            .project-objects {
                grid-template-columns: repeat(3, 1fr);
                gap: 20px 10px;
            }
        }

        .detail-header .detail-sub {
            font-size: 0.95rem;
            color: var(--gray-color);
        }

        /* 文章結尾的「延伸閱讀」小卡：目前只有同系列的兩件作品互相連結對方，
           整排滿版寬，圖片固定在左角（跟「一排三張縮圖」同樣的寬度比例），
           文字（標題 + Read more）靠右側，跟文章正文區隔開來 */
        .detail-related-item:not(:empty) {
            margin-top: 60px;
        }

        .detail-related-item-card {
            display: flex;
            align-items: flex-start;
            justify-content: flex-start;
            gap: 24px;
            width: 100%;
            cursor: pointer;
        }

        /* 圖片尺寸跟「Objects from this book」那組縮圖網格（.project-objects，
           grid-template-columns: repeat(auto-fill, minmax(110px, 1fr))）的下限對齊，
           用同一個 110px，兩處縮圖大小才是同一套邏輯，不是各自隨便訂的比例 */
        .detail-related-item-card .img-container {
            width: 110px;
            flex-shrink: 0;
        }

        .detail-related-item-text {
            display: flex;
            flex-direction: column;
            gap: 6px;
            text-align: left;
        }

        .detail-related-item-title {
            font-family: 'Source Serif 4', Georgia, serif;
            font-weight: 350;
            font-style: normal;
            font-size: 1.05rem;
            color: var(--text-color);
        }

        .detail-related-item-link {
            font-size: 0.75rem;
            font-weight: 300;
            letter-spacing: 0.03em;
            color: var(--text-color);
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        .detail-related-item-arrow {
            display: inline-block;
            transition: transform 0.2s;
        }

        .detail-related-item-card:hover .detail-related-item-link {
            opacity: 0.6;
        }

        .detail-related-item-card:hover .detail-related-item-arrow {
            transform: translateX(3px);
        }


        .detail-intro {
            font-family: 'Source Serif 4', Georgia, serif;
            font-size: 1.15rem;
            line-height: 1.8;
            margin-bottom: 60px;
            color: #333;
            font-weight: 350;
            font-style: normal;
            display: flex;
            flex-direction: column;
            gap: 22px;
        }

        /* 封面圖在資料/HTML 裡的位置固定插在第一段跟第二段中間；
           手機版就照這個順序疊著顯示；桌機/iPad 改用 CSS Grid 把 #detail-intro-content
           分成左右兩欄——圖片明確放第 1 欄、跨滿所有列，每個 <p> 明確放第 2 欄，
           文字自然一段段往下疊，不用另外寫兩套 HTML
           （目前只有特定書籍會用到，見 script.js） */
        .detail-intro-image-block {
            width: 66.66%;
        }

        .detail-intro-cover-image {
            width: 100%;
            display: block;
            margin: 0;
            cursor: pointer;
        }

        /* 圖片本身的來源說明（例如翻拍自哪本書），跟其他小圖說一樣走 sans-serif、灰階、
           資料感的樣式（呼應 .project-photo-credit），不是每張插入文章的圖都會有 */
        .detail-image-credit {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            font-size: 0.75rem;
            font-weight: 300;
            line-height: 1.5;
            color: var(--gray-color);
            letter-spacing: 0.03em;
            margin-top: 8px;
        }

        /* Cephalanthus Occidentalis、Quadribaleno A 專用：疊在封面圖正下方的圖片（content image
           或實拍照片相簿），同寬、上面留一點間距跟封面圖分開 */
        .detail-intro-stacked-image {
            margin-top: 20px;
        }

        /* 用絕對定位讓圖片(連同圖說)跟文字兩邊「各自」決定高度，互不影響——
           如果用 grid/flex 讓圖片跨好幾段文字的高度，文字段落間會因為要跟圖片等高
           而被迫拉開間距，很難看；改用絕對定位，圖片浮在左邊、文字用左邊留白閃開它，
           兩邊高度不同也不會互相干擾 */
        /* Cephalanthus Occidentalis、Quadribaleno A 專用：手機版封面圖（Quadribaleno A 還包括
           疊在下面的型錄照片、實拍相簿）不在文章內顯示（改在頁面最後面，見 .detail-end-cover-image，
           實拍相簿則搬回文章下面原本的位置），只有桌機/iPad 版才會把它們顯示在文章開頭靠左疊起來 */
        @media (max-width: 768px) {
            .detail-intro-cover-block--mobile-hidden {
                display: none;
            }
        }

        @media (min-width: 769px) {
            #detail-intro-content {
                position: relative;
            }
            .detail-intro-cover-block {
                position: absolute;
                left: 0;
                top: 0;
                width: calc(50% - 20px);
            }
            /* Cephalanthus Occidentalis 專用：content image 桌機/iPad 版不再插在兩段文章中間，
               改疊在封面圖正下方（見 .detail-intro-cover-block 裡的 .detail-intro-stacked-image），
               這裡手機版專用的複本就不用再顯示，避免重複 */
            .detail-intro-content-image-block {
                display: none;
            }
            /* Cephalanthus Occidentalis 桌機/iPad 封面圖已經改插在文章開頭，頁面最後面那份就不用再重複顯示。
               目前沒有項目在用頁面最後面固定顯示封面圖這個排法了，--always-show 這個 class 先保留著，
               之後如果有項目需要「桌機/iPad 版封面圖也要在頁面最後面重複顯示一次」可以直接用 */
            .detail-end-cover-image:not(.detail-end-cover-image--always-show) {
                display: none;
            }
            /* 只有真的用了「封面圖絕對定位靠左」這個排版(.detail-intro-cover-block)的頁面
               才把文字往右邊推；沒有這個區塊的頁面(例如 Terrazzo)文字要維持滿版、從最左邊開始。
               Quadribaleno A 專用：插在文章中間的型錄照片（.detail-intro-inline-image）
               也要跟著文字一起靠右對齊 */
            #detail-intro-content:has(.detail-intro-cover-block) > p,
            #detail-intro-content:has(.detail-intro-cover-block) > .detail-intro-inline-image {
                margin-left: calc(50% + 20px);
            }
            /* .detail-intro-image-block 預設的 66.66% 寬是算「整個 .detail-intro-content」的寬度
               （包含左欄封面照那半邊），不是文字欄自己的寬度，套用在這裡文字欄裡的圖片會爆版、
               超出頁面右邊——文字欄實際寬度是 calc(50% - 20px)（跟左欄封面照同寬，兩欄對稱），
               這裡改成文字欄寬度的 2/3，才是真的「文字區塊的 2/3 寬」。這條規則只能單獨列，
               不能跟上面 > p 那條合併，不然 width 會被套用到所有段落文字上，把內文也擠窄 */
            #detail-intro-content:has(.detail-intro-cover-block) > .detail-intro-inline-image {
                width: calc((50% - 20px) * 2 / 3);
            }
        }

        /* intro 裡的補充小備註（例如雜誌裡提到的廣告花絮），跟主要敘述文字風格不同，
           改用一般 sans-serif、灰階，呼應各處 detail text 那種資料感的樣式 */
        .detail-note {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            font-size: 0.85rem;
            font-weight: 300;
            line-height: 1.6;
            color: var(--gray-color);
        }

        /* 文章內容最後修改時間，比 .detail-note 更小更淡，標示這是「頁面資訊」而不是「作品資訊」 */
        .detail-edited {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            font-size: 0.75rem;
            font-weight: 300;
            color: var(--gray-color);
            opacity: 0.7;
        }

        .volumes-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 50px 30px;
        }

        .volumes-objects {
            display: flex;
            flex-direction: column;
            gap: 50px;
        }

        .volumes-objects:not(:empty) {
            margin-top: 60px;
        }

        /* 目前只有 Cephalanthus Occidentalis 把封面圖放在頁面最後面（不是文章開頭）。
           前面的 volumes/objects 幾個區塊這個項目都是空的，不會產生間距，
           所以這裡不用再加 margin-top——.detail-intro 自己的 margin-bottom(60px) 就是
           文章結束到封面圖之間唯一的間距來源，跟頁面其他地方的標準區塊間距一致 */
        .detail-end-cover-image {
            margin-top: 0;
            margin-bottom: 60px;
        }

        .detail-end-cover-image img {
            display: block;
            max-width: 480px;
            width: 100%;
            margin: 0 auto;
            cursor: pointer;
        }

        /* Quadribaleno A 專用：封面圖滿版寬，不要限制在 480px 以內 */
        .detail-end-cover-image--full-width img {
            max-width: none;
        }

        .volume-objects-title {
            font-family: 'Source Serif 4', Georgia, serif;
            font-style: normal;
            font-size: 1.1rem;
            font-weight: 350;
            margin-bottom: 24px;
        }

        /* About Page Styles */
        #about-view {
            display: none;
            max-width: 1200px;
            margin: 40px auto;
            align-items: flex-start;
            gap: 60px;
        }

        .about-image-container {
            flex-shrink: 0;
            overflow: hidden;
            border: 1px solid #f0f0f0;
            background-color: #f9f9f9;
        }

        .about-text {
            flex: 1;
            font-family: 'Source Serif 4', Georgia, serif;
            font-size: 1.15rem;
            line-height: 1.85;
            font-weight: 350;
            font-style: normal;
            color: #333;
            text-align: left;
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .about-explore-links {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: -10px;
        }

        .about-explore-link {
            background: none;
            border: none;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            font-size: 0.75rem;
            font-weight: 300;
            letter-spacing: 0.03em;
            color: var(--text-color);
            cursor: pointer;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        .about-explore-link:hover {
            opacity: 0.6;
        }

        .about-image-container img {
            display: block;
            max-width: 100%;
            max-height: 65vh;
            width: auto;
            height: auto;
        }

        /* Available Page Styles */
        #available-view {
           display: none;
    width: 100%;
    margin: 0 auto;
    flex-direction: column;
    gap: 40px;
        }

        .grid.available-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 60px 30px;
        }
@media (max-width: 1024px) {
    .objects-content-area,
    .grid.magazine-grid,
    .volumes-grid,
    .available-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

        /* Available tag, inline with title */
        .title-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            gap: 8px;
        }

        /* Available page: Designer/Manufacturer links to Archive */
        .available-meta-link {
            color: var(--gray-color);
            text-decoration: underline;
            text-underline-offset: 2px;
            cursor: pointer;
        }

        .available-meta-link:hover {
            color: var(--text-color);
        }

        /* Available page: favorite (heart) toggle */
        .favorite-heart {
            display: inline-flex;
            color: var(--gray-color);
            cursor: pointer;
            flex-shrink: 0;
            padding: 8px;
            margin: -8px;
        }

        /* 用 em 而不是固定 px，愛心才會自動跟著所在位置的文字大小走——卡片標題是 0.8rem（比較小），
           detail page 標題那行是預設 1rem（比較大），這樣兩邊愛心才會分別跟自己旁邊的文字同高 */
        .favorite-heart svg {
            width: 1em;
            height: 1em;
            display: block;
        }

        .favorite-heart:hover {
            color: var(--text-color);
        }

        .favorite-heart.active {
            color: var(--text-color);
        }

        .favorite-heart.active svg path {
            fill: currentColor;
        }

        /* Wish List 頁面 */
        .wishlist-container {
            max-width: 560px;
            margin: 0 auto;
        }

        .wishlist-top-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 40px;
        }

        .wishlist-top-row .back-btn {
            margin-bottom: 0;
        }

        .wishlist-exit-btn {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--accent-blue);
            opacity: 0.6;
            transition: opacity 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
            margin: -10px;
        }

        .wishlist-exit-btn:hover {
            opacity: 1;
        }

        .wishlist-title {
            font-size: 1.4rem;
            font-weight: 400;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            margin-bottom: 30px;
        }

        .favorites-list {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .favorites-empty {
            color: var(--gray-color);
            font-size: 0.9rem;
        }

        .favorites-list-item {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .favorites-list-item img {
            width: 56px;
            height: 56px;
            object-fit: cover;
            border: 1px solid #f0f0f0;
            flex-shrink: 0;
        }

        .favorites-list-item-meta {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 2px;
            font-size: 0.85rem;
        }

        .favorites-list-item-meta .title {
            font-weight: 600;
        }

        .favorites-list-item-meta .details {
            color: var(--gray-color);
        }

        .favorites-remove-btn {
            background: none;
            border: none;
            color: var(--gray-color);
            cursor: pointer;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px;
            margin: -8px;
        }

        .favorites-remove-btn:hover {
            color: var(--text-color);
        }

        .favorites-divider {
            border: none;
            border-top: 1px solid #e5e5e5;
            margin: 24px 0;
        }

        .favorites-client-form {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        /* Contact Page Styles */
        #contact-view {
            display: none;
            max-width: 1050px;
            margin: 40px auto;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: start;
        }

        .contact-left {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .contact-title {
            font-size: 1.4rem;
            font-weight: 400;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            margin-bottom: -10px;
        }

        .contact-greeting {
            font-size: 1.05rem;
            line-height: 1.6;
            font-weight: 300;
            color: #333;
        }

        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .form-group label {
            font-size: 0.85rem;
            font-weight: 400;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: var(--text-color);
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid #e0e0e0;
            background-color: #fafafa;
            font-family: inherit;
            font-size: 0.95rem;
            color: var(--text-color);
            font-weight: 300;
            outline: none;
            transition: border-color 0.2s;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: var(--text-color);
            background-color: #fff;
        }

        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }

        .submit-btn {
            align-self: flex-start;
            background-color: var(--text-color);
            color: var(--bg-color);
            border: none;
            padding: 12px 28px;
            font-family: inherit;
            font-size: 0.9rem;
            font-weight: 300;
            letter-spacing: 0.05em;
            cursor: pointer;
            transition: opacity 0.2s;
            margin-top: 5px;
        }
.gallery-title {
    font-size: 0.75rem !important;
    font-weight: 300 !important;
    letter-spacing: 0.03em !important;
    color: var(--gray-color) !important;
    margin-bottom: 5px !important;
}

.gallery-date {
    font-size: 0.75rem !important;
    font-weight: 300 !important;
    letter-spacing: 0.12em !important;
    color: var(--gray-color) !important;
    text-transform: uppercase !important;
}
        body.site-locked > *:not(#site-lock-view) {
            display: none !important;
        }

        .site-lock {
            display: none;
            min-height: 100vh;
            align-items: center;
            justify-content: center;
            background-color: var(--bg-color);
        }

        body.site-locked .site-lock {
            display: flex;
        }

        .site-lock-box {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 14px;
            width: 100%;
            max-width: 320px;
            padding: 0 20px;
        }

        .site-lock-title {
            font-size: 1.1rem;
            letter-spacing: 0.05em;
            font-weight: 400;
            color: var(--text-color);
        }

        .site-lock-text {
            font-size: 0.95rem;
            font-weight: 300;
            color: var(--gray-color);
        }

        .site-lock-input {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid #e0e0e0;
            background-color: #fafafa;
            font-family: inherit;
            font-size: 0.95rem;
            color: var(--text-color);
            font-weight: 300;
            outline: none;
            transition: border-color 0.2s;
        }

        .site-lock-input:focus {
            border-color: var(--text-color);
            background-color: #fff;
        }

        .site-lock-error {
            font-size: 0.8rem;
            font-weight: 300;
            color: #c0392b;
        }

        .projects-lock {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 14px;
            max-width: 320px;
            margin: 15vh auto 0;
            text-align: left;
        }

        .projects-lock-text {
            font-size: 0.95rem;
            font-weight: 300;
            color: var(--gray-color);
        }

        .projects-lock-input {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid #e0e0e0;
            background-color: #fafafa;
            font-family: inherit;
            font-size: 0.95rem;
            color: var(--text-color);
            font-weight: 300;
            outline: none;
            transition: border-color 0.2s;
        }

        .projects-lock-input:focus {
            border-color: var(--text-color);
            background-color: #fff;
        }

        .projects-lock-error {
            font-size: 0.8rem;
            font-weight: 300;
            color: #c0392b;
        }

        .submit-btn:hover {
            opacity: 0.8;
        }

        .contact-right {
            width: 100%;
            overflow: hidden;
            border: 1px solid #f0f0f0;
            background-color: #f9f9f9;
        }

        .contact-right img {
            width: 100%;
            height: auto;
            object-fit: cover;
            display: block;
        }


        @media (max-width: 1024px) {
            .objects-content-area {
                grid-template-columns: repeat(2, 1fr);
            }
            .grid.magazine-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            .volumes-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 768px) {
            #objects-view {
                grid-template-columns: 1fr;
            }
            .filter-click-area {
                width: 100%;
                position: static;
                margin-bottom: 30px;
            }
            .objects-content-area, .grid.magazine-grid, .volumes-grid, .available-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 19px;
            }
            #contact-view {
                grid-template-columns: 1fr;
                gap: 40px;
            }
            .form-row {
                grid-template-columns: 1fr;
            }
        }

        /* iPad（Mini 到 Pro，只有直放）Archive/Objects 頁固定一行三格圖，
           蓋掉上面兩條比較窄的規則（1024px 版跟手機版都是 2 格）；
           要排在它們後面、CSS 疊層才會贏，套用到整個 iPad 寬度區間（含跟手機版重疊的那一小段） */
        @media (min-width: 744px) and (max-width: 1024px) {
            .objects-content-area {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        /* Inline Gallery Browser Styles */
#gallery-view {
    display: none; /* 預設隱藏，透過 JS 切換顯示 */
    width: 100%;
    height: calc(100vh);
    box-sizing: border-box;
    padding: 20px 0;
    background-color: #ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.inline-gallery-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 82vh; 
}

/* 將容器改為固定高度，強制撐開舞台 */
.inline-img-wrapper {
    height: 69vh !important;
    width: 100% !important;
}

.inline-img-wrapper img {
    height: 69vh !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

/* 箭頭位置保持不變 */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 30px 40px;
    color: #333;
    transition: opacity 0.2s ease;
    user-select: none;
    z-index: 10;
}

.gallery-nav-btn.prev-btn {
    left: 40px;
}

.gallery-nav-btn.next-btn {
    right: 40px;
}

.gallery-nav-btn:hover {
    opacity: 0.4;
}
.inline-gallery-meta {
    text-align: center;
    margin-top: 15px;
}

        /* Spotlight / Lightbox Overlay */
        .spotlight-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 0.95);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 7000;
            padding: 40px;
        }

        .spotlight-modal.active {
            display: flex;
        }

        .spotlight-content {
            max-width: 90vw;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            position: relative;
        }

        .spotlight-content img {
            max-width: 85vw;
            max-height: 72vh;
            object-fit: contain;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        }

        .spotlight-image-wrap {
            position: relative;
            display: flex;
        }

        /* 手機版：點圖片左右兩側切換上一張／下一張，區塊本身不可見，跟桌機版的箭頭一樣不佔視覺 */
        .spotlight-tap-zone {
            display: none;
            position: absolute;
            top: 0;
            bottom: 0;
            width: 40%;
        }

        .spotlight-tap-prev {
            left: 0;
        }

        .spotlight-tap-next {
            right: 0;
        }

        @media (max-width: 768px) {
            .spotlight-tap-zone {
                display: block;
            }
        }

        .spotlight-caption {
            font-size: 0.9rem;
            color: var(--text-color);
            letter-spacing: 0.02em;
            text-align: center;
        }

        .spotlight-title {
            font-weight: 600;
            display: block;
        }

        /* Project 頁面的照片燈箱：主角是照片本身，標題不用加重，跟說明文字一樣維持灰階 */
        .spotlight-title-muted {
            font-weight: 400;
            color: var(--gray-color);
        }

        .spotlight-details {
            color: var(--gray-color);
        }

        .spotlight-details-mobile {
            display: none;
        }

        .spotlight-arrow {
            position: fixed;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--text-color);
            cursor: pointer;
            padding: 20px;
            z-index: 7010;
            transition: opacity 0.2s;
            opacity: 0.6;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .spotlight-arrow:hover {
            opacity: 1;
        }

        .spotlight-prev {
            left: 30px;
        }

        .spotlight-next {
            right: 30px;
        }

        @media (max-width: 768px) {
            .spotlight-arrow {
                display: none;
            }
            .spotlight-content img {
                box-shadow: none;
            }
            .spotlight-details-desktop {
                display: none;
            }
            .spotlight-details-mobile {
                display: block;
                margin-top: 6px;
            }
            .spotlight-details-mobile .spotlight-details-line {
                display: block;
                color: var(--gray-color);
            }
        }

        .spotlight-close {
            position: fixed;
            top: 20px;
            right: 30px;
            padding: 10px;
            background: none;
            border: none;
            cursor: pointer;
            z-index: 7010;
            color: var(--accent-blue);
            opacity: 0.6;
            transition: opacity 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .spotlight-close:hover {
            opacity: 1;
        }

        @media (max-width: 1400px) {
            #gallery-view {
                grid-template-columns: repeat(7, 1fr);
            }
        }

        @media (max-width: 900px) {
            #gallery-view {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        /* iPad（Mini 到 Pro，只有直放）Available 頁固定一行四格圖。
           available-grid-content 這個元素其實同時掛了 grid/magazine-grid/available-grid 三個 class，
           所以這裡要用 .grid.available-grid 兩個 class 一起選，才能贏過前面 .grid.magazine-grid 那條規則
           （單一 class 選擇器就算排在後面，也贏不了特異度更高的兩個 class 選擇器） */
        @media (min-width: 744px) and (max-width: 1024px) {
            .grid.available-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        /* iPad 直放：About 頁的圖片縮小一半（其餘排版跟桌機版一樣，圖左文右） */
        @media (min-width: 744px) and (max-width: 1024px) {
            .about-image-container img {
                max-height: 32.5vh;
            }
        }

        /* iPad 直放：Projects 列表頁改成一行兩張圖（原本桌機版是三欄瀑布流）。
           用跟 Home 物件一樣的手法：讓 .projects-col 這層外殼「隱形」，
           裡面的 .project-card 直接攤平排進下面的 2 欄格線 */
        @media (min-width: 744px) and (max-width: 1024px) {
            .projects-grid {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 40px;
            }
            .projects-col {
                display: contents;
            }
        }

        /* iPad 直放：Books & Magazines 頁一行 3 張圖。
           這裡故意用 #magazine-grid（id，特異度更高）鎖定只影響 Books & Magazines 頁本身，
           不能用 .grid.magazine-grid，那個 class 組合 Available 頁的網格也有掛，會不小心波及到它 */
        @media (min-width: 744px) and (max-width: 1024px) {
            #magazine-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

