#variation-gallery-container {
    margin: 20px 0;
}

.variation-gallery-slideshow {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-main-image {
    aspect-ratio: 1 / .8;
    overflow: hidden;
    width: 100%;
    position: relative;
    min-height: 300px;
    background: #f5f5f5;
}

.gallery-main-image img {
    max-width: 100%;
    height: auto;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Carousel sliding animations */
.gallery-main-image .slide-current {
    transform: translateX(0) !important;
    z-index: 2;
}

.gallery-main-image .slide-next {
    transform: translateX(100%);
    z-index: 1;
}

.gallery-main-image .slide-prev {
    transform: translateX(-100%);
    z-index: 1;
}

/* Animation states for smooth transitions - images positioned flush */
.gallery-main-image .slide-exit-left {
    transform: translateX(-100%) !important;
    z-index: 1;
}

.gallery-main-image .slide-exit-right {
    transform: translateX(100%) !important;
    z-index: 1;
}

/* Pending states - no animation until new image is loaded */
.gallery-main-image .slide-exit-left-pending {
    transform: translateX(0) !important;
    z-index: 2;
    transition: none !important; /* No animation until activated */
}

.gallery-main-image .slide-exit-right-pending {
    transform: translateX(0) !important;
    z-index: 2;
    transition: none !important; /* No animation until activated */
}

.gallery-main-image .slide-enter-left {
    transform: translateX(-100%) !important;
    z-index: 1;
}

.gallery-main-image .slide-enter-right {
    transform: translateX(100%) !important;
    z-index: 1;
}

.gallery-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex !important;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
    z-index: 20;
}

.gallery-prev,
.gallery-next {
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 30;
    visibility: visible !important;
    opacity: 1 !important;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
}

.gallery-prev {
    margin-left: 10px;
}

.gallery-next {
    margin-right: 10px;
}

.gallery-thumbnails {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: -80px;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 20;
}

.gallery-thumbnails img {
    width: 60px !important;
    height: 60px !important ;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-thumbnails img:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: #2b9c8e;
}

.gallery-thumbnails img.active {
    opacity: 1;
    border-color: #2b9c8e;
    transform: scale(1.1);
}

/* Loading state */
.gallery-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 14px;
}