/* Gallery Container */
.gallery-image-product {
    display: flex;
    flex-direction: column;
    width: 100px;
    max-height: 500px;
    overflow: hidden;
    justify-content: center;
    border-left: 1px solid #d4d4d4;
}

/* Individual Gallery Item Styling */
.gallery-item, .gallery-item-three-dot {
    transition: transform 0.3s ease;
    padding: 5px;
    margin: 5px;
    border: 1px solid #e7e9f3;
    border-radius: 10px;
    box-sizing: content-box;
    background: #ffffff;
}

.gallery-item, .gallery-item-three-dot img {
    width: 85px;
    height: 85px;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Hover Effect on Gallery Items */
.gallery-item:hover {
    transform: scale(1.05);
}
.gallery-item-single{
    transition: transform 0.3s ease;
    padding: 10px;
    border-bottom: 1px solid #d4d4d4;
}
.gallery-item-single img{
    width: 100% !important;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.gallery-item-single:hover {
    transform: scale(1.05);
}
#main-product-image{
    cursor: pointer;
    border-radius: 25px;
}
#three-dot {
    width: 50%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}
#three-dot:hover{
    transform: scale(1.05);
}
/* Lightbox Overlay */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: hidden;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease; /* Smooth transition for showing/hiding */
}

/* Lightbox Content */
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    overflow: hidden; /* Ensures images do not overflow */
}

/* Image in Lightbox */
#lightbox-img {
    max-width: 100%;
    max-height: 100%;
    opacity: 0; /* Hidden initially for fade-in effect */
    transition: opacity 0.5s ease; /* Smooth fade-in effect */
}

/* Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #bbb; /* Hover effect on the close button */
}

/* Next and Previous Navigation Buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    font-size: 24px;
    font-weight: bold;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    user-select: none;
    transform: translateY(-50%);
    transition: background-color 0.3s ease; /* Smooth hover transition */
}

.prev {
    left: 425px;
}

.next {
    right: 425px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Showing Lightbox Animation */
.lightbox.show #lightbox-img {
    opacity: 1; /* Fade in when lightbox is displayed */
}
.single-image-product-p img {
    transition: opacity 0.3s ease-in-out; /* Adjust timing and easing as needed */
}
/* Container for the main product image */
.single-image-product-p {
    position: relative;
    overflow: hidden; /* Ensures the image does not overflow its container */
}

/* Main product image styling */
.single-image-product-p img {
    width: 100%; /* Make the image fill the width of the container */
    height: auto; /* Maintain aspect ratio */
    transition: opacity 0.5s ease-in-out; /* Smooth fade transition */
}
