body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f9f9f9;
        }
        
        /* Gallery Header */
        .gallery-header {
            background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.9)), 
                        url('https://source.unsplash.com/random/1920x600/?university,campus');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 120px 0 80px;
            text-align: center;
            margin-bottom: 50px;
        }
        
        .gallery-header h1 {
            font-weight: 700;
            font-size: 3rem;
            margin-bottom: 20px;
        }
        
        .gallery-header p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto;
        }
        
        /* Gallery Navigation */
        .gallery-nav {
            margin-bottom: 40px;
        }
        
        .gallery-nav .nav-pills .nav-link {
            color: var(--dark-color);
            font-weight: 500;
            margin: 0 5px;
            border-radius: 30px;
            padding: 8px 20px;
        }
        
        .gallery-nav .nav-pills .nav-link.active {
            background-color: var(--primary-color);
            color: white;
        }
        
        /* Gallery Grid */
        .gallery-container {
            column-count: 3;
            column-gap: 20px;
        }
        
        @media (max-width: 992px) {
            .gallery-container {
                column-count: 2;
            }
        }
        
        @media (max-width: 576px) {
            .gallery-container {
                column-count: 1;
            }
        }
        
        .gallery-item {
            break-inside: avoid;
            margin-bottom: 20px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            cursor: pointer;
            background: white;
        }
        
        .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }
        
        .gallery-img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.5s;
        }
        
        .gallery-item:hover .gallery-img {
            transform: scale(1.05);
        }
        
        .gallery-caption {
            padding: 15px;
        }
        
        .gallery-caption h5 {
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 5px;
        }
        
        .gallery-caption p {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 0;
        }
        
        /* Gallery Modal */
        .gallery-modal .modal-dialog {
            max-width: 90%;
            max-height: 90vh;
        }
        
        .gallery-modal .modal-content {
            background: transparent;
            border: none;
        }
        
        .gallery-modal .modal-body {
            padding: 0;
            text-align: center;
            position: relative;
        }
        
        .gallery-modal-img {
            max-height: 80vh;
            width: auto;
            max-width: 100%;
            border-radius: 5px;
        }
        
        .gallery-modal-caption {
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 15px;
            border-radius: 5px;
            margin-top: 15px;
            max-width: 80%;
            margin-left: auto;
            margin-right: auto;
        }
        
        .gallery-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            opacity: 0.7;
            transition: all 0.3s;
        }
        
        .gallery-nav-btn:hover {
            opacity: 1;
            background: var(--primary-color);
        }
        
        .gallery-prev {
            left: 15px;
        }
        
        .gallery-next {
            right: 15px;
        }
        
        .gallery-close {
            position: absolute;
            top: 15px;
            right: 15px;
            color: white;
            background: rgba(0, 0, 0, 0.5);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 1.2rem;
            z-index: 10;
            opacity: 0.7;
            transition: all 0.3s;
        }
        
        .gallery-close:hover {
            opacity: 1;
            background: var(--secondary-color);
        }
        
        /* Back to Gallery Button */
        .back-to-gallery {
            margin: 40px 0;
            text-align: center;
        }
        
        /* Footer */
        footer {
            background-color: var(--primary-color);
            color: white;
            padding: 60px 0 20px;
            margin-top: 80px;
        }