/* ============================================ */
/* استایل‌های اختصاصی صفحه گالری
/* ============================================ */

/* ===== صفحه گالری ===== */
.gallery-page {
    width: 100%;
    background: var(--bg-dark, #0D0F12);
}

/* ===== بنر بالایی ===== */
.gallery-banner {
    height: 30vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: url('../assets/images/slider/1.webp');
    background-size: cover;
    background-position: center 115%;
    background-attachment: fixed;
}

.gallery-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 35%, rgba(0,0,0,0.5) 40%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-indent: 0 !important;
    color: white;
}

.banner-content p {
    font-size: 1rem;
    opacity: 0.8;
    color: #ccc;
}

/* ===== محتوای اصلی گالری ===== */
.gallery-container {
    display: flex;
    min-height: calc(80vh - 70px);
    background: #0D0F12;
}

/* ===== منوی عمودی سمت چپ ===== */
.gallery-sidebar {
    width: 25vw;
    background: rgba(10, 12, 16, 0.95);
    border-left: 1px solid rgba(255,255,255,0.05);
    padding: 40px 20px;
    position: sticky;
    top: 0;
    height: 80vh;
    overflow-y: auto;
}

.gallery-menu h3 {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-indent: 0 !important;
    color: #9e7a5c;
}

.gallery-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-menu li {
    margin-bottom: 15px;
}

.gallery-cat {
    width: 100%;
    text-align: right;
    background: transparent;
    border: none;
    color: #cccccc;
    font-size: 1rem;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    border-radius: 8px;
}

.gallery-cat:hover {
    background: rgba(158, 122, 92, 0.2);
    color: #9e7a5c;
    padding-right: 25px;
}

.gallery-cat.active {
    background: #9e7a5c;
    color: #1a1a1a;
    font-weight: 500;
}

/* ===== گالری سمت راست ===== */
.gallery-main {
    width: 75vw;
    padding: 30px;
    overflow-y: auto;
    height: 80vh;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.gallery-item .overlay span {
    color: white;
    font-size: 0.85rem;
}

.no-images {
    text-align: center;
    padding: 50px;
    color: #aaa;
    font-size: 1.1rem;
}

/* ===== لایت‌باکس ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.1);
    color: #9e7a5c;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #9e7a5c;
    color: #1a1a1a;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.6);
    padding: 8px 16px;
    border-radius: 20px;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    .gallery-sidebar {
        width: 30vw;
    }
    .gallery-main {
        width: 70vw;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        flex-direction: column;
    }
    
    .gallery-sidebar {
        width: 100%;
        height: auto;
        padding: 20px;
        position: relative;
    }
    
    .gallery-menu ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .gallery-menu li {
        margin-bottom: 0;
    }
    
    .gallery-cat {
        width: auto;
        padding: 8px 16px;
    }
    
    .gallery-cat:hover {
        padding-right: 16px;
    }
    
    .gallery-main {
        width: 100%;
        height: auto;
        padding: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .gallery-banner {
        height: 25vh;
        min-height: 200px;
    }
    
    .banner-content h1 {
        font-size: 1.8rem;
    }
    
    .banner-content p {
        font-size: 0.9rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-main {
        padding: 15px;
    }
    
    .gallery-banner {
        height: 20vh;
        min-height: 150px;
    }
    
    .banner-content h1 {
        font-size: 1.4rem;
    }
    
    .banner-content p {
        font-size: 0.8rem;
    }
}


footer .copyright a {
    text-decoration: none;
    transition: 0.3s;
}
footer .copyright a:hover {
    color: rgb(123, 141, 212);
    
}