/* mod_bpd_slider - scoped Bootstrap 5 carousel styles
   Self-contained so it does not clash with the legacy template CSS.
   (C) 2026 biophotonics diagnostics <https://www.bpd.gmbh>
   License GNU General Public License version 2 or later; see LICENSE.txt
*/

.mod-bpd_slider.bpd-slider,
.bpd-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}

.bpd-slider .carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.bpd-slider .carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: -webkit-transform .6s ease-in-out;
    transition: transform .6s ease-in-out;
}

.bpd-slider .carousel-item.active,
.bpd-slider .carousel-item-next,
.bpd-slider .carousel-item-prev {
    display: block;
}

.bpd-slider .carousel-item-next:not(.carousel-item-start),
.bpd-slider .active.carousel-item-end {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
}

.bpd-slider .carousel-item-prev:not(.carousel-item-end),
.bpd-slider .active.carousel-item-start {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
}

.bpd-slider .carousel-item img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

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

.bpd-slider .carousel-indicators {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    padding: 0;
    margin-right: 15%;
    margin-bottom: 1rem;
    margin-left: 15%;
    list-style: none;
}

.bpd-slider .carousel-indicators button {
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    -webkit-box-flex: 0;
    flex: 0 1 auto;
    width: 30px;
    height: 3px;
    padding: 0;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: -999px;
    cursor: pointer;
    background-color: #fff;
    background-clip: padding-box;
    border: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    opacity: .5;
    -webkit-transition: opacity .6s ease;
    transition: opacity .6s ease;
}

.bpd-slider .carousel-indicators button.active {
    opacity: 1;
}

.bpd-slider .carousel-control-prev,
.bpd-slider .carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    width: 15%;
    padding: 0;
    color: #fff;
    text-align: center;
    background: none;
    border: 0;
    opacity: .5;
    -webkit-transition: opacity .15s ease;
    transition: opacity .15s ease;
}

.bpd-slider .carousel-control-prev {
    left: 0;
}

.bpd-slider .carousel-control-next {
    right: 0;
}

.bpd-slider .carousel-control-prev-icon,
.bpd-slider .carousel-control-next-icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100% 100%;
}

.bpd-slider .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.bpd-slider .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.bpd-slider .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;
}
