/* ==================== کارت‌های گالری ==================== */

.modern-gallery-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--color-set-one-1);
}


/* ==================== تصویر ==================== */

.image-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.modern-gallery-card:hover .image-wrapper img {
    transform: scale(1.08);
}


/* ==================== Overlay ==================== */

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
}

.modern-gallery-card:hover .gallery-overlay {
    opacity: 1;
    visibility: visible;
}

.overlay-content i {
    color: var(--color-set-one-1);
    font-size: 28px;
    background: #fff;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: scale(0.5);
    transition: 0.4s ease;
}

.modern-gallery-card:hover .overlay-content i {
    transform: scale(1);
}


/* ==================== متن کارت ==================== */

.gallery-info {
    padding: 20px;
    text-align: center;
    background: #fff;
    flex-grow: 1;
}

.gallery-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.modern-gallery-card:hover .gallery-title {
    color: var(--color-set-one-1);
}

.gallery-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==================== صفحه‌بندی ==================== */

.custom-pagination .page-link {
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    line-height: 40px;
    padding: 0;
    margin: 0 5px;
    border-radius: 50%;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.custom-pagination .page-item.active .page-link,
.custom-pagination .page-link:hover {
    background-color: var(--color-set-one-1);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}


/* ==================== باکس خالی گالری ==================== */

.empty-gallery-box {
    border-radius: 15px;
}

.empty-gallery-box .icon {
    font-size: 40px;
    margin-bottom: 10px;
    color: var(--color-set-one-1);
}
