.gallery-viewer-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.gallery-viewer-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 4px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6b35, #e63946, #d62828, #ff6b35, #2d6a4f, #1d3557, #457b9d, #ff6b35);
    background-size: 300% 300%;
    animation: borderGlow 4s ease infinite;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gallery-viewer {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    background: #fff;
}

.gallery-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.thumb-strip-wrapper {
    position: relative;
    background: #1a1a1a;
    padding: 10px 40px;
    display: flex;
    align-items: center;
}

.thumb-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex: 1;
}

.thumb-strip::-webkit-scrollbar {
    display: none;
}

.thumb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s;
    line-height: 1;
}

.thumb-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.thumb-arrow-left {
    left: 6px;
}

.thumb-arrow-right {
    right: 6px;
}

.thumb-item {
    flex: 0 0 90px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.6;
}

.thumb-item:hover {
    opacity: 0.85;
}

.thumb-item.active {
    border-color: var(--primary-orange);
    opacity: 1;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main-image-wrapper {
    position: relative;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

.main-image-wrapper img {
    display: block;
    max-width: 100%;
    max-height: 550px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.image-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.75);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 5;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s;
    line-height: 1;
}

.nav-arrow:hover {
    background: rgba(0,0,0,0.8);
}

.nav-arrow-left {
    left: 16px;
}

.nav-arrow-right {
    right: 16px;
}

.gallery-categories {
    padding: 20px 24px;
    text-align: center;
    background: #fff;
    border-top: 1px solid var(--border-light);
}

.cat-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 4px 8px;
    transition: color 0.2s;
}

.cat-link:hover {
    color: var(--primary-orange);
    text-decoration: underline;
}

.cat-link.active {
    color: var(--primary-orange);
    font-weight: 700;
}

.cat-divider {
    color: var(--text-light);
    margin: 0 8px;
}

@media (max-width: 768px) {
    .gallery-viewer-section {
        padding: 30px 0;
    }

    .gallery-viewer {
        border-radius: 0;
    }

    .main-image-wrapper {
        min-height: 280px;
    }

    .main-image-wrapper img {
        max-height: 350px;
    }

    .nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .nav-arrow-left {
        left: 8px;
    }

    .nav-arrow-right {
        right: 8px;
    }

    .thumb-item {
        flex: 0 0 70px;
        height: 48px;
    }

    .gallery-categories {
        padding: 16px;
    }

    .cat-link {
        font-size: 13px;
    }
}
