.filter-container {
    display: none; /* Hidden by default */
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
    text-align: center;
}
.filter-btn {
    border: 1px solid #555;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
}
.filter-text {
    color: black;
    font-weight: bold;
    margin-top: 5px;
}
.filter-btn img {
    width: 30px;
    height: 30px;
    filter: grayscale(1) brightness(2.5);
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 80px;
    right: 20px;
    background-color: rgba(0,0,0,0.8);
    border-radius: 10px;
    padding: 15px;
    z-index: 1000;
    flex-direction: column;
    gap: 10px;
}
@media (max-width: 600px) {
    #checkbox-container {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .filter-container {
        display: block; /* Show on mobile */
    }
    #dropdown-menu .checkbox-wrapper .label {
        color: white;
    }
    .explore-btn {
        display: none;
    }
    #photo-gallery {
        position: fixed !important; /* Use fixed to stick to viewport */
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 140px; /* Fixed height */
        z-index: 1500; /* Ensure it's above other content */
    }
    #viewer-container {
        top: 130px !important; /* Start below the top nav */
        bottom: 140px !important; /* End above the fixed gallery */
    }
    #top-nav-container > div {
        gap: 0 !important;
    }
    .select-all-btn {
        font-size: 13px;
        padding: 0.7em 2em;
    }
}
body.fullscreen-active {
    overflow: hidden;
}
.fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    cursor: pointer;
    z-index: 2001;
    padding: 10px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    user-select: none; /* Prevent text selection */
    transition: background-color 0.3s;
}
.fullscreen-nav:hover {
    background-color: rgba(0,0,0,0.6);
}
.fullscreen-nav.prev {
    left: 20px;
}
.fullscreen-nav.next {
    right: 20px;
}
@media (max-width: 600px) {
    .fullscreen-nav {
        display: none; /* Hide on mobile where swipe is used */
    }
}
#viewer-container {
    position: absolute;
    top: 150px;
    bottom: 220px;
    left: 0;
    right: 0;
}
#photo-gallery {
    position: absolute;
    bottom: 68px;
    left: 20px;
    right: 20px;
}
#top-nav-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 20px;
}
