.carousel {
    position: relative;
    width: 100%;
    background: #ffffff;
    overflow: hidden;
}

.carousel .carousel__wrapper {
    display: flex;
}

.carousel .carousel__slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.carousel .carousel__slide-inner {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.carousel .carousel__content-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.carousel .carousel__content {
    padding: 2.5rem 2.5rem 2.5rem 1rem;
    box-sizing: border-box;
    max-width: calc(40rem + 1rem);
    width: 100%;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
}

.carousel .carousel__content .carousel__content-title {
    margin:0;
}

.carousel .carousel__content *:last-child {
    margin-bottom: 0;
}

.carousel .carousel__title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.carousel .carousel__text {
    font-size: 1rem;
    line-height: 1.5;
}

.carousel .carousel__media {
    position: relative;
    background-color: #e6e9f0;
    border-radius: 2rem;
    flex: 1;
    box-sizing: border-box;
    border: 0.063rem solid #c9cedb;
    min-height: 32.5rem;
    overflow: hidden;
}

.carousel .carousel__media-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px);
    transform: scale(1.08);
}

.carousel .carousel__media-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.carousel .carousel__media img {
    position: absolute;
    top: 16px;
    left: 16px;
    width: calc(100% - 32px);
    height: calc(100% - 32px);
    object-fit: contain;
    object-position: center center;
    z-index: 1;
}

.carousel .carousel__controls {
    position: absolute;
    left: 50%;
    bottom: 0.063rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgb(255 255 255 / 1%);
    border-radius: 0 2rem 0 1.75rem;
    backdrop-filter: blur(12px);
    color: #ffffff;
    z-index: 10;
    border: 0.063rem solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

.carousel button.carousel__button {
    width: 2.625rem;
    height: 2.625rem;
    border-radius: 100%;
    border: 0.063rem solid rgba(255, 255, 255, 0.75);
    box-sizing: border-box;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.2);
}

.carousel button.carousel__button:hover {
    border-color: #ffffff;
    background: rgba(0, 0, 0, 0.2);
}

.carousel .carousel__button-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #ffffff;
}

.carousel .carousel__pagination {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.carousel .swiper-pagination-bullet {
    width: 0.5rem;
    height: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    opacity: 1;
    border: 0.063rem solid #ffffff;
    box-sizing: border-box;
    flex-shrink: 0;
}

.carousel .swiper-pagination-bullet-active {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
    opacity: 1;
}

@media (max-width: 1024px) {
    .carousel .carousel__slide-inner {
        display: flex;
        flex-direction: column-reverse;
    }

    .carousel .carousel__media {
        height: 400px;
        min-height: unset;
        flex: unset;
        border-radius: 2rem;
        border: 0.063rem solid #c9cedb;
    }

    .carousel .carousel__content {
        padding: 1.5rem 1rem 1.5rem 1rem;
        max-width: unset;
        margin-left: 0;
    }

    .carousel .carousel__media img {
        top: 16px;
        left: 16px;
        width: calc(100% - 32px);
        height: calc(100% - 32px);
    }

    .carousel .carousel__controls {
        top: 20.188rem;
        right:0;
        left: unset;
        transform: unset;
        height: fit-content;
        border-radius: 2rem 0 2rem 0;
    }
}

@media (max-width: 767px) {
    .carousel .carousel__button {
        display: none !important;
    }

    .carousel .carousel__media {
        height: 18.75rem;
        min-height: unset;
    }

    .carousel .carousel__controls {
        border-radius: 2rem 2rem 0 0;
        top: 16.063rem;
        width: fit-content;
        left: 50%;
        transform: translateX(-50%);
    }
}

