/* ============================================
   ГАРДЕРОБНЫЕ СИСТЕМЫ - ГАЛЕРЕЯ
   ============================================ */

.garderob-gallery-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: none;
    /* По умолчанию скрыты */
    animation: fadeIn 0.5s ease-in-out;
    position: relative;
    /* Для абсолютного позиционирования кнопок */
}

.garderob-gallery-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-category-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 1rem;
}

.portfolio-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--bg-gradient-1);
    border-radius: 2px;
}

.garderob-main-image {
    width: 100%;
    height: 840px;
    /* Увеличено на 40% (было 600px) */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-bottom: 3rem;
    background: var(--primary-dark);
    position: relative;
}

.garderob-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.garderob-main-image img:hover {
    opacity: 0.9;
}

/* Горизонтальная прокручиваемая лента */
.garderob-scroll-gallery {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Кнопки навигации - позиционированы относительно секции */
.scroll-nav-btn {
    position: absolute;
    top: 50%;
    /* Центр главной картинки */
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.4);
    color: var(--accent);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    padding: 0;
    padding-bottom: 4px;
    /* Визуальная компенсация для символа */
    z-index: 100;
}

.scroll-nav-prev {
    left: -30px;
    /* Слева от контейнера */
}

.scroll-nav-next {
    right: -30px;
    /* Справа от контейнера */
}

.scroll-nav-btn:hover {
    background: rgba(212, 175, 55, 0.4);
    border-color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.scroll-nav-btn:active {
    transform: scale(0.95);
}

.scroll-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.scroll-nav-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.garderob-scroll-container {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.garderob-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.garderob-scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.garderob-scroll-container::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.garderob-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

.garderob-scroll-item {
    flex: 0 0 auto;
    width: 300px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    opacity: 0.7;
}

.garderob-scroll-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-xl);
    opacity: 1;
    z-index: 10;
}

.garderob-scroll-item.active {
    opacity: 1;
    border: 3px solid var(--accent);
    transform: scale(1.05);
}

.garderob-scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.garderob-scroll-item:hover img {
    transform: scale(1.1);
}

/* ============================================
   LIGHTBOX
   ============================================ */

.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    z-index: 10001;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxFadeIn 0.4s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-caption {
    margin-top: 1.5rem;
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
}

.lightbox-caption #lightbox-counter {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 10002;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    line-height: 1;
    padding: 0;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10002;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 4rem;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    line-height: 1;
    padding: 0;
    font-weight: 300;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-category-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .garderob-main-image {
        height: 350px;
        /* Reduced from 560px */
        border-radius: 12px;
        margin-bottom: 2rem;
    }

    .garderob-scroll-item {
        width: 180px;
        /* Reduced from 250px */
        height: 120px;
        /* Reduced from 170px */
    }

    .garderob-scroll-container {
        gap: 0.8rem;
    }

    /* Кнопки навигации на мобильных */
    .scroll-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .scroll-nav-prev {
        left: 0px;
    }

    .scroll-nav-next {
        right: 0px;
    }

    .garderob-scroll-gallery {
        gap: 0.3rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 2.5rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-content img {
        max-height: 75vh;
        max-width: 95vw;
        object-fit: contain;
    }

    .lightbox-caption {
        font-size: 0.85rem;
        margin-top: 1rem;
        padding: 0 1.5rem;
        text-align: center;
    }
}