        .gallery {
            display: grid;
            grid-template-columns: repeat(3, 230px); /* 每列寬度 250px，共 3 列 */
            gap: 20px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 30px;
            justify-content: center;   /* 水平居中 */
        }

        .thumbnail {
            width: 230px; /* 設定寬度 230px */
            height: 230px; /* 設定高度 230px */
            object-fit: contain; /* 保持圖片比例，完整顯示在指定範圍內 */
            object-position: bottom; /* 將圖片定位在底部 */
            cursor: pointer;
            border: none; /* 移除邊框 */
        }

        .popup {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: white;
            padding: 20px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
            z-index: 10;
            /* 限制最大寬高，避免超出視窗 */
            max-width: calc(100% - 40px); 
            max-height: calc(100% - 40px); 
            box-sizing: border-box;
            overflow: auto;
        }

        .popup img {
            /* 限制最大寬高，避免圖片過大 */
            max-width: 60%;
            max-height: 60%; 
            display: block;
            margin: 0 auto;
            transform-origin: center center;
            transition: transform 0.3s ease;
        }

        .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: red;
            color: white;
            border: none;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            cursor: pointer;
            font-size: 16px;
        }

        .controls {
            text-align: center;
            margin-top: 10px;
        }

        .page-number {
            margin-top: 10px;
            text-align: center;
            font-size: 16px;
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: none;
            z-index: 5;
        }

        .zoom-buttons {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
        }

        .zoom-buttons button {
            background-color: #333;
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 5px;
            cursor: pointer;
        }

        .category-buttons {
            text-align: center;
            margin-top: 10px;
        }

        .category-buttons button {
            font-size: 12px;
            line-height: 1;
            font-weight: 500;
            letter-spacing: .1em;
      /*    text-transform: uppercase;        */
      /*    font-family: "Teko", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; */
	    font-family: "Noto Serif HK", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
            background-color: white;
            color: #9b9b9b;
            border: none;
            padding: 5px 10px;
            border-radius: 5px;
            cursor: pointer;
            margin-right: 5px;
        }

        /* 激活的按鈕 */
        .category-buttons button.active {
            color: black;
            background-color: lightgrey;
        }

        /* 未激活的按鈕 */
        .category-buttons button:not(.active) {
            color: #9b9b9b;
        }

        /* 按鈕懸停效果 */
        .category-buttons button:hover {
            color: black;
        }

        .photo-description {
            text-align: center;
            margin-top: 0px;
        }

        #allButton {
            display: none;
        }

