/**
 * Club Modal Styles
 * 
 * @package JP_Google_Sheet_API
 * @subpackage Clubs_Modal
 */

/* CSS Variables for easy customization */
:root {
    --vbm-modal-gold: #FFD700;
    --vbm-modal-gold-light: #FFA500;
    --vbm-modal-gold-dark: #B8860B;
    --vbm-modal-text: #333;
    --vbm-modal-bg: rgba(255, 255, 255, 0.9);
    --vbm-modal-border: #dee2e6;
}

/* Prevent body scroll when modal is open (iOS fix) */
body.vbm-modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Modal Overlay */
.vbm-clb-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999 !important; /* Higher than Google Maps */
    backdrop-filter: blur(2px);
}

.vbm-clb-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Container */
.vbm-clb-modal-container {
    background: url('../../images/nentt1.png') center/cover no-repeat, white;
    width: 90%;
    max-width: 1300px;
    height: 85vh;
    border-radius: 15px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Background Overlay for readability */
.vbm-clb-modal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 1;
}

.vbm-clb-modal-container > * {
    position: relative;
    z-index: 2;
}

/* Loading State */
.vbm-clb-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
}

.vbm-clb-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top-color: var(--vbm-modal-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.vbm-clb-loading p {
    color: var(--vbm-modal-text);
    font-size: 16px;
}

/* Modal Content Wrapper */
.vbm-clb-modal-content {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Close Button */
.vbm-clb-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vbm-modal-text);
    font-size: 26px;
    cursor: pointer;
    z-index: 1003;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--vbm-modal-gold);
    transition: all 0.3s ease;
}

.vbm-clb-close-btn:hover {
    background: var(--vbm-modal-gold);
    color: white;
    transform: rotate(90deg);
}

/* Desktop Layout - Hide Mobile */
.vbm-clb-mobile-layout {
    display: none;
}

/* ===============================
   DESKTOP LAYOUT (3 columns)
   =============================== */

/* Left Sidebar */
.vbm-clb-sidebar {
    width: 340px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    background: var(--vbm-modal-bg);
    border-right: 2px solid var(--vbm-modal-gold);
}

.vbm-clb-header {
    text-align: center;
    margin-bottom: 25px;
}

.vbm-clb-logo-display {
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid var(--vbm-modal-gold);
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.vbm-clb-name {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.vbm-clb-location {
    font-size: 14px;
    color: var(--vbm-modal-text);
}

/* Outfit Section */
.vbm-clb-outfit-section {
    margin: 25px 0;
}

.vbm-clb-outfit-label {
    font-size: 12px;
    color: var(--vbm-modal-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
}

.vbm-clb-outfit-img {
    width: 100%;
    height: 180px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    /*background-color: #f5f5f5;*/
    border: none; /* Bỏ border vàng */
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.vbm-clb-outfit-img:hover {
    transform: scale(1.05);
}

.vbm-clb-outfit-hint {
    text-align: center;
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Slogan */
.vbm-clb-slogan {
    text-align: center;
    font-style: italic;
    color: var(--vbm-modal-text);
    font-size: 15px;
    padding: 20px;
    margin: 20px 0;
    line-height: 1.5;
    border-left: 3px solid var(--vbm-modal-gold);
    background: rgba(255, 215, 0, 0.05);
}

.vbm-clb-slogan:empty {
    display: none;
}

/* Rating Stars */
.vbm-clb-rating {
    text-align: center;
    font-size: 20px;
    color: var(--vbm-modal-gold);
}

/* Stars Badge - Số sao với background vàng nhẹ */
.vbm-clb-stars-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15); /* Background vàng nhẹ */
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
}

/* Main Content Area */
.vbm-clb-main {
    flex: 1;
    padding: 35px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.8);
}

/* Custom Scrollbar */
.vbm-clb-main::-webkit-scrollbar,
.vbm-clb-members::-webkit-scrollbar {
    width: 10px;
}

.vbm-clb-main::-webkit-scrollbar-track,
.vbm-clb-members::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.vbm-clb-main::-webkit-scrollbar-thumb,
.vbm-clb-members::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.vbm-clb-main::-webkit-scrollbar-thumb:hover,
.vbm-clb-members::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Section Titles */
.vbm-clb-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--vbm-modal-gold);
    text-transform: uppercase;
}

/* Info List */
.vbm-clb-info-list {
    color: #000;
    line-height: 2;
    font-size: 14px;
    margin-bottom: 30px;
}

.vbm-clb-info-list dt {
    display: inline;
    font-weight: 600;
    color: #000;
}

.vbm-clb-info-list dd {
    display: inline;
    margin-left: 5px;
    margin-right: 0;
}

.vbm-clb-info-list dd::after {
    content: '\A';
    white-space: pre;
}

.vbm-clb-info-list a {
    color: var(--vbm-modal-gold-dark);
    text-decoration: none;
}

.vbm-clb-info-list a:hover {
    text-decoration: underline;
}

/* Description */
.vbm-clb-description {
    padding: 20px 0;
    line-height: 1.8;
    font-size: 14px;
    color: #000;
    margin: 25px 0;
}

/* Gallery Section */
.vbm-clb-gallery-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.vbm-clb-gallery-section:empty {
    display: none;
}

.vbm-clb-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.vbm-clb-gallery-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.vbm-clb-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.vbm-clb-gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vbm-clb-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.vbm-clb-gallery-item:hover .vbm-clb-gallery-overlay {
    opacity: 1;
}

.vbm-clb-gallery-overlay span {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery item with "more" indicator */
.vbm-clb-gallery-item.has-more .vbm-clb-gallery-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.vbm-clb-gallery-item.has-more .vbm-clb-gallery-overlay span {
    font-size: 20px;
    font-weight: 700;
}

/* Members Panel */
.vbm-clb-members {
    width: 380px;
    background: var(--vbm-modal-bg);
    padding: 25px;
    overflow-y: auto;
    border-left: 1px solid var(--vbm-modal-gold);
}

.vbm-clb-members-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--vbm-modal-gold);
}

.vbm-clb-members-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

.vbm-clb-members-count {
    background: var(--vbm-modal-gold);
    color: #000;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

/* Member List */
.vbm-clb-member-list {
    display: grid;
    gap: 10px;
}

.vbm-clb-members-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.vbm-clb-member-card {
    background: rgba(255, 255, 255, 0.6);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
}

.vbm-clb-member-card:hover {
    background: rgba(255, 255, 255, 0.9);
}

.vbm-clb-member-avatar-wrapper {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    position: relative;
}

.vbm-clb-member-avatar-wrapper img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.vbm-clb-member-avatar-fallback {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 700;
    font-size: 14px;
}

.vbm-clb-member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #666;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    position: relative;
}

.vbm-clb-member-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Marathon Title Badge in Member Card */
.vbm-clb-member-avatar .marathon-badge {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
    color: #E60000;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 10;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.vbm-clb-member-info {
    flex: 1;
    min-width: 0;
}

.vbm-clb-member-name {
    font-weight: 900 !important; /* IN ĐẬM */
    color: #000;
    font-size: 15px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vbm-clb-member-stats {
    font-size: 12px;
    color: var(--vbm-modal-text);
    margin: 2px 0; /* Space giữa 2 dòng FM/HM */
    line-height: 1.3;
}

/* Stars badge - thay emoji bằng số */
.vbm-clb-member-stars {
    display: inline-block;
    background: #fffbf0;
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

/* Load More Button */
.vbm-clb-load-more-members {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background: var(--vbm-modal-gold);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.vbm-clb-load-more-members:hover {
    background: var(--vbm-modal-gold-dark);
    color: white;
}

/* ===============================
   MOBILE RESPONSIVE
   =============================== */

@media (max-width: 768px) {
    /* Hide desktop elements */
    .vbm-clb-sidebar,
    .vbm-clb-main,
    .vbm-clb-members {
        display: none !important;
    }
    
    /* Show mobile layout */
    .vbm-clb-mobile-layout {
        display: block;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
        overscroll-behavior-y: contain; /* Prevent scroll chaining */
        touch-action: pan-y; /* Allow vertical scroll only */
        padding-bottom: 20px; /* Space for last button */
    }
    
    /* Modal adjustments */
    .vbm-clb-modal.active {
        display: block;
    }
    
    .vbm-clb-modal-container {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
        display: block;
        background: white;
        position: fixed;
        top: 0;
        left: 0;
        overflow: hidden; /* Container không scroll, chỉ layout bên trong scroll */
    }
    
    .vbm-clb-modal-container::before {
        display: none;
    }
    
    /* Close button mobile */
    .vbm-clb-close-btn {
        position: fixed;
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        z-index: 9999;
        font-size: 22px;
    }
    
    /* Mobile Header */
    .vbm-clb-mobile-header {
        background: linear-gradient(135deg, var(--vbm-modal-gold) 0%, var(--vbm-modal-gold-light) 100%);
        padding: 20px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }
    
    .vbm-clb-mobile-header-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .vbm-clb-mobile-logo {
        width: 55px;
        height: 55px;
        background-size: cover;
        background-position: center;
        border-radius: 50%;
        border: 2px solid white;
    }
    
    .vbm-clb-mobile-header-text h1 {
        font-size: 18px;
        color: white;
        margin: 0 0 3px 0;
        font-weight: 700;
    }
    
    .vbm-clb-mobile-header-text p {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.9);
        margin: 0;
    }
    
    .vbm-clb-mobile-rating {
        font-size: 16px;
    }
    
    /* Mobile Outfit */
    .vbm-clb-mobile-outfit {
        background: white;
        padding: 20px 15px;
        border-bottom: 1px solid #eee;
    }
    
    .vbm-clb-mobile-outfit-title {
        font-size: 11px;
        text-transform: uppercase;
        color: #666;
        font-weight: 600;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .vbm-clb-mobile-outfit-img {
        width: 100%;
        height: 200px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #f9f9f9;
        border-radius: 10px;
        border: none; /* Bỏ border vàng */
        margin-bottom: 10px;
        cursor: pointer;
    }
    
    .vbm-clb-mobile-outfit-hint {
        text-align: center;
        font-size: 11px;
        color: #999;
    }
    
    /* Mobile Slogan */
    .vbm-clb-mobile-slogan {
        background: rgba(255, 215, 0, 0.05);
        padding: 15px;
        text-align: center;
        font-style: italic;
        color: #555;
        font-size: 14px;
        line-height: 1.5;
        border-bottom: 1px solid #eee;
    }
    
    .vbm-clb-mobile-slogan:empty {
        display: none;
    }
    
    /* Mobile Content */
    .vbm-clb-mobile-content {
        padding: 20px 15px;
        background: white;
    }
    
    .vbm-clb-mobile-section-title {
        font-size: 17px;
        font-weight: 700;
        color: #333;
        margin-bottom: 15px;
        padding-bottom: 8px;
        border-bottom: 2px solid var(--vbm-modal-gold);
        text-transform: uppercase;
    }
    
    .vbm-clb-mobile-description {
        font-size: 14px;
        line-height: 1.7;
        color: #444;
        margin-bottom: 20px;
    }
    
    .vbm-clb-mobile-info {
        font-size: 13px;
        line-height: 1.9;
        color: #333;
        margin-bottom: 20px;
    }
    
    .vbm-clb-mobile-info strong {
        font-weight: 600;
        color: #222;
    }
    
    .vbm-clb-mobile-info a {
        color: var(--vbm-modal-gold-dark);
        text-decoration: none;
    }
    
    /* Mobile Gallery */
    .vbm-clb-mobile-gallery {
        padding: 20px 15px;
        background: #f9f9f9;
    }
    
    .vbm-clb-mobile-gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 15px;
    }
    
    .vbm-clb-mobile-gallery-item {
        position: relative;
        padding-bottom: 100%;
        background: #eee;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
    }
    
    .vbm-clb-mobile-gallery-item img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Mobile Members Button */
    .vbm-clb-mobile-members-btn {
        margin: 20px 15px;
        padding: 15px;
        background: linear-gradient(135deg, var(--vbm-modal-gold), var(--vbm-modal-gold-light));
        color: white;
        text-align: center;
        border: none;
        border-radius: 10px;
        font-weight: 700;
        font-size: 15px;
        text-transform: uppercase;
        display: block;
        width: calc(100% - 30px);
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    }
}

/* Members Modal Mobile */
.vbm-clb-members-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000000 !important; /* Higher than main modal (999999) */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
}

.vbm-clb-members-mobile.active {
    display: block;
}

.vbm-clb-members-mobile-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 15px;
    border-bottom: 2px solid var(--vbm-modal-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.vbm-clb-members-mobile-close {
    width: 35px;
    height: 35px;
    background: var(--vbm-modal-gold);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
}

.vbm-clb-members-mobile .vbm-clb-member-list {
    padding: 15px;
}

.vbm-clb-members-mobile .vbm-clb-member-card {
    margin-bottom: 10px;
}

.vbm-clb-load-more-members-mobile {
    width: calc(100% - 30px);
    margin: 0 15px 20px;
    padding: 12px;
    background: var(--vbm-modal-gold);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
}

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

.vbm-clb-gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999999 !important; /* Above modal */
    overflow: hidden;
}

.vbm-clb-gallery-lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.vbm-clb-lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.vbm-clb-lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: white;
}

.vbm-clb-lightbox-counter {
    font-size: 14px;
    opacity: 0.8;
}

.vbm-clb-lightbox-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0; /* Bỏ border-radius */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    color: white;
    transition: all 0.3s;
}

.vbm-clb-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.vbm-clb-lightbox-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.vbm-clb-lightbox-image-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vbm-clb-lightbox-img {
    max-width: 100%;
    max-height: calc(90vh - 120px);
    object-fit: contain;
    border-radius: 0; /* Bỏ border-radius */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Navigation Buttons */
.vbm-clb-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0; /* Bỏ border-radius */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: white;
    transition: all 0.3s;
    z-index: 2;
}

.vbm-clb-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.vbm-clb-lightbox-prev {
    left: 20px;
}

.vbm-clb-lightbox-next {
    right: 20px;
}

/* Thumbnails */
.vbm-clb-lightbox-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
    overflow-x: auto;
}

.vbm-clb-lightbox-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.vbm-clb-lightbox-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.vbm-clb-lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0; /* Bỏ border-radius */
}

.vbm-clb-lightbox-thumb {
    width: 60px;
    height: 60px;
    border-radius: 0; /* Bỏ border-radius */
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.vbm-clb-lightbox-thumb.active {
    opacity: 1;
    border-color: var(--vbm-modal-gold);
}

.vbm-clb-lightbox-thumb:hover {
    opacity: 0.8;
}

.vbm-clb-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Responsive Gallery */
@media (max-width: 768px) {
    .vbm-clb-lightbox-container {
        width: 100%;
        height: 100vh;
    }
    
    .vbm-clb-lightbox-img {
        max-height: calc(100vh - 150px);
        border-radius: 0;
    }
    
    .vbm-clb-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .vbm-clb-lightbox-prev {
        left: 10px;
    }
    
    .vbm-clb-lightbox-next {
        right: 10px;
    }
    
    .vbm-clb-lightbox-thumbnails {
        padding: 15px 0;
    }
    
    .vbm-clb-lightbox-thumb {
        width: 50px;
        height: 50px;
    }
    
    .vbm-clb-lightbox-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* Hide modal when gallery is active */
body.gallery-active .vbm-clb-modal-container {
    opacity: 0;
    transition: opacity 0.3s;
}
