.carousel {
    width: 100%;
    height: 400px;
    margin: 0 4px;
    overflow: hidden;
}

.carousel:hover .buttons {
    opacity: 1;
}

.container1 {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(200deg, pink, #918ef9);
}

.buttons {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.carousel:hover .buttons {
    opacity: 1;
}

.buttons {
    width: 100%;
    position: absolute;
    bottom: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.buttons div {
    width: 80px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 5px;
    margin: 0 25px;
    font-size: 10px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    user-select: none;
}

.item {
    width: 140px;
    height: 60px;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    border-radius: 10px;
    background-color: rgb(255, 255, 255);
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    caret-color: transparent;

}

.item {
    transition: 1s;
}

.item:nth-child(1),
.item:nth-child(2) {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: translateY(0);
    box-shadow: none;
    border-radius: 0;
}

.item:nth-child(3) {
    left: 70%;
}

.item:nth-child(4) {
    left: calc(70% + 150px);
}

.item:nth-child(5) {
    left: calc(70% + 300px);
}

.item:nth-child(n+6) {
    left: calc(70% + 450px);
    opacity: 0;
}

.item {
    box-shadow: 0 30px 50px #505050;
}