/* استایل‌های اصلی گالری */
.gallery-manager-container {
    margin: 20px 0;
}

/* استایل فیلتر دسته‌بندی */
.gallery-filter .nav-pills .nav-link {
    background-color: #f8f9fa;
    color: #495057;
    margin: 0 5px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.gallery-filter .nav-pills .nav-link.active {
    background-color: #007bff;
    color: white;
}

.gallery-filter .nav-pills .nav-link:hover:not(.active) {
    background-color: #e9ecef;
}

/* استایل کارت گالری */
.gallery-card {
    /*background: white;*/
    border-radius: 10px;
    overflow: hidden;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* استایل تصویر با افکت ورق‌های کاغذ */
.gallery-thumbnail {
    position: relative;
    height: 250px;
    overflow: hidden;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
}

.stacked-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.stacked-image {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stacked-image-1 {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    transform: rotate(2deg);
    z-index: 1;
}

.stacked-image-2 {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    transform: rotate(-1deg);
    z-index: 2;
}

.stacked-image-3 {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    transform: rotate(3deg);
    z-index: 3;
}

.main-gallery-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    z-index: 4;
    transition: transform 0.3s ease;
    width: 230px;
    height: 210px !important;
}

.gallery-card:hover .main-gallery-image {
    transform: scale(1.05);
}

/* استایل اطلاعات گالری */
/*.gallery-info {*/
/*    background: white;*/
/*}*/

.gallery-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.gallery-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gallery-title a:hover {
    color: #007bff;
}

.gallery-categories .badge {
    font-size: 0.75rem;
    font-weight: normal;
}

.gallery-count {
    font-size: 0.85rem;
}

/* استایل لایت‌باکس سفارشی */
.lb-data .lb-caption {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}

/* استایل صفحه‌بندی */
.gallery-manager-pagination {
    clear: both;
}

.gallery-load-more {
    padding: 10px 30px;
    font-size: 1rem;
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.gallery-load-more:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* استایل گالری تکی */
.single-gallery-display {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.single-gallery-display h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

.single-gallery-images a {
    display: block;
    overflow: hidden;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.single-gallery-images a:hover {
    transform: scale(1.03);
}

.single-gallery-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* استایل واکنش‌گرا */
@media (max-width: 768px) {
    .gallery-thumbnail {
        height: 200px;
    }
    
    .gallery-title {
        font-size: 1rem;
    }
    
    .single-gallery-images img {
        height: 120px;
    }
}

@media (max-width: 576px) {
    .gallery-thumbnail {
        height: 180px;
    }
    
    .gallery-filter .nav {
        flex-wrap: wrap;
    }
    
    .gallery-filter .nav-item {
        margin-bottom: 5px;
    }
    
    .single-gallery-images img {
        height: 100px;
    }
}