.av-bs-gallery-section{
    position:relative;
}

.av-bs-gallery{
    position:relative;
    width:min(100%,560px);
    margin:1.15rem auto 0;
    overflow:hidden;
    border-radius:18px;
    background:#181513;
    box-shadow:0 12px 32px rgba(31,22,17,.16);
}

.av-bs-carousel-inner{
    position:relative;
    width:100%;
    height:340px;
    overflow:hidden;
}

.av-bs-carousel-item{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    visibility:hidden;
    transition:opacity .6s ease-in-out;
    margin:0;
    background:#181513;
}

.av-bs-carousel-item.active{
    position:relative;
    opacity:1;
    visibility:visible;
    z-index:2;
}

.av-bs-carousel-item img{
    display:block;
    width:100%;
    height:340px;
    object-fit:contain;
    object-position:center;
    background:#181513;
}

.av-bs-control-prev,
.av-bs-control-next{
    position:absolute;
    top:0;
    bottom:0;
    z-index:5;
    display:flex;
    align-items:center;
    justify-content:center;
    width:15%;
    min-width:48px;
    padding:0;
    border:0;
    background:transparent;
    color:#fff;
    cursor:pointer;
    opacity:.78;
    transition:opacity .15s ease;
}

.av-bs-control-prev{left:0}
.av-bs-control-next{right:0}

.av-bs-control-prev:hover,
.av-bs-control-next:hover,
.av-bs-control-prev:focus-visible,
.av-bs-control-next:focus-visible{
    opacity:1;
}

.av-bs-control-icon{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:rgba(0,0,0,.48);
    backdrop-filter:blur(5px);
    -webkit-backdrop-filter:blur(5px);
    box-shadow:0 4px 14px rgba(0,0,0,.16);
    font-size:1.25rem;
    line-height:1;
}

.av-bs-visually-hidden{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
}

.av-bs-indicators{
    position:absolute;
    left:0;
    right:0;
    bottom:12px;
    z-index:6;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    margin:0;
    padding:0 70px;
    pointer-events:none;
}

.av-bs-indicators button{
    width:28px;
    height:4px;
    padding:0;
    border:0;
    border-radius:999px;
    background:rgba(255,255,255,.48);
    box-shadow:0 1px 3px rgba(0,0,0,.2);
    cursor:pointer;
    pointer-events:auto;
    transition:background .2s ease, transform .2s ease;
}

.av-bs-indicators button.active{
    background:#fff;
    transform:scaleY(1.35);
}

.av-bs-counter{
    position:absolute;
    top:12px;
    right:12px;
    z-index:6;
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:50px;
    height:28px;
    padding:0 9px;
    border-radius:999px;
    background:rgba(0,0,0,.52);
    color:#fff;
    font-size:.76rem;
    font-weight:800;
    backdrop-filter:blur(5px);
    -webkit-backdrop-filter:blur(5px);
}

.av-bs-lightbox{
    position:fixed;
    inset:0;
    z-index:10000;
    display:none;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:rgba(8,7,6,.94);
}

.av-bs-lightbox.is-open{
    display:flex;
}

.av-bs-lightbox img{
    display:block;
    max-width:92vw;
    max-height:88vh;
    width:auto;
    height:auto;
    object-fit:contain;
    border-radius:12px;
}

.av-bs-lightbox-close{
    position:absolute;
    top:18px;
    right:18px;
    width:44px;
    height:44px;
    border:0;
    border-radius:50%;
    background:rgba(255,255,255,.16);
    color:#fff;
    font-size:1.45rem;
    cursor:pointer;
}

@media(max-width:768px){
    .av-bs-gallery{
        width:min(100%,500px);
    }

    .av-bs-carousel-inner,
    .av-bs-carousel-item img{
        height:300px;
    }
}

@media(max-width:580px){
    .av-bs-gallery{
        width:100%;
        max-width:430px;
        border-radius:14px;
    }

    .av-bs-carousel-inner,
    .av-bs-carousel-item img{
        height:245px;
    }

    .av-bs-control-prev,
    .av-bs-control-next{
        width:18%;
        min-width:44px;
    }

    .av-bs-control-icon{
        width:34px;
        height:34px;
        font-size:1.05rem;
    }

    .av-bs-indicators{
        bottom:9px;
        gap:5px;
        padding:0 58px;
    }

    .av-bs-indicators button{
        width:22px;
        height:3px;
    }
}

@media(max-width:390px){
    .av-bs-carousel-inner,
    .av-bs-carousel-item img{
        height:215px;
    }
}

@media(prefers-reduced-motion:reduce){
    .av-bs-carousel-item{
        transition:none;
    }
}
