.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}
.gallery-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}
.gallery-category {
    font-size: 14px;
    opacity: 0.9;
}
.pagination-wrapper {
    margin-top: 50px;
}
.page-link {
    color: #333;
    border: 1px solid #ddd;
    margin: 0 2px;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.page-link:hover, .page-link.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
.filter-btn {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
    background: #007bff;
    color: white;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}