/* Gallery Specific Styles */
.gallery-hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.gallery-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.gallery-hero-subtitle {
    font-size: 1.5rem;
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.gallery-hero-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.gallery-quick-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.quick-stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #27ae60;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Filter Section */
.gallery-filter-section {
    background-color: #f8f9fa;
}

.filter-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Filter Buttons */
.filter-buttons {
    margin-bottom: 3rem;
}

.filter-btn {
    background: #fff;
    border: 2px solid #27ae60;
    color: #27ae60;
    padding: 12px 24px;
    margin: 0 10px 10px 0;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #27ae60;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

/* Gallery Grid */
.gallery-grid {
    margin-top: 2rem;
}

.gallery-item {
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(39, 174, 96, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.overlay-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.overlay-content h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Statistics Section */
.gallery-stats-section {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.stats-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.gallery-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    font-size: 1.2rem;
    color: #fff;
    background: rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gallery-stats-grid .stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.gallery-stats-grid .stat-card:hover {
    transform: translateY(-5px);
}

.gallery-stats-grid .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: 0.5rem;
}

.gallery-stats-grid .stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Recent Additions */
.recent-additions-section {
    background-color: #fff;
}

.recent-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.recent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.recent-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.recent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-card:hover .recent-image img {
    transform: scale(1.05);
}

.recent-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.recent-date {
    background: rgba(39, 174, 96, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.recent-content {
    padding: 1.5rem;
}

.recent-content h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.recent-content p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.recent-category {
    background: #e8f5e8;
    color: #27ae60;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Fancybox Customizations */
.fancybox__container {
    --fancybox-bg: rgba(24, 24, 27, 0.92);
}

.fancybox__toolbar button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.fancybox__toolbar button:hover {
    background: rgba(39, 174, 96, 0.8);
    border-color: #27ae60;
}

/* Loading Animation */
.gallery-item.loading {
    opacity: 0.5;
}

.gallery-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #27ae60;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery-hero-title {
        font-size: 3rem;
    }
    
    .gallery-image {
        height: 220px;
    }
}

@media (max-width: 992px) {
    .gallery-hero-section {
        padding: 60px 0;
    }
    
    .gallery-hero-title {
        font-size: 2.8rem;
    }
    
    .gallery-features {
        margin-top: 2rem;
    }
    
    .gallery-stats-grid .stat-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .gallery-hero-title {
        font-size: 2.5rem;
    }
    
    .gallery-hero-subtitle {
        font-size: 1.3rem;
    }
    
    .gallery-quick-stats {
        justify-content: center;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        margin: 0 5px 10px 0;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .gallery-features {
        align-items: center;
        text-align: center;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    .gallery-stats-grid .stat-number {
        font-size: 2rem;
    }
    
    .recent-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .gallery-hero-section {
        padding: 40px 0;
    }
    
    .gallery-hero-title {
        font-size: 2rem;
    }
    
    .gallery-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .gallery-quick-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .gallery-image {
        height: 180px;
    }
    
    .overlay-content {
        padding: 15px;
    }
    
    .overlay-icon {
        font-size: 1.5rem;
    }
    
    .overlay-content h5 {
        font-size: 1rem;
    }
    
    .gallery-stats-grid .stat-card {
        padding: 1rem;
    }
    
    .gallery-stats-grid .stat-number {
        font-size: 1.8rem;
    }
}

/* Print Styles */
@media print {
    .gallery-hero-section,
    .gallery-filter-section {
        break-inside: avoid;
    }
    
    .gallery-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .gallery-overlay {
        display: none;
    }
    
    .filter-buttons,
    .recent-additions-section {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .gallery-card {
        border: 2px solid #000;
    }
    
    .filter-btn {
        border-width: 3px;
    }
    
    .gallery-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .gallery-card,
    .gallery-image,
    .gallery-overlay,
    .filter-btn,
    .recent-card {
        transition: none;
    }
    
    .gallery-card:hover {
        transform: none;
    }
    
    .loading-spinner {
        animation: none;
    }
}