/* ===================================
   GALLERY PRODUCT STYLES - OPTIMIZED
   =================================== */

/* Gallery Container */
.vro-gallery-product {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: none;
}

/* Slides Container */
.vro-gallery-slides {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    position: relative;
}

/* Individual Slide - Responsive: 3 desktop, 2 tablet, 1 mobile */
.vro-gallery-slide {
    min-width: 33.3333%; /* 3 per row on desktop */
    width: 33.3333%;
    max-width: 33.3333%;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Tablet: 2 per row */
@media (max-width: 1024px) {
    .vro-gallery-slide {
        min-width: 50%;
        width: 50%;
        max-width: 50%;
    }
}

/* Mobile: 1 per row */
@media (max-width: 768px) {
    .vro-gallery-slide {
        min-width: 100%;
        width: 100%;
        max-width: 100%;
    }
}

/* Images */
.vro-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Lazy loading placeholder */
.vro-gallery-slide img.vro-lazy {
    background: #f0f0f0;
    min-height: 200px;
}

/* Video Container */
.vro-gallery-video {
    position: relative;
    width: 100%;
    padding-bottom: 125%; /* 4:5 aspect ratio */
    height: 0;
    overflow: hidden;
    cursor: pointer;
}

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

.vro-gallery-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Video Play Button */
.vro-video-play {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    opacity: 0.8 !important;
    transition: opacity 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 2 !important;
}

.vro-video-play:hover {
    opacity: 1 !important;
}

.vro-video-play svg {
    width: 68px !important;
    height: 48px !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) !important;
}

/* Navigation Controls */
.vro-gallery-controls {
    position: absolute !important;
    bottom: 16px !important;
    right: 16px !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

/* Counter Navigation */
.vro-gallery-counter {
    display: flex !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border-radius: 20px !important;
    padding: 4px 8px !important;
    pointer-events: auto !important;
    gap: 3px !important;
}

.vro-counter-prev,
.vro-counter-next {
    background: none !important;
    border: none !important;
    color: #3F4752 !important;
    cursor: pointer !important;
    font-size: 15px !important;
    padding: 4px 6px !important;
    border-radius: 50% !important;
    transition: background 0.2s ease !important;
    line-height: 1 !important;
    min-width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.vro-counter-prev:hover,
.vro-counter-next:hover {
    background: white !important;
}

.vro-counter-text {
    color: #3F4752 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    min-width: 30px !important;
    text-align: center !important;
    user-select: none !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .vro-gallery-controls {
        bottom: 12px !important;
        right: 12px !important;
    }
    
    .vro-gallery-counter {
        padding: 3px 6px !important;
        gap: 3px !important;
    }
    
    .vro-counter-prev,
    .vro-counter-next {
        min-width: 20px !important;
        height: 20px !important;
        font-size: 13px !important;
    }
    
    .vro-counter-text {
        font-size: 13px !important;
        min-width: 25px !important;
    }
}

@media (max-width: 480px) {
    .vro-gallery-controls {
        bottom: 10px !important;
        right: 10px !important;
    }
}