/* Gallery Page Specific Styles */

/* Gallery Filters */
.gallery-filters {
    margin-bottom: 2rem;
}

.filter-btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Gallery Cards */
.gallery-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

/* Gallery Images - No Cropping, Natural Display */
.gallery-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    /* Remove fixed aspect ratio to allow natural image proportions */
}

.gallery-image img {
    width: 100%;
    height: auto; /* Let images maintain their natural aspect ratio */
    display: block;
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.02); /* Subtle hover effect */
}

/* Gallery Captions */
.gallery-caption {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-caption h5 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.gallery-caption p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Gallery CTA Section */
.gallery-cta {
    background: linear-gradient(135deg, var(--light-gray) 0%, white 100%);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.gallery-cta h3 {
    color: var(--primary-blue);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Gallery Item Animations */
.gallery-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    margin-bottom: 2rem; /* Add consistent spacing between items */
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }

/* Filter Animation */
.gallery-item.filtered {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.gallery-item.show {
    opacity: 1;
    transform: scale(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-filters {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
    
    .gallery-caption {
        padding: 1rem;
    }
    
    .gallery-caption h5 {
        font-size: 1rem;
    }
    
    .gallery-caption p {
        font-size: 0.8rem;
    }
    
    .gallery-cta {
        padding: 2rem 1.5rem;
    }
    
    .gallery-cta h3 {
        font-size: 1.5rem;
    }
    
    .gallery-item {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    .gallery-card {
        margin-bottom: 0;
    }
    
    .gallery-filters .btn {
        width: calc(50% - 0.5rem);
        margin: 0.25rem;
    }
}

/* Loading Animation */
.gallery-loading {
    text-align: center;
    padding: 2rem;
}

.gallery-loading .spinner-border {
    color: var(--primary-blue);
}

/* Empty State */
.gallery-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-gray);
}

.gallery-empty i {
    font-size: 4rem;
    color: var(--light-gray);
    margin-bottom: 1rem;
}

/* Accessibility */
.gallery-card:focus-within {
    outline: 3px solid var(--accent-red);
    outline-offset: 2px;
}

.filter-btn:focus {
    outline: 3px solid var(--accent-red);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .gallery-filters,
    .gallery-cta {
        display: none;
    }
    
    .gallery-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
    }
    
    .gallery-image img {
        max-height: 300px;
        object-fit: contain;
    }
} 