.jm-divi-gallery-slider {
    width: 100%;
    margin: 0 auto;
}

/* Main and Thumbnail Sliders */
.jm-divi-gallery-slider .swiper {
    width: 100%;
    height: auto;
}

/* Main Slider (Primary Image) */
.jm-divi-gallery-slider .mySwiper2 .swiper-slide {
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
	
}

/* Apply to <picture> and <img> inside main slider */
.jm-divi-gallery-slider .mySwiper2 .swiper-slide picture,
.jm-divi-gallery-slider .mySwiper2 .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.jm-divi-gallery-slider .swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.jm-divi-gallery-slider .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Slider */
.jm-divi-gallery-slider .mySwiper2 {
    height: 80%;
    width: 100%;
}

/* Thumbnail Slider */
.jm-divi-gallery-slider .mySwiper {
    height: 20%;
    box-sizing: border-box;
    padding: 10px 0;
}


.jm-divi-gallery-slider .mySwiper .swiper-slide {
    overflow: hidden; opacity:.5;
    border-radius: 4px;
    display: flex; 
    justify-content: center;
    align-items: center;
}

.jm-divi-gallery-slider .mySwiper .swiper-slide picture,
.jm-divi-gallery-slider .mySwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.jm-divi-gallery-slider .mySwiper .swiper-slide img {
    object-fit: cover;
}

.jm-divi-gallery-slider .mySwiper .swiper-slide-thumb-active {
    opacity: 1;
}

.jm-divi-gallery-slider .jm-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    position: relative;
    z-index: 10;
}

/* Reset Swiper Default Navigation */
.jm-divi-gallery-slider .jm-controls .swiper-button-prev,
.jm-divi-gallery-slider .jm-controls .swiper-button-next {
    position: static !important;
    width: 30px;
    height: 30px;
    color: #000;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
	margin-top: 0;
}

/* Arrow Icons */
.jm-divi-gallery-slider .jm-controls .swiper-button-prev::after,
.jm-divi-gallery-slider .jm-controls .swiper-button-next::after {
    font-size: 14px !important;
    color: #000;
}

/* Pagination */
.jm-divi-gallery-slider .jm-controls .swiper-pagination {
    display: flex !important;
    gap: 8px;
    position: relative !important;
}

.jm-divi-gallery-slider .jm-controls .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    opacity: 0.6;
    transition: 0.3s;
}

.jm-divi-gallery-slider .jm-controls .swiper-pagination-bullet-active {
	background: #757575;
    opacity: 1;
}

.jm-divi-gallery-slider .swiper-button-prev::after,
.jm-divi-gallery-slider .swiper-button-next::after {
    display: none !important; 
}