Y/* Gallery Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80') 
                no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 120px 20px;
    margin-top: 90px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Filter Buttons */
.gallery-filters {
    padding: 30px 0;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
}

.filter-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
    background: #2c3a4a;
    color: white;
    border-color: #2c3a4a;
}

/* Gallery Content */
.gallery-content {
    padding: 80px 0;
}

.gallery-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.gallery-intro h2 {
    font-size: 2.2rem;
    color: #2c3a4a;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.gallery-intro h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #e67e22;
    border-radius: 2px;
}

.gallery-intro p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 250px;
    background: #fff;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
}

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

.gallery-overlay h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
    font-weight: 600;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Call to Action Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3a4a 0%, #1a1f2b 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-section .btn {
    display: inline-block;
    background: #e67e22;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e67e22;
}

.cta-section .btn:hover {
    background: transparent;
    color: #e67e22;
}

/* Lightbox Styles */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

#lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    background: #1a1f2b;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    animation: lightboxFadeIn 0.4s ease-out;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#lightbox img {
    max-width: 70%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.lightbox-info {
    width: 30%;
    padding: 30px;
    color: #fff;
    display: flex;
    flex-direction: column;
    background: #2c3a4a;
    overflow: visible;
}

.lightbox-info h3 {
    font-size: 1.5rem;
    margin: 0 0 15px;
    color: #fff;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-info p {
    margin: 0 0 20px;
    color: #b0b9c5;
    line-height: 1.6;
    font-size: 1rem;
}

.lightbox-nav {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-nav span {
    color: #b0b9c5;
    font-size: 0.9rem;
}

#prev-btn,
#next-btn,
#close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#prev-btn:hover,
#next-btn:hover,
#close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

#close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

#close-btn:hover {
    background: #e74c3c;
}

/* Loading animation for images */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item.loading::before {
    opacity: 1;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive lightbox */
@media (max-width: 992px) {
    .lightbox-content {
        flex-direction: column;
        max-height: 90%;
    }
    
    #lightbox img {
        max-width: 100%;
        max-height: 50vh;
    }
    
    .lightbox-info {
        width: 100%;
        max-height: 40vh;
    }
}

/* Hover effects for gallery items */
.gallery-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover .gallery-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

/* Loading spinner for images */
.gallery-item img {
    transition: opacity 0.3s ease;
}

.gallery-item img.loading {
    opacity: 0;
}

.gallery-item img.loaded {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-hero {
        padding: 80px 20px;
    }
    
    .gallery-hero h1 {
        font-size: 2.2rem;
    }
    
    .gallery-grid .container {
        grid-template-columns: 1fr;
    }
}

/* Footer Styles */
.footer {
    background-color: #2c3a4a;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #ddd;
}
