
        .custom-gallery-modal {
            position: fixed;
            top: 0; left: 0;
            width: 100vw; height: 100vh;
            background: rgba(10, 10, 10, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            z-index: 999999;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease;
            padding: 40px;
            box-sizing: border-box;
        }
        .custom-gallery-modal.active {
            opacity: 1; pointer-events: all;
        }
        .custom-gallery-content {
            width: 100%; max-width: 1200px;
            height: 100%; max-height: 90vh;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 25px 50px rgba(0,0,0,0.5);
            border-radius: 24px;
            padding: 40px;
            position: relative;
            overflow-y: auto;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 24px;
            transform: scale(0.95) translateY(20px);
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            box-sizing: border-box;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
        }
        .custom-gallery-content::-webkit-scrollbar { width: 8px; }
        .custom-gallery-content::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.3); border-radius: 10px; }
        .custom-gallery-modal.active .custom-gallery-content {
            transform: scale(1) translateY(0);
        }
        .gallery-close-btn {
            position: absolute;
            top: 24px; right: 24px;
            width: 44px; height: 44px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex; justify-content: center; align-items: center;
            color: white; font-size: 28px; cursor: pointer;
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
            z-index: 10;
        }
        .gallery-close-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(90deg);
        }
        .gallery-item {
            width: 100%; aspect-ratio: 1 / 1;
            object-fit: cover;
            border-radius: 16px; cursor: pointer;
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        .gallery-item:hover {
            transform: translateY(-8px) scale(1.03);
            box-shadow: 0 15px 30px rgba(0,0,0,0.5);
            border-color: rgba(255, 255, 255, 0.2);
        }
        .gallery-lightbox {
            position: fixed;
            top: 0; left: 0; width: 100vw; height: 100vh;
            background: rgba(0,0,0,0.95);
            z-index: 9999999;
            display: flex; justify-content: center; align-items: center;
            opacity: 0; pointer-events: none;
            transition: opacity 0.3s ease;
        }
        .gallery-lightbox.active {
            opacity: 1; pointer-events: all;
        }
        .gallery-lightbox img {
            max-width: 90%; max-height: 90vh;
            border-radius: 12px;
            box-shadow: 0 0 50px rgba(0,0,0,0.8);
            transform: scale(0.95);
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            object-fit: contain;
        }
        .gallery-lightbox.active img {
            transform: scale(1);
        }
        .gallery-lightbox-close {
            position: absolute;
            top: 30px; right: 40px;
            color: white; font-size: 40px; cursor: pointer;
            opacity: 0.7; transition: opacity 0.3s ease;
        }
        .gallery-lightbox-close:hover { opacity: 1; }
        .gallery-title {
            position: absolute;
            top: 30px; left: 40px;
            color: white; font-size: 24px; font-weight: 600;
            font-family: 'Plus Jakarta Sans', sans-serif;
            pointer-events: none;
            z-index: 10;
        }
        @media (max-width: 768px) {
            .custom-gallery-content {
                padding: 20px; padding-top: 80px;
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
                gap: 16px;
            }
            .custom-gallery-modal { padding: 10px; }
            .gallery-title { top: 20px; left: 20px; font-size: 20px; }
            .gallery-close-btn { top: 15px; right: 15px; width: 36px; height: 36px; }
        }
   