.custom-product-gallery {
    display: flex;
    gap: 5px; /* Gap between the main image and thumbnails */
    height: 400px; /* Adjust as needed for consistent height */
}

.custom-product-gallery .main-image {
    width: 50%; /* Main image occupies 50% width */
    height: 100%; /* Matches the gallery height */
    overflow: hidden;
}

.custom-product-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.custom-product-gallery .thumbnail-images {
    display: flex;
    flex-wrap: wrap;
    width: 50%; /* Remaining 50% for thumbnails */
    gap: 5px;
    height: 100%;
}

.custom-product-gallery img{
    border-radius:5px !important;
}

.custom-product-gallery .thumbnail-wrapper {
    width: calc(50% - 2.5px); /* Two thumbnails per row */
    height: calc(50% - 2.5px); /* Maintain square aspect ratio */
    position: relative; /* To position the button relative to the image */
    overflow: hidden;
}

.custom-product-gallery .thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops the image to fit the container */
    display: block; /* Ensures no inline-block space */
}

.custom-product-gallery .view-all-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 10;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-product-gallery .view-all-images {
   /* position: absolute; /* Absolute positioning relative to the wrapper */
   /* bottom: 10px; /* Positioned at the bottom */
    right: 10px; /* Positioned on the right */
    background: rgba(0, 0, 0, 0.7); /* Background for visibility */
    color: white;
   /* padding: 5px 10px;*/
    font-size: 12px;
    border-radius: 5px;
    text-decoration: none;
    /*display: block; /* Ensure the button behaves like a block element */
    visibility: visible; /* Ensure the button is always visible */
}

.custom-product-gallery .view-all-images:hover {
    background: rgba(0, 0, 0, 0.9); /* Darker background on hover */
}


.fancybox__container {
    background-color: rgba(0, 0, 0, 0.9); /* Darker background */
}

.fancybox__button--close {
    background-color: #fff;
    color: #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    border: 2px solid #333;
    transition: background-color 0.3s, color 0.3s;
}

.fancybox__button--close:hover {
    background-color: #333;
    color: #fff;
}

.fancybox__thumbs {
    background-color: rgba(0, 0, 0, 0.8); /* Background color for thumbnails */
    padding: 10px;
    border-radius: 10px;
}

.fancybox__thumb {
    border: 2px solid transparent; /* Default border */
    transition: border-color 0.3s;
}

.fancybox__thumb--active {
    border-color: #fff; /* Highlight for active thumbnail */
}

.fancybox__caption {
    color: #fff;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
    padding: 10px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    border-radius: 5px;
}

/* Smoother transition for Fancybox images */
.fancybox__image {
    transition: transform 0.8s ease-in-out !important; /* Smooth sliding of images */
    border: 5px solid white;
  border-radius: 12px;
}

/* When the image is loaded, apply the transform */
.fancybox__image--loaded {
    transform: scale(1); /* Ensure the image is scaled to 100% */
}

/* Optional: Make sure the whole container transitions gracefully */
.fancybox__container {
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out !important;
}

.fancybox__thumbs, .fancybox__caption{
    display:none;
}

/**PRICE POPUP**/
.price-popup h4{

    font-weight:700 !important;
    padding: 0 20px;

}

.price-popup h4, .price-popup h5{
        text-align:center;
            margin-bottom:20px;
            font-weight:500;
}

.price-popup th{
    text-align: left;
}



.pricing-table-container {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pricing-header, .pricing-row {
    display: flex;
    justify-content: space-between;

}

.column {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
}

.unit{
font-size:13px;
}
 
.pricing-header .column {
    font-weight: bold;
    background-color: #f9f9f9;
}


@media (max-width: 768px) {
    .custom-product-gallery {
        flex-direction: column;
        height: auto;
    }

    .custom-product-gallery .main-image {
        width: 100%;
        height: auto;
    }

    .custom-product-gallery .thumbnail-images {
        width: 100%;
        height: auto;
    }

    .custom-product-gallery .thumbnail-wrapper {
        width: calc(50% - 2.5px); /* Two per row on smaller screens */
        height: auto;
        aspect-ratio: 1 / 1; /* Ensures square thumbnails */
    }
}



