  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-color: #3E67A3;
            --primary-dark: #2a4c7a;
            --secondary-color: #03A180;
            --secondary-dark: #027a60;
            --accent-color: #BBE7F4;
            --light-color: #f8fafc;
            --dark-color: #1e293b;
            --text-color: #334155;
            --gray-light: #e2e8f0;
            --gray: #94a3b8;
            --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            --shadow-hover: 0 15px 40px rgba(62, 103, 163, 0.15);
            --transition: all 0.3s ease;
            --border-radius: 16px;
        }

        body {
            font-family: 'Tajawal', sans-serif;
            line-height: 1.8;
            color: var(--text-color);
            background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf2 100%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .main-content {
            flex: 1;
            max-width: 1400px;
            width: 100%;
            margin: 80px auto 40px;
            padding: 0 20px;
        }

        /* Header Section */
        .page-header {
            text-align: center;
            margin-bottom: 50px;
            position: relative;
        }

        .page-header h1 {
            color: var(--primary-color);
            font-size: 2.8rem;
            font-weight: 800;
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }

        .page-header h1 i {
            color: var(--secondary-color);
            margin-left: 10px;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        .page-header h1::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            border-radius: 2px;
        }

        .page-header p {
            color: var(--gray);
            font-size: 1.2rem;
            max-width: 600px;
            margin: 25px auto 0;
        }

        /* Gallery Stats */
        .gallery-stats {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-top: 30px;
            flex-wrap: wrap;
        }

        .stat-badge {
            background: white;
            padding: 10px 25px;
            border-radius: 50px;
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.1rem;
            border: 1px solid rgba(62, 103, 163, 0.1);
        }

        .stat-badge i {
            color: var(--primary-color);
            font-size: 1.2rem;
        }

        .stat-badge span {
            font-weight: 700;
            color: var(--secondary-color);
            margin-left: 5px;
        }

        /* Gallery Filter */
        .gallery-filter {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .filter-btn {
            padding: 10px 25px;
            border: 2px solid var(--gray-light);
            border-radius: 50px;
            background: white;
            color: var(--text-color);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .filter-btn i {
            color: var(--primary-color);
        }

        .filter-btn:hover,
        .filter-btn.active {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border-color: transparent;
        }

        .filter-btn:hover i,
        .filter-btn.active i {
            color: white;
        }

        /* Gallery Grid - Masonry Style */
        .gallery-grid {
            column-count: 4;
            column-gap: 20px;
            margin-top: 30px;
        }

        /* Gallery Item */
        .gallery-item {
            break-inside: avoid;
            margin-bottom: 20px;
            position: relative;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            cursor: pointer;
            background: white;
        }

        .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        .image-wrapper {
            position: relative;
            overflow: hidden;
            aspect-ratio: auto;
        }

        .gallery-item img {
            width: 100%;
            height: auto;
            display: block;
            transition: var(--transition);
        }

        .gallery-item:hover img {
            transform: scale(1.05);
        }

        /* Image Overlay */
        .image-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
            color: white;
            padding: 30px 20px 20px;
            transform: translateY(100%);
            transition: var(--transition);
        }

        .gallery-item:hover .image-overlay {
            transform: translateY(0);
        }

        .overlay-title {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: white;
        }

        .overlay-meta {
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 0.85rem;
            margin-bottom: 10px;
        }

        .overlay-meta span {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .overlay-meta i {
            color: var(--secondary-color);
        }

        .overlay-description {
            font-size: 0.9rem;
            opacity: 0.9;
            margin-bottom: 15px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* Image Badges */
        .image-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.95);
            padding: 5px 12px;
            border-radius: 30px;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--primary-color);
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            gap: 5px;
            z-index: 2;
            backdrop-filter: blur(5px);
        }

        .image-badge i {
            color: var(--secondary-color);
        }

        .views-badge {
            position: absolute;
            bottom: 15px;
            left: 15px;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            color: white;
            padding: 5px 12px;
            border-radius: 30px;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 5px;
            z-index: 2;
        }

        .views-badge i {
            color: var(--secondary-color);
        }

        .views-badge.high-views {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
        }

        /* Lightbox Modal - محسن لتكبير الصورة */
        .lightbox-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.98);
            z-index: 10000;
            overflow: hidden;
            backdrop-filter: blur(10px);
        }

        .lightbox-content {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 60px;
        }

        .lightbox-close {
            position: absolute;
            top: 25px;
            left: 25px;
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.15);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            color: white;
            font-size: 2rem;
            cursor: pointer;
            transition: var(--transition);
            z-index: 10001;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
        }

        .lightbox-close:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(90deg) scale(1.1);
            border-color: rgba(255, 255, 255, 0.5);
        }

        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 60px;
            height: 60px;
            background: rgba(255, 255, 255, 0.15);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            color: white;
            font-size: 2rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10001;
            backdrop-filter: blur(5px);
        }

        .lightbox-nav:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-50%) scale(1.1);
            border-color: rgba(255, 255, 255, 0.5);
        }

        .lightbox-prev {
            right: 30px;
        }

        .lightbox-next {
            left: 30px;
        }

        .lightbox-image-container {
            max-width: 95%;
            max-height: 85vh;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .lightbox-image-wrapper {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            padding: 10px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        }

        .lightbox-image-wrapper img {
            max-width: 100%;
            max-height: 70vh;
            object-fit: contain;
            border-radius: 12px;
            cursor: zoom-in;
            transition: transform 0.3s ease;
        }

        .lightbox-image-wrapper img.zoomed {
            transform: scale(1.5);
            cursor: zoom-out;
        }

        .lightbox-info {
            width: 100%;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            color: white;
            padding: 20px 30px;
            border-radius: 50px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .lightbox-title-section {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .lightbox-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: white;
        }

        .lightbox-description {
            font-size: 0.95rem;
            color: rgba(255, 255, 255, 0.8);
            max-width: 600px;
        }

        .lightbox-stats {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .lightbox-views {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.15);
            padding: 8px 15px;
            border-radius: 30px;
            font-size: 1rem;
        }

        .lightbox-views i {
            color: var(--secondary-color);
        }

        .lightbox-date {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.15);
            padding: 8px 15px;
            border-radius: 30px;
            font-size: 1rem;
        }

        .lightbox-date i {
            color: var(--primary-color);
        }

        /* Zoom Controls */
        .zoom-controls {
            position: absolute;
            bottom: 20px;
            right: 20px;
            display: flex;
            gap: 10px;
            z-index: 10002;
        }

        .zoom-btn {
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, 0.15);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
        }

        .zoom-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

        /* Image Counter */
        .image-counter {
            position: absolute;
            top: 25px;
            right: 25px;
            background: rgba(255, 255, 255, 0.15);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 8px 20px;
            border-radius: 30px;
            font-size: 1rem;
            font-weight: 600;
            backdrop-filter: blur(5px);
            z-index: 10001;
        }

        /* No Images Section */
        .no-images-container {
            text-align: center;
            background: white;
            border-radius: var(--border-radius);
            padding: 70px 40px;
            box-shadow: var(--shadow);
            border: 1px solid rgba(62, 103, 163, 0.1);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            background: rgba(255, 255, 255, 0.98);
            max-width: 600px;
            width: 100%;
            margin: 40px auto;
        }

        .no-images-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        }

        .icon-wrapper {
            width: 130px;
            height: 130px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 30px;
            box-shadow: 0 15px 30px rgba(3, 161, 128, 0.3);
            animation: float 3s ease-in-out infinite;
        }

        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }

        .icon-wrapper i {
            font-size: 65px;
            color: white;
        }

        .no-images-container h2 {
            color: var(--primary-color);
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .no-images-container .message {
            color: var(--text-color);
            font-size: 1.3rem;
            margin-bottom: 20px;
            line-height: 1.8;
        }

        .no-images-container .sub-message {
            color: var(--gray);
            font-size: 1.1rem;
            margin-bottom: 35px;
        }

        /* Back Button */
        .back-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 15px 45px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            transition: var(--transition);
            border: none;
            cursor: pointer;
            margin-top: 30px;
            box-shadow: 0 4px 15px rgba(62, 103, 163, 0.3);
        }

        .back-btn:hover {
            background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
            transform: scale(1.05);
            box-shadow: 0 8px 25px rgba(3, 161, 128, 0.4);
        }

        .back-btn i {
            font-size: 1.1rem;
            transition: transform 0.3s ease;
        }

        .back-btn:hover i {
            transform: translateX(-5px);
        }

        /* Loading State */
        .loading {
            text-align: center;
            padding: 60px;
            display: none;
        }

        .loading i {
            font-size: 3rem;
            color: var(--primary-color);
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .gallery-grid {
                column-count: 3;
            }
        }

        @media (max-width: 992px) {
            .main-content {
                margin: 100px auto 30px;
            }

            .gallery-grid {
                column-count: 2;
            }
            
            .lightbox-content {
                padding: 40px;
            }
            
            .lightbox-info {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }
            
            .lightbox-title-section {
                text-align: center;
            }
        }

        @media (max-width: 768px) {
            .main-content {
                margin: 80px auto 20px;
                padding: 0 15px;
            }

            .page-header h1 {
                font-size: 2.2rem;
            }

            .gallery-grid {
                column-count: 1;
                column-gap: 15px;
            }

            .gallery-item {
                max-width: 500px;
                margin: 0 auto 20px;
            }

            .lightbox-content {
                padding: 20px;
            }

            .lightbox-nav {
                width: 40px;
                height: 40px;
                font-size: 1.5rem;
            }

            .lightbox-prev {
                right: 10px;
            }

            .lightbox-next {
                left: 10px;
            }

            .lightbox-info {
                flex-direction: column;
                gap: 10px;
                text-align: center;
                border-radius: 20px;
                padding: 15px;
            }

            .lightbox-stats {
                flex-wrap: wrap;
                justify-content: center;
            }

            .image-counter {
                top: 15px;
                right: 15px;
                padding: 5px 15px;
                font-size: 0.9rem;
            }

            .no-images-container {
                padding: 50px 25px;
            }

            .no-images-container h2 {
                font-size: 1.8rem;
            }

            .icon-wrapper {
                width: 110px;
                height: 110px;
            }

            .icon-wrapper i {
                font-size: 55px;
            }
        }

        @media (max-width: 480px) {
            .main-content {
                margin: 70px auto 15px;
                padding: 0 10px;
            }

            .page-header h1 {
                font-size: 1.8rem;
            }

            .stat-badge {
                padding: 8px 20px;
                font-size: 1rem;
            }

            .filter-btn {
                padding: 8px 20px;
                font-size: 0.9rem;
            }

            .no-images-container {
                padding: 40px 20px;
            }

            .no-images-container h2 {
                font-size: 1.5rem;
            }

            .icon-wrapper {
                width: 90px;
                height: 90px;
                margin-bottom: 20px;
            }

            .icon-wrapper i {
                font-size: 45px;
            }

            .message {
                font-size: 1.1rem;
            }

            .back-btn {
                padding: 12px 35px;
                font-size: 1rem;
            }
            
            .lightbox-stats {
                flex-direction: column;
                gap: 8px;
            }
        }

        /* Animation for gallery items */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .gallery-item {
            animation: fadeIn 0.5s ease forwards;
        }

        .gallery-item:nth-child(1) { animation-delay: 0.1s; }
        .gallery-item:nth-child(2) { animation-delay: 0.2s; }
        .gallery-item:nth-child(3) { animation-delay: 0.3s; }
        .gallery-item:nth-child(4) { animation-delay: 0.4s; }
        .gallery-item:nth-child(5) { animation-delay: 0.5s; }
        .gallery-item:nth-child(6) { animation-delay: 0.6s; }
        .gallery-item:nth-child(7) { animation-delay: 0.7s; }
        .gallery-item:nth-child(8) { animation-delay: 0.8s; }
        .gallery-item:nth-child(9) { animation-delay: 0.9s; }
        .gallery-item:nth-child(10) { animation-delay: 1s; }