.banner {
    position: relative;
    width: 1140px;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-inner {
    width: 1140px;
    height: 400px;
}

.carousel-item img {
    object-fit: cover;
    object-position: center;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    overflow: hidden;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}