/* Gallery Pagination Styles */
.gallery-pagination {
    margin-top: 3rem;
    padding: 2rem 0;
}

.gallery-pagination .pagination {
    justify-content: center;
    margin: 0;
}

.gallery-pagination .page-link {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.75rem 1rem;
    margin: 0 3px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 45px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-pagination .page-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #007bff;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.gallery-pagination .page-item.disabled .page-link {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.gallery-pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Pagination Info */
.gallery-pagination-info {
    text-align: center;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .gallery-pagination .page-link {
        padding: 0.5rem 0.75rem;
        margin: 0 2px;
        min-width: 40px;
        font-size: 0.9rem;
    }
    
    .gallery-pagination .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .gallery-pagination .page-link {
        padding: 0.4rem 0.6rem;
        margin: 0 1px;
        min-width: 35px;
        font-size: 0.8rem;
    }
}

/* Loading Animation for Pagination */
.gallery-pagination.loading .page-link {
    opacity: 0.6;
    pointer-events: none;
}

.gallery-pagination.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pagination Navigation Arrows */
.gallery-pagination .page-link[aria-label="Previous"],
.gallery-pagination .page-link[aria-label="Next"] {
    font-weight: bold;
    font-size: 1.1rem;
}

.gallery-pagination .page-link[aria-label="Previous"]:before {
    content: '←';
    margin-right: 0.25rem;
}

.gallery-pagination .page-link[aria-label="Next"]:after {
    content: '→';
    margin-left: 0.25rem;
}

/* Pagination Dots */
.gallery-pagination .page-link:not([aria-label]):not([aria-label="Previous"]):not([aria-label="Next"]) {
    position: relative;
}

.gallery-pagination .page-link:not([aria-label]):not([aria-label="Previous"]):not([aria-label="Next"]):hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Custom Pagination Container */
.gallery-pagination-container {
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
