html[lang="en"] .filter-bar, .caption{
            font-family: 'Lato', sans-serif;
        }

        html[lang="zh"] .filter-bar, .caption{
            font-family: 'Source Han Sans TC', '思源黑體', sans-serif;   
        }
        
        
        .language-switcher{margin-right: 30px;}
       


        .filter-bar {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            background-color: #ca9c6a;
            height: 15px;
            margin-right: 5vh;
            position: fixed;
            top: 60px;
            right: 0;
            overflow: hidden;
            transition: height 0.3s ease;
            z-index: 1;
            border-radius: 0 0 30px 30px;
            padding: 0 30px;
            opacity: 0;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
            animation: fadeDown 1.5s 1s forwards;
        }
        .filter-bar:hover, .filter-bar.show {
            height: 45px;
        }
        .filter-bar a {
            font-size: 12px;
            font-weight: bold; 
            position: relative;
            color: #061d2d;
            text-decoration: none;
            padding: 0 20px;
            margin: 0 10px;
            opacity: 0;
            letter-spacing: 2px;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .filter-bar.show a {
            opacity: 1;
        }

        .filter-bar:hover a {
            opacity: 1;
        }
        .filter-bar a:hover {
            color: lightyellow;
            transform: scale(1.1);
        }

        .filter-bar a.active {
            color: white;
            font-weight: bold; 
        }

        .gallery {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0;
            padding: 0;
            margin: 0;
            background-color: black;
            z-index: 2;
        }

        .filter-bar .borderline{
            border-left: 1px solid rgba(251, 238, 121, 0.428);
        }
        .gallery-item {
            position: relative;
            overflow: hidden;
            transition: transform 0.3s ease, filter 0.3s ease;
            transform: scale(0);
            opacity: 0;
            animation: zoom-in 0.5s forwards;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            display: block;
            transition: transform 0.5s ease;
        }

        .gallery-item:hover img {
            transform: scale(1.1);
        }

        .gallery-item:hover {
            filter: brightness(1.2);
        }

        .caption {
            font-size: 0.9em;
            position: absolute;
            bottom: 2vh;
            left: -8px;
            color: white;
            padding: 5px;
           
        }

        .caption::before {
            content: '––––––';  
            margin-right: 10px; 
            color: white;  
            font-weight: bold;  
            letter-spacing: -3px;
        }

        .gallery-item:hover .caption {
            color: #372f26;
        }

         .projecth1{
            font-family: 'Dancing Script', cursive;
            font-size: 2em;
            transform: rotate(-5deg);
            color: #ca9c6a75;
            text-align: center;
            text-align: right;
            position: fixed;
            right: 50px;
            bottom: 80px;
            text-shadow: 0px 0px 1px rgba(252, 243, 167, .2);
        }

        @keyframes zoom-in {
            from {
                transform: scale(0);
                opacity: 0;
            }

            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        @media (max-width: 600px) {
            .gallery-before-space{ height:99px;}
            .gallery {
                grid-template-columns: repeat(2, 1fr);
                /* 2 columns on mobile */
            }

            .filter-bar {
                position: fixed;
                justify-content: center;
                align-items: center;
                margin-right: 0;
                width: 100%;
                padding: 0;
                height: 40px;
                border-radius: 0;
                z-index: 1;
            }

            .filter-bar a {
                margin: 5px 0;
                opacity: 1;
                font-size: 3vw;
            }

            .projecth1{
                position: relative;
                right: 0px; 
                bottom: 20px;
                text-align: center;
                margin: 50px 40px 0;
            }
        }