/*
 *  Bootstrap Carousel Effect Ken Burns
 * ===========================================================================*/

@keyframes kenburns {
    0% {
        transform: scale(1);
        transition: transform 20000ms linear 0s;
    }

    100% {
        transform: scale(1.3);
        transition: transform 20000ms linear 0s;
    }
}

/* Carousel Wrapper */
.kb3_carousel {
    overflow: hidden;
    max-height: 230px
}

    /* Carousel Items */
    .kb3_carousel .carousel-item {
        transition: transform .6s ease-in-out 0s, opacity ease-in-out .6s;
    }

        .kb3_carousel .carousel-item.active {
            transition: transform .6s ease-in-out 0s, opacity ease-in-out .6s;
        }

    .kb3_carousel > .carousel-inner > .carousel-item > img,
    .kb3_carousel > .carousel-inner > .carousel-item > a > img {
        /*opacity: 0.8;*/
        animation: kenburns 20000ms linear 0s infinite alternate;
    }

    .kb3_carousel .carousel-item-next.carousel-item-start .carousel-caption,
    .kb3_carousel .carousel-item-prev.carousel-item-end .carousel-caption {
        z-index: 0;
        opacity: 0;
    }

/* Carousel Captions */
.kb3_caption {
    right: 7%;
    left: 7%;
    bottom: 25%;
    padding: 0;
    width: 80%;
}

.kb3_caption-left {
    margin-right: auto;
}

.kb3_caption-right {
    margin-left: auto;
}

.kb3_caption-center {
    margin: auto;
}

.kb3_caption h1,
.kb3_caption h3 {
    padding: 0.5rem 0;
    margin-bottom: 0;
}

.kb3_caption h1 {
    animation-delay: 1s;
    color: #bf392b;
    background: #fff;
}

.kb3_caption h3 {
    animation-delay: 1.5s;
    color: #fff;
    background: rgba(0 0 0 / 0.5);
}

@media (min-width: 768px) {
    .kb3_caption {
        bottom: 37%;
        width: 40%;
    }
}

@media (min-width: 1200px) {
    .kb3_caption {
        bottom: 45%;
    }
}

/* Controls */
.kb3_control-prev,
.kb3_control-next {
    width: 3.5rem;
    height: 3.5rem;
    margin: auto 0;
    opacity: 0;
    color: #fff;
    background: rgba(0 0 0 / 0.7);
}

.kb3_carousel:hover .kb3_control-prev,
.kb3_carousel:hover .kb3_control-next {
    opacity: 1;
}

.kb3_control-prev {
    left: 1%;
}

.kb3_control-next {
    right: 1%;
}

    .kb3_control-prev:hover,
    .kb3_control-prev:focus,
    .kb3_control-next:hover,
    .kb3_control-next:focus {
        color: #fff;
        background: rgba(0 0 0 / 1);
    }

/* Support for dark mode */
[data-bs-theme = "dark"] .carousel .carousel-control-next-icon,
[data-bs-theme = "dark"] .carousel .carousel-control-prev-icon {
    filter: none;
}
