
@media only screen and (max-width: 1600px) {

    .filter-menu {
        display: none;
        position: absolute;
        top: 10vh;
        /* 可以根据需要调整 */
        /* left: 50%; */
        left: 54%;
        transform: translateX(-50%);
        background-color: rgba(255, 255, 255, 0.849);
        border: 1px solid #ccc;
        padding: 8px 10px 8px 10px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        animation: fadeIn 2s;
        border-radius: 18px;
        font-family: 'Avenir Next Bold';
        width: 12vw;
    }
}

@media only screen and (max-width: 1920px) {
    

    .filter-menu {
        display: none;
        position: absolute;
        top: 6vh !important;
        left: 50% !important;
        width: 10vw !important;
    }
}



@media only screen and (min-width: 601px) {
    .gallery-wrapper {
        width: 100%;
        padding: 20px;
    }

    .gallery-item.hidden {
        opacity: 0;
    }

    .gallery-item img {
        width: 100%;
        display: block;
    }

    .hover-layer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .hover-text {
        color: white;
        padding: 5px;
        font-family: 'Avenir Next Bold';
        font-size: 14px;
        letter-spacing: -0.05em;
        line-height: 1.2em;
        padding-left: 20px;
        padding-right: 20px;
    }

    .gallery-item:hover .hover-layer {
        opacity: 1;
    }

    #filter-menu-container {
        position: relative;
        text-align: center;
        /* margin-top: 60px; */
        /* margin-top: 120px; */
        /* margin-top: 13vh; */
        z-index: 1001 !important;
        /* Tempo added */
        width: 15vw;
        top: 10vh;
        left: 44%;
    }

    .filter-menu {
        display: none;
        position: absolute;
        top: 10vh;
        /* 可以根据需要调整 */
        /* left: 50%; */
        left: 54%;
        transform: translateX(-50%);
        background-color: rgba(255, 255, 255, 0.849);
        border: 1px solid #ccc;
        padding: 8px 20px 8px 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        animation: fadeIn 2s;
        border-radius: 18px;
        font-family: 'Avenir Next Bold';
        width: 12vw;
    }

    .filter-menu.visible {
        display: block;
        animation: fadeIn 2s;

    }

    #gallery-container-7.scale {
        /* display: block; */
        /* transform: scale(1.3) !important; */
        transform: scale(1.3) translateY(-500px) !important;
        /* transform: scale(1.3) translate(-100px, -500px) !important; */
        transition: transform 0.3s ease-in-out;
        animation: ease-in 0.3s;
        /* top: -10px; */
        /* bottom: 0 !important;
        position: absolute !important;
        top: 0px !important; */
        left: 100px !important; 

    }

    .menu-button {
        /*    background-color: #007BFF;*/
        background-color: #FFFFFFF2;
        color: #383838;
        border: 1px solid #CCC;
        border-radius: 50px;
        /* padding: 18px 80px; */
        /* padding: 18px 60px; */
        padding: 14px calc(100vw / 40);
        cursor: pointer;
        z-index: 1001;
        font-family: 'Avenir Next Bold';
        /* font-size: 16px; */
        font-size: 1rem;
        opacity: 0.9;
        /*transition: fade 2s ease-in-out;*/
        box-shadow: 0px 0px 15px 1px cornflowerblue;
        animation: fadeIn 6s;
        /*animation-delay: 2000ms;*/

    }

    .menu-button:hover {
        /*    background-color: #0056b3;
        background-color: #F7F7F7; */
        color: #00657D;
    }

    .filter-menu button {
        display: block;
        width: 100%;
        margin: 5px 0;
        padding: 10px;
        background-color: #f1f1f1;
        border: none;
        cursor: pointer;
    }

    .filter-menu button:hover {
        background-color: #ddd;
    }

    .webview-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2000;
        flex-direction: column;
    }

    .webview-iframe {
        width: 100%;
        height: 100%;
        border: none;
        z-index: 2001;
    }

    .webview-close-button {
        position: absolute;
        top: 40px;
        right: 40px;
        /* top: 20px;
        left: 20px; */
        z-index: 2002;
        cursor: pointer;
    }

    /* .circle-progress {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .circle-content {
        font-size: 20px;
        font-weight: bold;
        color: yellow;
        position: absolute;
    }

    .circle-progress::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background-color: transparent;
        border: 5px solid rgba(0, 0, 0, 0.2);
    } */

    .circle-progress {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .circle-progress-inner {
        width: 90%; /* Adjust inner circle size as needed */
        height: 90%;
        border-radius: 50%;
        background-color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 1;
    }

    .circle-content {
        font-size: 15px;
        font-weight: bold;
        /* color: yellow; */
        position: absolute;
    }

    .circle-progress::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background-color: transparent;
        /* border: 5px solid rgba(0, 0, 0, 0.2); */
    }

    .circle-progress::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        /* border: 5px solid yellow;  */
        /* transform: rotate(120deg); Adjust based on progress (0-360 degrees) */
        /* transform: rotate(var(--progress-degrees, 0deg));
        transform-origin: center;
        clip: rect(0px, 25px, 50px, 0px);  */
    }

    .reset-button {
        position: fixed;
        /* top: 190px; */
        /* top: 14vh; */
        top: calc(100vh / 4.2);
        /* left: 46%; */
        /* left: 30%; */
        left: calc(100vw * 0.42);
        background-color: #6b5ea3;
        color: white;
        border: solid #53d685 1px;
        padding: 10px 14px;
        cursor: pointer;
        z-index: 1002;
        display: none;
        /* 初始状态隐藏 */
        border-radius: 50%;
        font-weight: bold;
    }

    .reset-button:hover {
        color: #53d685;
    }

    .filtered-layout {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .filtered-layout .gallery-item img {
        flex-grow: 1;
        /* height: auto; */
        height: 360px;
        object-fit: cover;
    }

    .gallery-title {
        text-align: center;
        padding: 10px;
        background-color: #fff;
        /* border-top: 1px solid #ccc; */
        font-size: 28px;
        font-family: 'Avenir Next Regular';
        font-weight: 500;
        color: #000;
        text-align: left;
        line-height: 1.4em;
        letter-spacing: -0.05em;
    }

    /* AL added for testing */
    #filtered-container {
        display: flex;
        flex-wrap: wrap;
    }

    #filtered-container img {
        margin: 10px;
    }

    /* For filtered layout Tempo hide too
    #gallery-container-7.filtered-layout {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px; 
    }
    */


    .gallery-item.filtered-layout {
        width: 100%;
        /* Ensure items take the full width of their grid cell */
        transform: none !important;

    }

    /* Isotope-specific styles - Isotope container styles */

    /* #gallery-container-7-iso {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        z-index: 999 !important;
        position: relative;
        width: 100%;
        height: auto;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        overflow: auto;
    } 
    /*
    body,
    html {
        height: 100%;
        overflow: auto;
    }

    .isotope-container {
        display: inline-grid;
        justify-content: space-between;
    }

    .isotope-container .gallery-item {
        width: calc(32% - 20px);
        margin-bottom: 60px;
        position: relative;
        transition: opacity 0.5s ease-in-out;
    }
    **/

    .isotope-container .gallery-item img {
        display: block;
        width: 100%;
        height: auto;
    }

    .isotope-container-7-iso .gallery-title {
        position: absolute;
        bottom: 10px;
        left: 10px;
        color: white;
        background: rgba(0, 0, 0, 0.5);
        padding: 5px;
        font-size: 14px;
        border-radius: 3px;
        line-height: 10px;
    }

    .isotope-active {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
    }

    #gallery-container-7.isotope-active {
        width: 1200px;
        padding: 20px;
    }


    /* ENDED */

    #gallery-container-7 {
        display: flex;
        flex-wrap: wrap;
        z-index: 999 !important;
        position: relative;
        width: 1600px;
        height: auto;
        /* Adjust as needed */
        margin-left: auto;
        margin-right: auto;
        transition: transform 0.5s ease-in-out;
    }

    #gallery-container-7 > .gallery-item {
        width: 180px;
        /*width: auto;*/
        /* width: 320px; */
        background-color: #fff;
        border: 0px solid #ccc;
        overflow: hidden;
        cursor: pointer;
        opacity: 1;
        transition: opacity 0.5s ease-in-out;
        /*    position: absolute;  */
        position: relative;
        /* margin-top: 10px; */
        margin: 10px;
        margin-bottom: 20px !important;
        color: #383838;
        text-align: center;
    }

    /* Hide new part */
    /* #gallery-container-7-iso {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        position: relative;
    }

    #gallery-container-7-iso .filtered-layout {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    #gallery-container-7-iso .filtered-layout .gallery-item {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: calc(30.5%) !important; 
        padding-bottom: 30px !important;
        transform: none !important;
        margin-left: auto;
        margin-right: auto;
    }

    #gallery-container-7-iso > .gallery-item {
        width: 360px !important;
        background-color: #fff;
        border: 0px solid #ccc;
        overflow: hidden;
        opacity: 1;
        transition: opacity 0.5s ease-in-out;
        position: relative;
        margin-left: 10px;
        margin-right: 10px;
        margin-bottom: 200px !important;
        color: #383838;
        text-align: center;
    }

    #gallery-container-7-iso > .gallery-item img {
        transition: transform 0.3s ease !important;
        width: 360px !important;
    } */

    /* OLD PART */
    #gallery-container-7-iso .filtered-layout .gallery-item {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: calc(30.5%) !important;
        padding-bottom: 30px !important;
        transform: none !important;
    }

    #gallery-container-7-iso > .gallery-item {
        width: 360px !important;
        background-color: #fff;
        border: 0px solid #ccc;
        overflow: hidden;
        opacity: 1;
        transition: opacity 0.5s ease-in-out;
        position: absolute;
        margin-left: 10px;
        margin-right: 10px;
        margin-bottom: 200px !important;
        color: #383838;
        text-align: center;
    }

    #gallery-container-7-iso > .gallery-item img {
        transition: transform 0.3s ease !important;
        width: 360px !important;
    }

    #gallery-container-7-iso > .gallery-item img:hover {
        transform: scale(1.05) !important;
    }

    .row-margin {
        margin-bottom: 60px;
        /* Adjust this value to set the desired row margin */
    }

    .center-column {
        margin-top: 100px !important;
        padding-top: 20px;
        border: 5px #00657D solid;
    }

    /**
    #gallery-container-7 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .gallery-item {
        width: 200px; 
        margin-bottom: 20px !important; 
        transition: margin 0.3s ease-in-out; 
    }

    .gallery-item:nth-child(odd) {
        margin-top: 40px; 
    }

    .gallery-item:nth-child(even) {
        margin-top: 80px; 
    }
    **/

    .disable-hover:hover {
        /* pointer-events: none; */
        /* Disable all pointer events */
        /* Optionally, adjust styles to visually indicate disabled state */
    }

    /* For Filter page scrolling effect */
    @keyframes slideDown {
        from {
            transform: translateY(-100%);
        }

        to {
            transform: translateY(-60%);
        }
    }

    .img-slide-down {
        /*    animation: slideDown 0.5s ease-in-out; */
        transform: translateY(200px);
        transition: transform 0.5s ease-in-out;
    }

    .grey-background {
        background-color: #F7F7F7;
        /* transition: height 3.5s ease-in-out;
    vertical-align: bottom !important;
    bottom: 0 !important;
    animation: slideDown 1.5s ease-in-out; */
        transform: translateY(100px);
    }
    /* BK on 12 July - 12am - cleaned version */
    .filter-menu button:hover {
        background: linear-gradient(45deg, #7E5AE3, #b56247, #6d1616, #4e2bb1 97%);
        color: white;
        /* font-weight: bold; */
        font-family: 'Avenir next bold';
    }
    .filter-menu button {
        /* font-weight: bold; */
        font-family: 'Avenir next bold';
    }
}

/****************************************** MOBILE ONLY ******************************************/

@media only screen and (max-width: 600px) {
    
    #filter-menu-container {        
        margin-top: 20vh;
        z-index: 99999 !important;
        /* Tempo added */
        width: 80%;
        top: 0;
        left: 20%;
        position: fixed;
    }
    
    .filter-menu {
        display: none;
        position: absolute;
        top: 60px;
        /* 可以根据需要调整 */
        /* left: 50%; */
        width: 80%;
        z-index: 9999 !important;                     
        
        background-color: rgba(255, 255, 255, 0.849);
        border: 1px solid #ccc;
        padding: 10px 30px 10px 30px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        animation: fadeIn 2s;
        border-radius: 18px;
        font-family: 'Avenir Next Bold';
        margin-left:  auto;
        margin-right:  auto;
    }

    .menu-button {
        background-color: #fffffff2;
        color: #383838;
        border: 1px solid #CCC;
        border-radius: 50px;
        padding: 18px 30px;
        cursor: pointer;
        z-index: 99999 !important;
        font-family: 'Avenir Next Bold';
        font-size: 1rem;
        opacity: 0.9.5;
        box-shadow: 0px 0px 15px 1px cornflowerblue;
        animation: fadeIn 2s;
        position: absolute;
        margin-left:  auto;
        margin-right:  auto;
        width: 80%;

    }


    /* NOT CHECK AND FIX YET */
    .gallery-wrapper {
        width: 100%;
        padding: 20px;
    }

    .gallery-item.hidden {
        opacity: 0;
    }

    .gallery-item img {
        width: 360px !important;
        display: block;
    }

    .hover-layer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .hover-text {
        color: white;
        padding: 5px;
        font-family: 'Avenir Next Bold';
        font-size: 14px;
        letter-spacing: -0.05em;
        line-height: 1.2em;
        padding-left: 20px;
        padding-right: 20px;
    }

    .gallery-item:hover .hover-layer {
        opacity: 1;
    }

    .filter-menu.visible {
        display: block;
        animation: fadeIn 2s;

    }

    
    .webview-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2000;
        flex-direction: column;
    }

    .webview-iframe {
        width: 100%;
        height: 100%;
        border: none;
        z-index: 2001;
    }

    .webview-close-button {
        position: absolute;
        top: 120px;
        right: 40px;
        /* top: 20px;
        left: 20px; */
        z-index: 2002;
        cursor: pointer;
    }

    .circle-progress {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .circle-progress-inner {
        width: 90%; /* Adjust inner circle size as needed */
        height: 90%;
        border-radius: 50%;
        background-color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 1;
    }

    .circle-content {
        font-size: 20px;
        font-weight: bold;
        color: yellow;
        position: absolute;
    }

    .circle-progress::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background-color: transparent;
        border: 5px solid rgba(0, 0, 0, 0.2);
    }

    .circle-progress::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 5px solid yellow; /* The progress color */
        /* transform: rotate(120deg); Adjust based on progress (0-360 degrees) */
        transform: rotate(var(--progress-degrees, 0deg));
        transform-origin: center;
        clip: rect(0px, 25px, 50px, 0px); /* Masking the progress */
    }

    .reset-button {
        position: fixed;
        top: 21vh;
        left: 22%;
        background-color: #6b5ea3;
        color: white;
        border: solid #53d685 5px;
        padding: 10px 14px;
        cursor: pointer;
        /* z-index: 1002; */
        z-index: 99999;
        display: none;
        /* 初始状态隐藏 */
        border-radius: 50%;
        font-weight: bold;
    }

    

    .filtered-layout {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .filtered-layout .gallery-item img {
        flex-grow: 1;
        /* height: auto; */
        height: 360px;
        object-fit: cover;
    }

    .gallery-title {
        text-align: center;
        padding: 10px;
        background-color: #fff;
        /* border-top: 1px solid #ccc; */
        font-size: 20px;
        font-family: 'Avenir Next Regular';
        font-weight: 500;
        color: #000;
        text-align: left;
        line-height: 1.2em;
        letter-spacing: -0.05em;
    }

    /* AL added for testing */
    #filtered-container {
        display: flex;
        flex-wrap: wrap;
    }

    #filtered-container img {
        margin: 10px;
    }


    .gallery-item.filtered-layout {
        width: 100%;
        /* Ensure items take the full width of their grid cell */
        transform: none !important;

    }

    .isotope-container .gallery-item img {
        display: block;
        width: 100%;
        height: auto;
    }

    .isotope-container-7-iso .gallery-title {
        position: absolute;
        bottom: 10px;
        left: 10px;
        color: white;
        background: rgba(0, 0, 0, 0.5);
        padding: 5px;
        font-size: 14px;
        border-radius: 3px;
        line-height: 10px;
    }

    .isotope-active {
        display: grid;
        gap: 10px;
    }

    #gallery-container-7.isotope-active {
        width: 100%;
        padding: 20px;
    }


    /* ENDED */

    #gallery-container-7 {
        display: grid;
        z-index: 999 !important;
        position: relative;
        width: 100%;
        height: auto;
        /* Adjust as needed */
        margin-left: auto;
        margin-right: auto;
        transition: transform 0.5s ease-in-out;
    }

    #gallery-container-7 > .gallery-item {
        
        width: 360px;
        background-color: #fff;
        border: 0px solid #ccc;
        overflow: hidden;
        cursor: pointer;
        opacity: 1;
        transition: opacity 0.5s ease-in-out;
        position: relative;
        margin: 30px !important;
        color: #383838;
        text-align: center;
    }

    /* OLD PART */
    #gallery-container-7-iso .filtered-layout .gallery-item {
        display: block;
        width: calc(90%) !important;
        padding-bottom: 30px !important;
        transform: none !important;
    }

    #gallery-container-7-iso > .gallery-item {
        width: 360px !important;
        background-color: #fff;
        border: 0px solid #ccc;
        overflow: hidden;
        opacity: 1;
        transition: opacity 0.5s ease-in-out;
        position: absolute;
        margin-left: 10px;
        margin-right: 10px;
        margin-bottom: 20px !important;
        color: #383838;
        text-align: center;
    }

    .row-margin {
        margin-bottom: 60px;
        /* Adjust this value to set the desired row margin */
    }

    .center-column {
        margin-top: 100px !important;
        padding-top: 20px;
        border: 5px #00657D solid;
    }

    /* For Filter page scrolling effect */
    @keyframes slideDown {
        from {
            transform: translateY(-100%);
        }

        to {
            transform: translateY(-60%);
        }
    }

    .img-slide-down {
        /*    animation: slideDown 0.5s ease-in-out; */
        transform: translateY(200px);
        transition: transform 0.5s ease-in-out;
    }

    .grey-background {
        background-color: #F7F7F7;
        transform: translateY(100px);
    }
    /* BK on 12 July - 12am - cleaned version */
    .filter-menu button {
        display: block;
        width: 100%;
        margin: 5px 0;
        padding: 16px;
        /* background-color: #f1f1f1; */
        background: linear-gradient(55deg, #7E5AE3, #b56247, #6d1616, #4e2bb1 97%);
        border: none;
        cursor: pointer;
        color: white;
        font-weight: bold;
        font-family: 'Avenir next bold';
    }
    
    
}
