/* View Toggle Controls */
        .view-controls {
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
            margin-top: 2rem;
        }

        .view-btn {
            padding: 0.75rem 1.5rem;
            background: var(--bg-card);
            border: 2px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .view-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .view-btn.active {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        /* Gallery Categories - List Layout Default */
        .gallery-categories {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .gallery-categories.grid-view {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
        }

        /* Folder Container - List Style */
        .folder-container {
            position: relative;
            background: var(--bg-card);
            border: 2px solid var(--border-color);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .folder-container::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(
                45deg,
                transparent 30%,
                rgba(59, 130, 246, 0.1) 50%,
                transparent 70%
            );
            animation: glassShimmer 3s ease-in-out infinite;
            pointer-events: none;
        }

        @keyframes glassShimmer {
            0%, 100% {
                transform: translate(-100%, -100%) rotate(0deg);
                opacity: 0;
            }
            50% {
                transform: translate(0%, 0%) rotate(0deg);
                opacity: 1;
            }
        }

        .folder-container:hover {
            border-color: var(--primary);
            box-shadow: var(--shadow-lg);
            background: rgba(59, 130, 246, 0.02);
            backdrop-filter: blur(10px);
        }

        /* Auto-expand on hover in list view */
        .gallery-categories:not(.grid-view) .folder-container:hover .photo-strip {
            max-height: 280px;
            opacity: 1;
            padding: 1.5rem 2rem;
            background: rgba(59, 130, 246, 0.03);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid rgba(59, 130, 246, 0.1);
            box-shadow: inset 0 1px 10px rgba(59, 130, 246, 0.05);
        }

        /* Folder Card - Horizontal Layout */
        .folder-card {
            display: flex;
            align-items: center;
            gap: 2rem;
            padding: 1.5rem 2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            z-index: 2;
            background: var(--bg-card);
        }

        .gallery-categories.grid-view .folder-card {
            flex-direction: column;
            text-align: center;
            padding: 2rem;
        }

        .folder-card:hover {
            background: rgba(59, 130, 246, 0.05);
        }

        .folder-icon-wrapper {
            flex-shrink: 0;
            width: 80px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
            border-radius: 12px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .folder-icon-wrapper::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(
                135deg,
                transparent 40%,
                rgba(255, 255, 255, 0.3) 50%,
                transparent 60%
            );
            animation: glassReflection 2s ease-in-out infinite;
        }

        @keyframes glassReflection {
            0%, 100% {
                transform: translateX(-100%);
            }
            50% {
                transform: translateX(100%);
            }
        }

        .gallery-categories.grid-view .folder-icon-wrapper {
            width: 100px;
            height: 100px;
        }

        .folder-container:hover .folder-icon-wrapper {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            transform: scale(1.05);
        }

        .folder-icon {
            font-size: 3rem;
            color: var(--primary);
            transition: all 0.3s ease;
        }

        .gallery-categories.grid-view .folder-icon {
            font-size: 4rem;
        }

        .folder-container:hover .folder-icon {
            color: white;
        }

        .folder-info {
            flex: 1;
            text-align: left;
        }

        .gallery-categories.grid-view .folder-info {
            text-align: center;
        }

        .folder-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
            transition: color 0.3s ease;
        }

        .folder-container:hover .folder-title {
            color: var(--primary);
        }

        .folder-count {
            font-size: 0.875rem;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .gallery-categories.grid-view .folder-count {
            justify-content: center;
        }

        /* Expand Button */
        .folder-expand-btn {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .folder-expand-btn:hover {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        .folder-expand-btn i {
            transition: transform 0.3s ease;
        }

        .folder-container.expanded .folder-expand-btn i {
            transform: rotate(180deg);
        }

        .gallery-categories.grid-view .folder-expand-btn {
            width: 100%;
            margin-top: 1rem;
        }

        /* Mobile Toggle Button */
        .folder-toggle {
            display: none;
        }

        /* Photo Strip - Glassmorphism Drawer */
        .photo-strip {
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            z-index: 1;
        }

        .folder-container.expanded .photo-strip {
            max-height: 280px;
            opacity: 1;
            padding: 1.5rem 2rem;
            background: rgba(59, 130, 246, 0.03);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid rgba(59, 130, 246, 0.1);
            box-shadow: inset 0 1px 10px rgba(59, 130, 246, 0.05);
        }

        .photo-strip-wrapper {
            display: flex;
            gap: 1rem;
            overflow-x: auto;
            padding: 1rem 0;
            scroll-behavior: auto;
            -webkit-overflow-scrolling: touch;
        }

        .photo-strip-wrapper::-webkit-scrollbar {
            height: 6px;
        }

        .photo-strip-wrapper::-webkit-scrollbar-track {
            background: var(--bg-tertiary);
            border-radius: 3px;
        }

        .photo-strip-wrapper::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 3px;
        }

        .photo-strip-wrapper::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }

        /* Photo Item */
        .photo-item {
            flex: 0 0 180px;
            height: 180px;
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            animation: slideIn 0.5s ease backwards;
            will-change: transform;
        }

        .photo-item:nth-child(1) { animation-delay: 0.1s; }
        .photo-item:nth-child(2) { animation-delay: 0.15s; }
        .photo-item:nth-child(3) { animation-delay: 0.2s; }
        .photo-item:nth-child(4) { animation-delay: 0.25s; }
        .photo-item:nth-child(5) { animation-delay: 0.3s; }
        .photo-item:nth-child(6) { animation-delay: 0.35s; }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .photo-item:hover {
            transform: translate3d(0, -15px, 0) scale(1.05);
            box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
            z-index: 10;
        }

        .photo-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

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

        .photo-item-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
            padding: 1rem;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }

        .photo-item:hover .photo-item-overlay {
            transform: translateY(0);
        }

        .photo-item-title {
            font-size: 0.875rem;
            font-weight: 600;
            color: white;
            margin-bottom: 0.25rem;
        }

        .photo-item-date {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.8);
        }

        /* Lightbox */
        .lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 20000;
            animation: fadeIn 0.3s ease;
        }

        .lightbox.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lightbox-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
        }

        .lightbox-image {
            max-width: 100%;
            max-height: 90vh;
            border-radius: 8px;
            animation: zoomIn 0.3s ease;
        }

        @keyframes zoomIn {
            from {
                transform: scale(0.8);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .lightbox-close {
            position: fixed;
            top: 2rem;
            right: 2rem;
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lightbox-close:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(90deg);
        }

        .lightbox-nav {
            position: fixed;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lightbox-nav:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .lightbox-prev {
            left: 2rem;
        }

        .lightbox-next {
            right: 2rem;
        }

        .lightbox-info {
            position: fixed;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(10, 10, 10, 0.9);
            backdrop-filter: blur(10px);
            padding: 1rem 2rem;
            border-radius: 12px;
            border: 1px solid var(--border-color);
        }

        .lightbox-title {
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 0.25rem;
        }

        .lightbox-date {
            font-size: 0.875rem;
            color: var(--text-secondary);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .view-controls {
                flex-wrap: wrap;
            }

            .gallery-categories {
                gap: 1.5rem;
            }

            .gallery-categories.grid-view {
                grid-template-columns: 1fr;
            }

            .folder-card {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
            }

            .folder-info {
                text-align: center;
            }

            .folder-count {
                justify-content: center;
            }

            .folder-expand-btn {
                width: 100%;
            }

            .photo-item {
                flex: 0 0 150px;
                height: 150px;
            }

            .lightbox-nav,
            .lightbox-close {
                width: 40px;
                height: 40px;
                font-size: 1.25rem;
            }

            .lightbox-prev {
                left: 1rem;
            }

            .lightbox-next {
                right: 1rem;
            }

            .lightbox-info {
                bottom: 1rem;
                padding: 0.75rem 1.5rem;
            }
        }