.carousel {
    width: 100%;
    max-width: 900px;
    height: 450px;
    margin: 40px auto;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    background: #000;
}

.track {
    display: flex;
    height: 100%;
    transition: transform 1.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

/* Arrows */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    user-select: none;
    background: rgba(0,0,0,0.4);
    border-radius: 5px;
    transition: 3s;
}

.nav:hover {
    background: rgba(0,0,0,0.7);
}

.prev { left: 10px; }
.next { right: 10px; }
