/* --- МОБИЛЬНАЯ ГАЛЕРЕЯ ДЛЯ СТРАНИЦ (WB-STYLE DESIGN) --- */
#vkMobileGallery {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #ffffff; /* Белый фон как у товаров */
    z-index: 2500000;
    overflow: hidden;
    touch-action: none;
}

.vk-close {
    position: fixed;
    top: 20px; right: 20px;
    width: 44px; height: 44px;
    background: rgba(255, 255, 255, 0.8);
    color: #333; /* Темный крестик */
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 35px; z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.vk-wrapper {
    display: flex;
    width: 100%; height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 20px;
    padding: 0 10px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}
.vk-wrapper::-webkit-scrollbar { display: none; }

.vk-slide {
    flex: 0 0 100%;
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    scroll-snap-align: center;
}

.vk-slide img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    /* Добавьте это: */
    will-change: transform;
    transition: transform 0.1s ease-out; /* Для плавности */
}

.vk-counter {
    position: fixed;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    background: rgba(0, 0, 0, 0.7); /* Черный овальный бейдж как у товаров */
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    z-index: 10;
}