/* Gallery Page Styles */

/* Hero section background */
.page-hero {
    /* Inherit standard hero styles from styles.css */
    /* Only set the page-specific background */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
                url('../images/heroes/hero-gallery.webp');
}

/* Gallery section styles */
.gallery-section {
    /* Using section-padding class from styles.css */
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.section-divider {
    height: 4px;
    width: 60px;
    background-color: #00A8C7;
    margin: 0 auto 20px;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* Gallery filter buttons */
.gallery-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: none;
    border: 2px solid #00A8C7;
    color: #00A8C7;
    padding: 8px 20px;
    margin: 0 5px 5px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background-color: rgba(0, 168, 199, 0.1);
}

.filter-btn.active {
    background-color: #00A8C7;
    color: white;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Gallery item */
.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

/* Image placeholder styling */
.image-placeholder {
    background-color: #f0f0f0;
    position: relative;
}

.image-placeholder.placeholder {
    background-color: #e0e0e0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Gallery caption */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.gallery-caption h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: white;
}

.gallery-caption p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    color: white;
}

/* Text center utility */
.text-center {
    text-align: center;
}

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .gallery-filter {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
        gap: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .gallery-filter::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    
    .filter-btn {
        padding: 6px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .gallery-filter {
        display: none;
    }
    
    .gallery-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .gallery-caption {
        position: static;
        transform: none;
        background: none;
        color: white;
        padding: 10px;
    }
    
    .gallery-caption h3,
    .gallery-caption p {
        color: white;
    }
} 