 :root {
            --gallery-gap: 20px;
            --frame-border-radius: 12px;
            --frame-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
            --border-color: #ffffff;
        }
 

        h2 {
            text-align: center;
            color: #333;
            margin-bottom: 30px;
        }

        /* --- 1. GALLERY GRID LAYOUT --- */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: var(--gallery-gap);
            max-width: 1200px;
            margin: 0 auto;
        }

        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            cursor: pointer;
            aspect-ratio: 4 / 3;
            background-color: #ddd;
        }

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

        /* Hover karne par image thodi zoom hogi */
        .gallery-item:hover img {
            transform: scale(1.08);
        }

        /* --- 2. MODAL WINDOW (LIGHTBOX) STYLES --- */
        .lightbox-modal {
            display: none; /* Default me hidden rahega */
            position: fixed;
            z-index: 2000;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.85); /* Dark transparent background */
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .lightbox-modal.show {
            display: flex;
            opacity: 1;
        }

        /* Image Premium Frame Container */
        .lightbox-frame {
            position: relative;
            max-width: 85%;
            max-height: 80vh;
            background-color: var(--border-color);
            padding: 10px; /* White frame effect */
            border-radius: var(--frame-border-radius);
            box-shadow: var(--frame-shadow);
            display: flex;
            justify-content: center;
            align-items: center;
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }

        .lightbox-modal.show .lightbox-frame {
            transform: scale(1);
        }

        .lightbox-img {
            max-width: 100%;
            max-height: 75vh;
            object-fit: contain;
            border-radius: calc(var(--frame-border-radius) - 4px);
            display: block;
        }

        /* --- 3. CONTROLS (NEXT, BACK, CLOSE) --- */
        .nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 2px solid white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: background 0.3s, transform 0.2s;
            user-select: none;
            z-index: 2100;
        }

        .nav-btn:hover {
            background: rgba(255, 255, 255, 0.9);
            color: #000;
        }

        .nav-btn:active {
            transform: translateY(-50%) scale(0.95);
        }

        .prev-btn { left: -70px; }
        .next-btn { right: -70px; }

        .close-btn {
            position: absolute;
            top: -50px;
            right: 0;
            background: none;
            border: none;
            color: white;
            font-size: 35px;
            cursor: pointer;
            line-height: 1;
        }

        .close-btn:hover {
            color: #ff3333;
        }

        /* --- RESPONSIVE ADJUSTMENTS --- */
        @media (max-width: 768px) {
            .nav-btn {
                width: 40px;
                height: 40px;
                font-size: 18px;
                background: rgba(0, 0, 0, 0.5);
                border-color: rgba(255,255,255,0.5);
            }
            .prev-btn { left: 10px; top: auto; bottom: -60px; transform: none; }
            .next-btn { right: 10px; top: auto; bottom: -60px; transform: none; }
            .prev-btn:active, .next-btn:active { transform: scale(0.95); }
            .lightbox-frame {
                max-width: 95%;
                margin-top: -40px;
            }
            .close-btn {
                top: -45px;
                right: 5px;
            }
        }