/* Gallery Styles */

.gallery-filters {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0;
}

.filter-group select {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background-color: white;
    min-width: 150px;
}

.filter-group select:focus {
    border-color: #007bff;
    outline: none;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.photo-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.photo-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
    font-size: 0.9rem;
}

.photo-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.photo-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.photo-stats .stat-item i {
    font-size: 0.7rem;
}

.photo-stats .stat-item:nth-child(1) i {
    color: #ff6b6b;
}

.photo-stats .stat-item:nth-child(2) i {
    color: #4ecdc4;
}

.photo-stats .stat-item:nth-child(3) i {
    color: #45b7d1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.page-info {
    padding: 0 1rem;
    color: #666;
    font-weight: 500;
}

/* Recent Photos Section */
.recent-photos {
    background-color: white;
}

.recent-photos .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.recent-photos .photo-item img {
    height: 200px;
}

/* Loading Animation */
.photo-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.photo-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .filter-group select {
        width: 100%;
        min-width: auto;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .photo-item img {
        height: 200px;
    }
    
    .recent-photos .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .recent-photos .photo-item img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-item img {
        height: 250px;
    }
    
    .recent-photos .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .recent-photos .photo-item img {
        height: 200px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 0.5rem;
    }
}
