.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 50px;
    margin: 0 auto;
    background-color: white;
}
.carousel__header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 30px 0;

}
.carousel__title {
    font-size: 2.5rem;
    color: black;
    font-weight: bold;
}
.carousel__content {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel__item {
    flex: 0 0 auto;
    height: auto;
    max-height: 600px;
    margin: 0 10px;
    border-radius: 8px;
    overflow: hidden;
   
}

.carousel__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel__button {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 165, 0, 0.8);
    border: none;
    border-radius: 50%;
    font-size: 1.275rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
   
    z-index: 12;
    opacity: 0.5;
}

.carousel__button:hover {
    background-color: rgba(255, 165, 0, 0.9);
}

.carousel__button--prev {
    left: 20px;

}

.carousel__button--next {
    right: 20px;
}
@media (max-width: 768px) {
    .carousel__image {
        height: 300px;
    }
    .carousel__button {
        top: 50%;
    }
}
