.custom-product-gallery {
    display: flex !important;
    align-items: flex-start !important;
    height: auto !important; /* Adjust height for flexibility */
}

.custom-product-gallery .featured-image {
    flex: 4 !important; /* Make the featured image container wider */
    width: 100% !important;
    height: auto !important; /* Maintain aspect ratio */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important; /* Center the main image vertically */
    flex-direction: column !important; /* Align color dots below */
    padding: 10px !important;
}

.custom-product-gallery .featured-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important; /* Ensure image covers the area */
    transition: opacity 1s ease-in-out !important;
    cursor: zoom-in !important;
}

.custom-product-gallery .gallery-container {
    flex: 0 0 100px !important; /* Adjust width for thumbnails */
    height: 100% !important; /* Ensure height matches the featured image */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    overflow-y: auto !important; /* Enable scrolling */
    padding: 10px !important; /* Add padding */
}

.custom-product-gallery .gallery-images {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important; /* Add gap between thumbnails */
}

.custom-product-gallery .gallery-image {
    flex: 0 0 auto !important; /* Ensure thumbnails take equal space */
    width: 100% !important; /* Ensure width matches the container */
    height: 100px !important; /* Set a fixed height for thumbnails */
    padding: 2px !important; /* Add padding */
}

.custom-product-gallery .gallery-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Ensure image covers the area */
    cursor: pointer !important;
}

.custom-product-gallery .gallery-images::-webkit-scrollbar {
    display: none !important; /* Hide the scrollbar */
}

.custom-product-gallery .gallery-images {
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
}

.custom-product-gallery .color-dots {
    display: flex;
    justify-content: center;
    gap: 25px; /* Add space between color dots */
    margin-top: 10px;
}

.color-dot {
    width: 15px;
    height: 15px;
    background-color: gray;
    border-radius: 50%;
    cursor: pointer;
}

/* Specific colors */
.color-dot[data-color="red"] { background-color: red; }
.color-dot[data-color="pink"] { background-color: pink; }
.color-dot[data-color="blue"] { background-color: blue; }
.color-dot[data-color="grey"] { background-color: grey; }
.color-dot[data-color="black"] { background-color: black; }

@media (max-width: 768px) {
    .custom-product-gallery .gallery-container {
        display: none !important; /* Hide thumbnails on mobile */
    }

    .custom-product-gallery {
        display: block !important;
    }

    .custom-product-gallery .featured-image img {
        width: 100% !important;
        height: auto !important; /* Adjust height on mobile */
    }
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center!important;
    align-items: center !important;
    z-index: 9999;
}

.lightbox.visible {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    margin: auto; /* Center the image */
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #bbb;
}
.color-variations {
    display: flex;
    justify-content: center;
}

.color-variation {
    margin: 0 5px;
}

#custom-product-gallery .product-item.single {
    display: block;
    text-align: center;
}

#custom-product-gallery .product-item {
    display: inline-block;
    margin: 10px;
}

/* Add more styling as needed */

