/* Portfolio Gallery Page Styles */

/* Gallery Hero */
.gallery-hero {
    background: linear-gradient(rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.9)),
                url('https://images.unsplash.com/photo-1516450360452-9312f5e86fc7?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') no-repeat center center/cover;
    padding: 120px 0 80px;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.gallery-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 50px;
    color: #ddd;
}

.gallery-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    padding: 20px;
}

.stat i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: white;
}

.stat p {
    color: #bbb;
    font-size: 0.9rem;
}

/* Gallery Filter */
.gallery-filter {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 30px 0;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3);
}

/* Gallery Grid */
.gallery-main {
    padding: 60px 0;
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
}

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

.gallery-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: var(--transition);
}

/* Specific fix for staff image in gallery - show faces */
.gallery-item:nth-child(8) .gallery-image img,
.gallery-item:nth-child(3) .gallery-image img {
    object-position: center 25% !important;
}

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

.gallery-content {
    padding: 25px;
}

.gallery-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.event-type {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.gallery-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-meta i {
    color: var(--primary);
}

.view-details {
    display: block;
    width: 100%;
    padding: 12px;
    background: #f8f9fa;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0 0 15px 15px;
    text-align: center;
}

.view-details:hover {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    background-color: white;
    margin: 5% auto;
    width: 90%;
    max-width: 1000px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.modal-image-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    height: 70vh;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-info {
    padding: 40px;
    background: white;
    overflow-y: auto;
}

.image-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.image-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.event-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.event-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #555;
}

.event-details i {
    color: var(--primary);
    width: 20px;
}

.modal-navigation {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
}

.modal-nav-btn {
    padding: 12px 25px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3);
}

/* Load More Button */
.gallery-load-more {
    text-align: center;
    margin-top: 50px;
}

.gallery-load-more .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Active state for gallery nav */
.nav-links li a.active {
    color: var(--accent);
}

.nav-links li a.active:after {
    width: 100%;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .gallery-hero h1 {
        font-size: 3rem;
    }
    
    .gallery-stats {
        gap: 30px;
    }
    
    .modal-image-container {
        grid-template-columns: 1fr;
        height: 80vh;
    }
    
    .modal-image-container img {
        height: 40vh;
    }
    
    .image-info {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        padding: 100px 0 60px;
    }
    
    .gallery-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .gallery-stats {
        gap: 20px;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .gallery-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .gallery-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .image-modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .modal-image-container {
        height: 100vh;
    }
    
    .modal-image-container img {
        height: 40vh;
    }
    
    .image-info {
        height: 60vh;
        overflow-y: auto;
    }
}
/* Social Media Link Styles - Consistent with main site */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
  }
  
  .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
  }
  
  .social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3);
  }
  
  .whatsapp-link {
    background: linear-gradient(to right, #25d366, #128c7e) !important;
  }
  
  .social-link i {
    font-size: 1.2rem;
  }
  
  /* Gallery Hero Social Section */
  .gallery-social {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .gallery-social h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
  }
  
  .gallery-social .social-links {
    justify-content: center;
  }
  
  .gallery-social .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  /* Footer Social Links */
  .footer-col .social-links {
    justify-content: flex-start;
    margin-top: 15px;
  }
  
  /* Mobile Responsive */
  @media (max-width: 768px) {
    .footer-col .social-links {
      justify-content: center;
    }
    
    .social-link {
      width: 35px;
      height: 35px;
    }
    
    .social-link i {
      font-size: 1rem;
    }
  }