.carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.carousel {
    position: relative;
    /* width: 80%; */
    /* max-width: 800px; */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
}

.carousel-inner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    position: relative;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

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

.caption {
    position: absolute;
    bottom: 20px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel button.prev {
    left: 10px;
}

.carousel button.next {
    right: 10px;
}

.progress-bar {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    /* border-radius: 5px; */
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--accent-color);
    width: 0;
    transition: width 0.5s ease-in-out;
}