.sbwmg-gallery{
    max-width:700px;
}

.sbwmg-main-media{
    border:1px solid #ddd;
    margin-bottom:15px;
    text-align:center;
    background:#fff;
}

.sbwmg-main-media img,
.sbwmg-main-media video,
.sbwmg-main-media iframe{
    width:100%;
    display:block;
}

.sbwmg-thumbnails{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.sbwmg-thumb{
    width:80px;
    height:80px;
    cursor:pointer;
    border:2px solid transparent;
    object-fit:cover;
    transition:.2s;
}

.sbwmg-thumb:hover{
    opacity: 1;
}

/* .sbwmg-thumb.active{
    border-color:#0073aa;
} */

.sbwmg-video-thumb{
    position:relative;
    overflow:hidden;
}

.sbwmg-video-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.sbwmg-play-icon{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width:28px;
    height:28px;
    border-radius:50%;
    background:rgba(0,0,0,.65);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    pointer-events:none;
}

/* ================================
   Swiper Gallery
================================ */

.sbwmg-gallery-wrapper{
    width:100%;
}

.sbwmg-gallery{
    width:100%;
    margin-bottom:20px;
}

.sbwmg-gallery .swiper-slide{
    display:flex;
    justify-content:center;
    align-items:center;
}

.sbwmg-gallery img,
.sbwmg-gallery iframe,
.sbwmg-gallery video{

    width:100%;
    display:block;
    border-radius:8px;

}

.sbwmg-thumbs .swiper-slide{

    height:90px;
    cursor:pointer;
    opacity:.5;
    transition:.3s;

}

.sbwmg-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    padding: 4px 4px 0px 4px;
    background: #ffffff;
    box-shadow: none;
}
.sbwmg-thumbs .swiper-slide-thumb-active img {
    box-shadow: none !important;
}
.sbwmg-thumbs img{

    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:6px;

}

.sbwmg-thumb-prev,
.sbwmg-thumb-next{

    color:#222;
    width:35px;
    height:35px;

}

.sbwmg-thumb-prev:after,
.sbwmg-thumb-next:after{

    font-size:18px;

}


.sbwmg-gallery{

    position:relative;

}

.sbwmg-gallery-prev,
.sbwmg-gallery-next{

    width:42px;
    height:42px;

    background:#fff;

    border-radius:50%;

    box-shadow:0 2px 8px rgba(0,0,0,.18);

    color:#222;

}

.sbwmg-gallery-prev:after,
.sbwmg-gallery-next:after{

    font-size:18px;
    font-weight:700;

}

.sbwmg-thumb-prev,
.sbwmg-thumb-next{

    width:36px;
    height:36px;

    background:#fff;

    border-radius:50%;

    box-shadow:0 2px 8px rgba(0,0,0,.15);

    color:#222;

}

.sbwmg-thumb-prev:after,
.sbwmg-thumb-next:after{

    font-size:15px;
    font-weight:700;

}

.sbwmg-thumb-wrapper{
    display:flex;
    align-items:center;
    gap:10px;
}

.sbwmg-thumbs{
    flex:1 1 auto;
    min-width:0;
    overflow:hidden;
}

/* Thumbnail Navigation */
.sbwmg-thumb-prev,
.sbwmg-thumb-next{

    position:relative !important;
    top:auto !important;
    left:auto !important;
    right:auto !important;
    transform:none !important;

    width:40px;
    height:40px;

    flex:0 0 40px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#fff;
    border:1px solid #ddd;
    border-radius:50%;

    box-shadow:0 2px 8px rgba(0,0,0,.15);

    color:#222;
    cursor:pointer;
    z-index:20;

}

.sbwmg-thumb-prev::after,
.sbwmg-thumb-next::after{

    font-size:18px;
    font-weight:700;

}


/* .sbwmg-gallery-wrapper {
    width: 45%;
    float: left;
} */

.sbwmg-main-image{

    transition:transform .25s ease;

    cursor:zoom-in;

    will-change:transform;

}

.sbwmg-lightbox{

    display:block;

    overflow:hidden;

    border-radius:8px;

}

.sbwmg-gallery .swiper-slide{

    overflow:hidden;

}

/* ===========================
   Main Gallery Navigation
=========================== */

.sbwmg-gallery .swiper-button-prev,
.sbwmg-gallery .swiper-button-next{

    width:44px !important;
    height:44px !important;

    border-radius:50%;
    background:#fff;

    border:1px solid rgba(0,0,0,.08);

    box-shadow:0 5px 20px rgba(0,0,0,.12);

    display:flex !important;
    align-items:center;
    justify-content:center;

    top:50%;
    transform:translateY(-50%) !important;

    margin:0 !important;

    color:transparent !important;

    transition:.25s;
}

.sbwmg-gallery .swiper-button-prev{
    left:15px;
}

.sbwmg-gallery .swiper-button-next{
    right:15px;
}

.sbwmg-gallery .swiper-button-prev:hover,
.sbwmg-gallery .swiper-button-next:hover{
    transform:translateY(-50%) scale(1.08);
}

.sbwmg-gallery .swiper-button-prev::after,
.sbwmg-gallery .swiper-button-next::after{

    content:"";
    width:18px;
    height:18px;
    display:block;

    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;

    font-size:0 !important;
}

.sbwmg-gallery .swiper-button-prev::after{

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");

}

.sbwmg-gallery .swiper-button-next::after{

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");

}

@media(max-width:768px){

    .sbwmg-thumbs .swiper-slide{

        width:75px;
        height:75px;

    }

}