/* Custom modal xxl */
.modal-xxl {
    max-width: 66%;
}

.modal-footer {
    position: sticky;
    bottom: 0;
    width: 100%;
    height: 10%;
    border: none;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    height: auto;
    position: relative;
    touch-action: pan-x pan-y;
    overflow: visible;
}
.zoomable-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .zoomable-image {
        width: 100%; /* Ajusta al 100% del contenedor */
    }
}

.thumbnail-gallery {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
}

.zoomContainer {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

@media (max-width: 768px) {
    .thumbsSwiper {
        display:none;
    }
}

@media (min-width: 768px) {
    .swiper-pagination {
        display: none !important;
    }
}

.thumbsSwiper {
    height: 400px;
}

.thumbsSwiper .swiper-slide {
    height: 80px !important;
    opacity: 0.5;
    cursor: pointer;
}

.thumbsSwiper .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #000;
}

.thumbsSwiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mainSwiper img {
    width: 100%;
    height: 400px;
    object-fit: contain;
}

.medium-zoom-overlay {
    z-index: 9999;
}

.medium-zoom-image {
    cursor: zoom-in;
}

.medium-zoom-image--opened {
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain;
    cursor: zoom-out;
    z-index: 9999;
}