.lux-hover-gallery {
    display: block;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-drag: none;
}

.lux-hover-gallery .lux-hover-gallery__image {
    width: 100%;
    height: auto;
}

.lux-hover-gallery .lux-hover-gallery__image:not(.is-active) {
    display: none !important;
}

.lux-hover-gallery .lux-hover-gallery__image.is-active {
    display: block !important;
}

.lux-hover-gallery.is-touch-dragging .lux-hover-gallery__image.is-touch-current,
.lux-hover-gallery.is-touch-dragging .lux-hover-gallery__image.is-touch-adjacent,
.lux-hover-gallery.is-touch-settling .lux-hover-gallery__image.is-touch-current,
.lux-hover-gallery.is-touch-settling .lux-hover-gallery__image.is-touch-adjacent {
    position: absolute;
    top: 0;
    left: 0;
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.lux-hover-gallery.is-touch-dragging .lux-hover-gallery__image.is-touch-current,
.lux-hover-gallery.is-touch-settling .lux-hover-gallery__image.is-touch-current {
    z-index: 1;
}

.lux-hover-gallery.is-touch-dragging .lux-hover-gallery__image.is-touch-adjacent,
.lux-hover-gallery.is-touch-settling .lux-hover-gallery__image.is-touch-adjacent {
    z-index: 2;
}

.lux-hover-gallery.is-touch-settling .lux-hover-gallery__image.is-touch-current,
.lux-hover-gallery.is-touch-settling .lux-hover-gallery__image.is-touch-adjacent {
    transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.lux-hover-gallery__dots {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    left: 0.8rem;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    pointer-events: none;
}

.lux-hover-gallery__dot {
    width: 0.7rem;
    height: 0.7rem;
    flex: 0 0 0.7rem;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.lux-hover-gallery__dot.is-active {
    border-color: #e54b4b;
    background: #e54b4b;
}

/*
 * Product badges are rendered before the gallery link. Keep them above the
 * active image while letting mouse movement reach the gallery underneath.
 */
.product-media .labelukl,
.product-media .hotproduct {
    z-index: 5;
    pointer-events: none;
}
