.swiper-cubes-pagination {
    display: flex;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.swiper-cubes-pagination .swiper {
    width: 100%;
    flex-shrink: 10;
    min-width: 0;
    margin-left: 24px;
    cursor: pointer;
}

.swiper-cubes-pagination .swiper:first-child {
    margin-left: 0;
}

.swiper-cubes-pagination .swiper-slide img {
    border: 2px solid #f06eff;
}

.swiper-cubes-pagination .swiper-slide-number {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1d1c23;
    color: #f06eff;
    line-height: 1;
    font-size: 24px;
    font-weight: bold;
}

.swiper-all-cubes {
    perspective: 1200px;
}

.swiper-all-cubes .swiper-3d {
    perspective: none;
    transform-style: preserve-3d;
}

.swiper-all-cubes .swiper-cubes-pagination .swiper-slide {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Make sure the main cube always receives touches */
.swiper-all-cubes {
    position: relative;
}

.swiper-all-cubes .swiper-main {
    position: relative;
    z-index: 10;
    touch-action: pan-y; /* allow vertical page scroll, keep horizontal for swiper */
    /*overflow: hidden; !* keep 3D faces inside *!*/
}


/* Prevent images from stealing/dragging gestures on iOS */
.swiper-main img,
.swiper-cubes-pagination img {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none; /* taps still hit the slide, not the image */
}

/* Ensure thumbs don't sit on top of the main cube on small screens */
@media (max-width: 640px) {
    .swiper-all-cubes .swiper-cubes-pagination {
        margin-top: 16px;
    }
}
