/* THUMBNAIL GALLERY DESIGN - SCREENSHOT MATCH */

.cyber-gallery-wrapper {
    max-width: 900px;
    margin: 2rem auto;
    font-family: sans-serif;
    user-select: none;
}

/* MAIN STAGE */
.gallery-main-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #222;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Keep original aspect ratio like screenshot */
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* FULLSCREEN BUTTON (Top Right) */
.gallery-btn-fullscreen {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
    z-index: 10;
}

.gallery-btn-fullscreen:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* NAVIGATION ARROWS (Bottom Right overlaid) */
.gallery-nav-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.gallery-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

.gallery-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

/* THUMBNAIL STRIP */
.gallery-thumbs-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
    /* Firefox */
}

.gallery-thumbs-track::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbs-track::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.gallery-thumb {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 3px solid transparent;
    /* Placeholder for border */
    transition: all 0.2s;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ACTIVE THUMBNAIL STATE (Green/Turquoise border) */
.gallery-thumb.active {
    border-color: #00E5FF;
    /* Cyan/Turquoise match */
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.3);
}

/* Forcing styling on the source container to hide it */
.gallery-source-hide {
    display: none !important;
}