.gallery-overlay{
    position: fixed;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    z-index:10000;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
}
.gallery-overlay-inner{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .7rem;

}
.pswp button, .pswp button i{
    cursor: pointer!important;
}
.gallery-overlay-inner button{
    width: 45px;
    aspect-ratio: 1;
    border: none;
    font-size: 45px;
    text-align: center;
    padding: 0;
    border-radius: 8px;
    align-self: flex-end;
    position: absolute;
    color: #e20414;
    background-color: white;
    transition: all .2s;

}
.print-button{
    color: white;
    font-size: 45px;
}
.init-zoom-button{
    color: white;
    font-size: 45px;
    display: none!important;
    text-shadow:
            -1px -1px 0 black,
            1px -1px 0 black,
            -1px  1px 0 black,
            1px  1px 0 black;
}
.zoom-in-button{
    color: white;
    font-size: 45px;
    text-shadow:
            -1px -1px 0 black,
            1px -1px 0 black,
            -1px  1px 0 black,
            1px  1px 0 black;
}
#bmp-gallery .gallery-overlay-inner .bi-x{
    margin-left: unset!important;
    display: unset!important;
}
.gallery-overlay .gallery-overlay-inner button:hover,.gallery-overlay .gallery-overlay-inner .bi-x:hover{
    color: white!important;
    background-color: #e20414;
    transition: all .2s;
    border-radius: 8px;
}
.gallery-overlay-inner img{
    height: auto;
    object-fit: contain;


}
.gallery-overlay[data-open]{
    display: flex;
}
.gallery-image-container{
    display: flex;
    transition: transform .5s ease-in-out;

}
.gallery-image-container-overlay{
    max-width: 1600px;
    overflow: hidden;
    display: flex;
    height: 100vh;
    width: 100vw;
}
.gallery-single-image-container {
    position: relative;
    overflow: hidden;
}
.gallery-single-image-container img{
    transform-origin: center;
    transform-box: fill-box;
}
.gallery-single-image-container img:hover{
    cursor: zoom-in;
}
.gallery-single-image-container img.zoom-out:hover{
    cursor: zoom-out;
}
/* Arrière-plan flouté */
.blur-bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(10px);
    z-index: 0;
    top: 0; left: 0; width: 100vw; height: 100vh;
    transform: scale(1.2);
}

/* Pour que ton contenu reste au-dessus */
.gallery-single-image-container > *:not(.blur-bg-layer) {
    position: relative;
    z-index: 1;
}
.gallery-single-image-container{
    flex: 1 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;

}
.gallery-slider-control-container{
    display: flex;
    height: 100%;
    align-items: center;
}
.print-button{
    text-shadow:
            -1px -1px 0 black,
            1px -1px 0 black,
            -1px  1px 0 black,
            1px  1px 0 black;
    display: block!important;
}
button.gallery-close-button{
    width: 45px;
    height: 60px;
    max-height: unset;
    max-width: unset;
}

button.gallery-zoom-button{
    display: none!important;
}
.pswp__button--download,
.pswp__button--share {
    display: none !important;
}
button.gallery-close-button:after{
    content: "\F62A";
    width: 45px;
    height: 45px;
    font-family: bootstrap-icons;
    font-size: 45px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow:
            -1px -1px 0 black,
            1px -1px 0 black,
            -1px  1px 0 black,
            1px  1px 0 black;
}
button.gallery-close-button svg{
    display: none;
}
button.gallery-close-button:after{

}
.gallery-close-button i{
    background-color: white;

}
.gallery-slider-control-container button{
    align-self: unset;
    transform: unset;
    cursor: pointer;
    background-color: white;
    color: #e20414;
    transition: all .3s;
    max-width: 0;
    max-height: 0;
    overflow: visible;


}
.gallery-slider-control-container button i{
    background-color: white;
}
* button.gallery-btn-prev{
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
}
* button.gallery-btn-prev svg{
    display: none;
}
button.gallery-btn-prev:after{
    content: "\F284";
    width: 45px;
    height: 45px;
    font-family: bootstrap-icons;
    font-size: 45px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow:
            -1px -1px 0 black,
            1px -1px 0 black,
            -1px  1px 0 black,
            1px  1px 0 black;
}
* * button.gallery-btn-prev:hover{
    color: white;
    background-color:#e20414 ;
    transition: all .3s;
}
* button.gallery-btn-next{
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    margin: 0;
}
button.gallery-btn-next:after{
    content: "\F285";
    width: 45px;
    height: 45px;
    font-family: bootstrap-icons;
    font-size: 45px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow:
            -1px -1px 0 black,
            1px -1px 0 black,
            -1px  1px 0 black,
            1px  1px 0 black;
}

* button.gallery-btn-next svg{
    display: none;

}
* * button.gallery-btn-next:hover{
    color: white;
    background-color:#e20414 ;
    transition: all .3s;
}
.gallery-slider-control-container button i:hover{

}
.pswp * {
    cursor: default !important;
}