/* Make sure the immediate parent of the gallery
  is the one that hides the overflow.
*/
.mob_img_container {
    overflow: hidden;
    position: relative; /* For arrows to position against */
}

/* THIS IS THE MAIN FIX:
  We use Flexbox to lay out the slides in a row.
  We will move this *entire* container, not the individual items.
*/
#mobg_product_gallery {
    display: flex; /* Lays items out in a row */
    position: relative; /* Allows it to be moved */
    left: 0;

    /* We will control this with JS */
    transform: translateX(0px);
}

/* THIS IS THE OTHER MAIN FIX:
  - Remove "position: absolute"
  - Add "flex-shrink: 0" so images don't get squished
  - Control the gap here with "margin-right"
*/
.product-gallery-carousel-item {
    /* REMOVE: position: absolute; */
    position: relative; /* Or just remove position property */

    flex-shrink: 0; /* VERY IMPORTANT: Prevents slides from shrinking */
    width: auto; /* Let the image define the width */

    /* SET YOUR GAP HERE */
    margin-left: 0; /* This is your new "gap" */

    /* Your other styles are fine */
    border: 1px solid #e9ecef;
    border-radius: 5px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    overflow: hidden;
    min-height: 380px;
    max-height: 380px;
    transition: all 0.3s ease;
}

/* Make sure the image container respects the auto width */
.product-gallery-carousel-item-image-container {
    height: 380px;
    width: auto; /* Allow it to be variable */
}

.product-gallery-carousel-item-image-container img {
    height: 100%;
    width: auto; /* Let height control the aspect ratio */
}
.product_gallery_container_mob{
    margin-left: 2rem;
    display: flex;
    justify-content: center;
    height: 380px;
    width: calc(100% - 2rem);
    box-sizing: border-box;
    position: relative;
    z-index: 100;
    transform: translateZ(0px);
    transition: transform 0.5s
    ease-out, opacity 1s
    ease-out;
}

.product_gallery_container_gp.my-slider-progress{
    height: 4px;
    width: 100%;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 2rem;
    margin-top: 0.5rem;
}
.product_gallery_container_mob{
    margin-bottom: 40px;
}

.product-carousel.gallery_progress{
    bottom:unset;
}
@media (max-width: 600px) {

    .product_gallery_container_mob{
        margin-left:0;
    }

    .product-gallery-carousel-item-image-container {
        height: 210px;
    }

    .product_gallery_container_mob{
        height:240px;
    }

    .product-gallery-carousel-item{
        min-height: 210px;
        max-height: 210px;
    }

    .product-gallery-carousel-item{
        margin-left:10px;
    }
}
