/**
 * GG Showroom Gallery Styles
 */

.gg-showroom-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Section */
.gg-showroom-section {
    margin-bottom: 50px;
}

.gg-showroom-section:last-child {
    margin-bottom: 0;
}

/* Section Title */
.gg-showroom-section-title {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.gg-showroom-section-title::before,
.gg-showroom-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9a86c, transparent);
}

.gg-showroom-section-title span {
    padding: 0 20px;
    white-space: nowrap;
}

/* Slider Container */
.gg-showroom-gallery .gg-showroom-slider-container {
    position: relative;
    overflow: hidden;
}

/* Slider */
.gg-showroom-gallery .gg-showroom-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.gg-showroom-gallery .gg-showroom-slider::-webkit-scrollbar {
    display: none;
}

/* Slider Item */
.gg-showroom-gallery .gg-showroom-slider .gg-showroom-item {
    flex: 0 0 220px !important;
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    height: 220px !important;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block !important;
}

.gg-showroom-gallery .gg-showroom-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gg-showroom-gallery .gg-showroom-item img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease;
}

.gg-showroom-gallery .gg-showroom-item:hover img {
    transform: scale(1.05);
}

/* Slider Navigation */
.gg-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    color: #333;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gg-slider-nav:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gg-slider-nav:disabled {
    opacity: 0;
    pointer-events: none;
}

.gg-slider-prev {
    left: 10px;
}

.gg-slider-next {
    right: 10px;
}

/* Scroll indicators (fade edges) */
.gg-showroom-slider-container::before,
.gg-showroom-slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gg-showroom-slider-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.9), transparent);
}

.gg-showroom-slider-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
}

.gg-showroom-slider-container.can-scroll-left::before,
.gg-showroom-slider-container.can-scroll-right::after {
    opacity: 1;
}

/* ===========================================
   FULL GALLERY LAYOUT (gants_gallery_full)
   =========================================== */

/* Anchor Navigation */
.gg-showroom-nav {
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
}

.gg-showroom-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.gg-showroom-nav li {
    margin: 0;
}

.gg-showroom-nav a {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #c9a86c;
    border-radius: 25px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gg-showroom-nav a:hover {
    background: #c9a86c;
    color: #fff;
}

/* Category Section (H2 level) */
.gg-showroom-category {
    margin-bottom: 60px;
    padding-top: 20px;
}

.gg-showroom-category:last-child {
    margin-bottom: 0;
}

.gg-showroom-category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #c9a86c;
}

/* Subsection (H3 level) */
.gg-showroom-subsection {
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 3px solid #e0e0e0;
}

.gg-showroom-subsection:last-child {
    margin-bottom: 0;
}

.gg-showroom-subsection-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #444;
}

.gg-showroom-subsection-title::after {
    content: '';
    flex: 1;
    height: 1px;
    margin-left: 20px;
    background: linear-gradient(90deg, #c9a86c, transparent);
}

.gg-showroom-subsection-title span {
    white-space: nowrap;
}

.gg-showroom-subsection-desc {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Full Gallery */
@media (max-width: 768px) {
    .gg-showroom-nav {
        padding: 15px;
    }

    .gg-showroom-nav ul {
        gap: 10px;
    }

    .gg-showroom-nav a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .gg-showroom-category-title {
        font-size: 1.4rem;
    }

    .gg-showroom-subsection {
        padding-left: 15px;
    }

    .gg-showroom-subsection-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .gg-showroom-nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    .gg-showroom-nav a {
        display: block;
        text-align: center;
    }

    .gg-showroom-category {
        margin-bottom: 40px;
    }

    .gg-showroom-subsection {
        padding-left: 10px;
        border-left-width: 2px;
    }
}

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

/* Lightbox */
.gg-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gg-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gg-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gg-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.gg-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.gg-lightbox-close:hover {
    opacity: 1;
}

.gg-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gg-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gg-lightbox-prev {
    left: -70px;
}

.gg-lightbox-next {
    right: -70px;
}

.gg-lightbox-title {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
}

.gg-lightbox-counter {
    position: absolute;
    top: -40px;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .gg-lightbox-prev {
        left: 10px;
    }

    .gg-lightbox-next {
        right: 10px;
    }

    .gg-showroom-gallery .gg-showroom-slider .gg-showroom-item {
        flex: 0 0 180px !important;
        width: 180px !important;
        min-width: 180px !important;
        max-width: 180px !important;
        height: 180px !important;
    }
}

@media (max-width: 768px) {
    .gg-showroom-gallery .gg-showroom-section-title {
        font-size: 1.25rem;
    }

    .gg-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .gg-showroom-gallery .gg-showroom-slider .gg-showroom-item {
        flex: 0 0 160px !important;
        width: 160px !important;
        min-width: 160px !important;
        max-width: 160px !important;
        height: 160px !important;
    }

    .gg-showroom-gallery .gg-slider-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .gg-showroom-gallery .gg-showroom-slider .gg-showroom-item {
        flex: 0 0 140px !important;
        width: 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
        height: 140px !important;
        border-radius: 6px;
        scroll-snap-align: start;
    }

    .gg-showroom-gallery .gg-slider-nav {
        display: none;
    }

    .gg-showroom-gallery .gg-showroom-slider {
        scroll-snap-type: x mandatory;
    }
}
