/**
 * GLightbox Thumbnail Strip
 * File: orvix-core/modules/glightbox/glightbox-strip.css
 */

/* -- Strip container -- */
.glb-strip {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 90%;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.70);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: auto;
}

/* -- Scrollable inner -- */
.glb-strip-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Center when no overflow */
.glb-strip-inner--center {
    justify-content: center;
}

/* Scrollbar */
.glb-strip-inner::-webkit-scrollbar          { height: 4px; }
.glb-strip-inner::-webkit-scrollbar-track    { background: rgba(255,255,255,0.1); border-radius: 2px; }
.glb-strip-inner::-webkit-scrollbar-thumb    { background: rgba(255,255,255,0.3); border-radius: 2px; }

/* -- Thumbnail item -- */
.glb-strip-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.glb-strip-thumb:hover {
    opacity: 0.8;
}

.glb-strip-thumb.active {
    opacity: 1;
    border-color: #fff;
}

/* -- Mobile -- */
@media (max-width: 768px) {
    .glb-strip {
        bottom: 10px;
        padding: 8px 10px;
    }

    .glb-strip-inner {
        gap: 6px;
    }

    .glb-strip-thumb {
        width: 50px;
        height: 50px;
    }
}


/* Custom Animation close thumbnails*/
.glightbox-container.glightbox-closing .glb-strip {
    opacity: 0;
    transition: opacity 0.1s ease;
    pointer-events: none;
}
