/* Elementor 360° Product Gallery */

.gdrive-elem-gallery-wrapper {
    width: 100%;
    max-width: 100%;
}

/* Main Gallery */
.gdrive-elem-gallery-main {
    position: relative;
    width: 100%;
    height: 500px;
    background: #f5f5f5; /* Light gray instead of black */
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gdrive-elem-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.gdrive-elem-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background: transparent; /* No black background */
}

.gdrive-elem-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.gdrive-elem-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
}

/* 360° Slide */
.gdrive-elem-slide-360 {
    background: #f5f5f5; /* Match main gallery background */
}

.gdrive-elem-360-canvas {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    position: relative;
}

.gdrive-elem-360-canvas:active {
    cursor: grabbing;
}

.gdrive-elem-360-image {
    pointer-events: none;
    -webkit-user-drag: none;
}

/* 360° Loading */
.gdrive-elem-360-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 5;
}

.gdrive-elem-360-loading p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

/* 360° Hint */
.gdrive-elem-360-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    backdrop-filter: blur(5px);
    white-space: nowrap;
}

/* Navigation Arrows - COMPLETELY HIDDEN */
.gdrive-elem-nav {
    display: none !important; /* Force hide - arrows not needed, use thumbnails */
}

/* Legacy support - ensure all arrow variations are hidden */
.gdrive-elem-prev,
.gdrive-elem-next {
    display: none !important;
}

.gdrive-elem-gallery-main:hover .gdrive-elem-nav {
    display: none !important; /* Even on hover, stay hidden */
}

/* Thumbnails */
.gdrive-elem-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

.gdrive-elem-thumbs::-webkit-scrollbar {
    height: 6px;
}

.gdrive-elem-thumbs::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.gdrive-elem-thumbs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.gdrive-elem-thumbs::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.gdrive-elem-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gdrive-elem-thumb:hover {
    border-color: #ddd;
}

.gdrive-elem-thumb.active {
    border-color: #4facfe;
    box-shadow: 0 0 0 1px #4facfe;
}

.gdrive-elem-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 360° Thumbnail */
.gdrive-elem-thumb-360 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gdrive-elem-thumb-360 svg {
    color: white;
}

.gdrive-elem-360-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gdrive-elem-gallery-main {
        height: 400px;
    }
    
    .gdrive-elem-nav {
        width: 36px;
        height: 36px;
    }
    
    .gdrive-elem-prev {
        left: 10px;
    }
    
    .gdrive-elem-next {
        right: 10px;
    }
    
    .gdrive-elem-thumb {
        width: 60px;
        height: 60px;
    }
    
    .gdrive-elem-360-hint {
        font-size: 11px;
        padding: 6px 12px;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .gdrive-elem-gallery-main {
        height: 300px;
    }
    
    .gdrive-elem-thumb {
        width: 50px;
        height: 50px;
    }
}
