
.carousel {
    display: flex;
    position: relative;
    width: 100%;         /* Ensure carousel takes full width of its container */
    overflow: hidden;    /* Hide overflow to ensure clean transitions */
}

.carousel-track {
    display: flex;
    transition: transform 0.25s ease-in-out;
}

.carousel-slide {
    min-width: 100%;  /* Each slide takes up 100% of the container's width */
    display: flex;
    justify-content: center;  /* Center horizontally */
    align-items: center;      /* Center vertically */
    height: 100%;             /* Ensure the slide takes full height of the container */
    box-sizing: border-box;   /* Include padding in width and height */
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: auto;
    object-fit: contain;   /* Ensure media fits within the container without distorting */
    max-width: 100%;       /* Ensure media does not exceed slide width */
    max-height: 100%;      /* Ensure media does not exceed slide height */
}

.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;
    z-index: 10;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}