/* Gallery Specific Styles */

/* Gallery Hero */
.gallery-hero {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 80px;
}

.gallery-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.gallery-hero-content p {
    font-size: 1.3rem;
    color: #333;
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery Filter */
.gallery-filter {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

.filter-btn:hover,
.filter-btn.active {
    background: #FFD700;
    border-color: #FFD700;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.gallery-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    -webkit-backface-visibility: hidden; /* Improve performance on mobile */
    backface-visibility: hidden;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: #FFD700;
}

.gallery-info {
    padding: 1.5rem;
}

.gallery-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
}

.gallery-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.modal-info {
    padding: 2rem;
}

.modal-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
}

.modal-info p {
    color: #666;
    line-height: 1.6;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close:hover {
    background: rgba(0,0,0,0.8);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Active Navigation Link */
.nav-link.active {
    color: #FFD700;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
    background: #FFD700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-hero {
        padding: 6rem 0 3rem;
        margin-top: 70px;
    }
    
    .gallery-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .gallery-hero-content p {
        font-size: 1.1rem;
    }
    
    .gallery-filter {
        padding: 1.5rem 0;
    }
    
    .filter-buttons {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-width: 80px;
    }
    
    .gallery-section {
        padding: 3rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .gallery-info {
        padding: 1.2rem;
    }
    
    .gallery-info h3 {
        font-size: 1.2rem;
    }
    
    .gallery-info p {
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
    
    .modal-info h3 {
        font-size: 1.3rem;
    }
    
    .modal-info p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .gallery-hero {
        padding: 5rem 0 2rem;
        margin-top: 60px;
    }
    
    .gallery-hero-content h1 {
        font-size: 2rem;
    }
    
    .gallery-hero-content p {
        font-size: 1rem;
    }
    
    .gallery-filter {
        padding: 1rem 0;
    }
    
    .filter-buttons {
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    .gallery-section {
        padding: 2rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-image {
        height: 180px;
    }
    
    .gallery-info {
        padding: 1rem;
    }
    
    .gallery-info h3 {
        font-size: 1.1rem;
    }
    
    .gallery-info p {
        font-size: 0.85rem;
    }
    
    .modal-content {
        width: 98%;
        margin: 5% auto;
    }
    
    .modal-info {
        padding: 1rem;
    }
    
    .modal-info h3 {
        font-size: 1.2rem;
    }
    
    .modal-info p {
        font-size: 0.9rem;
    }
}
