.mont_single_product_container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
     margin-top: 6rem;
}

.mont_top_layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
	    margin-top: 18px;
}

.mont_layout_sixty {
    flex: 1 1 64%;
}

.mont_layout_fourty {
    flex: 1 1 30%;
        padding: 0px 11px 8px 2px;
}

.mont_gallery_wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-right: 30px; /* Make space for the navigation dots */
}

.mont_gallery_image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    max-height: 800px;
    overflow-y: auto;
    row-gap: 94px;
}

.mont_gallery_image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Creates a square aspect ratio */
    overflow: hidden;
    height: 100%;
}

.mont_gallery_image-container.full-width {
    grid-column: span 2;
    padding-top: 50%; /* Adjust the aspect ratio for full width */
}

.mont_gallery_main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    cursor: zoom-in;

}

.mont_gallery_navigation-dots {
    position: absolute;
    right: 35px;
    bottom: 0;
    display: flex
;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 10px 5px;
    max-height: 100%;
    top: 38%;
}

.mont_gallery_dot {
width: 6px;
    height: 6px;
    border-radius: 0;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3sease;
}

.mont_gallery_dot.active {
    background: #000;
}

.mont_gallery_lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(227 227 227);
    z-index: 1000;
}

.mont_gallery_close-btn {
    position: absolute;
    right: 16px;
    top: 14px;
    color: #111;
    cursor: pointer;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 200;
    font-size: 34px;
    line-height: 1;
    z-index: 10020;
}

@media (max-width: 1024px) {
    .mont_gallery_close-btn {
        position: fixed;
        top: max(12px, env(safe-area-inset-top, 0px));
        right: 10px;
        height: 44px;
        width: 44px;
        padding: 0;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        font-size: 36px;
        font-weight: 200;
        color: #111;
    }

    body.has-sticky-discount .mont_gallery_close-btn {
        top: calc(42px + env(safe-area-inset-top, 0px));
    }
}
.mont_gallery_zoom-controls {
    border: 1px solid #0000004a;
    border-radius: 12px;
    padding: 4px 5px 4px 6px;
}

.mont_gallery_zoom-controls div {
    font-size: 21px;
    font-weight: 100;
    color: black;
    font-family: system-ui;
}
.mont_gallery_zoom-controls {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.mont_gallery_zoom-btn {
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    margin: 10px 0;
}

.mont_gallery_lightbox-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mont_gallery_lightbox-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
}

.mont_gallery_thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.mont_gallery_thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border: 1px solid #8d8d8533;
    padding: 5px;
}

.mont_gallery_thumbnail.active {
    opacity: 1;
    border: 1px solid #8d8d859e;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.mont_gallery_image-grid::-webkit-scrollbar,
.mont_gallery_navigation-dots::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.mont_gallery_image-grid,
.mont_gallery_navigation-dots {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.mont_top_area p {
display: inline-table;
    font-size: 15px;
    font-weight: 300;
    padding: 0px 0px 0px 0px;
    color: #989797;
    padding-left: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mont_top_layout {
        flex-direction: column;
    }
    
    .mont_layout_sixty,
    .mont_layout_fourty {
        flex: 1 1 100%;
    }
    .mont_layout_sixty {
    width: 100%;
}
.mont_layout_fourty {
    width: 100%;
    position: unset;
    top: 23px;
    align-self: flex-start;
    max-height: 100% !important;
    overflow-y: unset;
    padding: 7px;
}
.mont_gallery_image-grid {
    display: grid
;
    grid-template-columns: repeat(1, 1fr);
    gap: 1px;
    max-height: 800px;
    overflow-y: auto;
    row-gap: 51px;
}
.mont_gallery_wrapper {
    padding-right: 0px; /* Make space for the navigation dots */
}
}