
.customer-experience-carousel {
    margin: 24px 0;
    position: relative;
}

/* Viewport: hide scrollbar */
.customer-experience-carousel_viewport {
    overflow-x: auto;
    scroll-snap-type: none !important;
    -webkit-overflow-scrolling: touch;
    padding: 6px 16px 18px; /* was 6px 2px 18px */
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
}

.customer-experience-carousel_viewport::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Edge */
}

.customer-experience-carousel_viewport.is-animating {
    scroll-snap-type: none !important;
}

.card-customer-experience {
    flex: 0 0 calc((100% - 22px) / 2);
    min-width: 300px; /* prevents absurd shrinking */
    scroll-snap-align: start;
    border-radius: var(--umbraco-border-radius);
    background: #fff;
    max-width: 370px;
    min-height: 580px;
    margin-top: 75px;
    position: relative;

    &.no-image {
        min-height: 230px;
    }

    a {
        color: var(--umbraco-body-secondery-color);
    }
}
.customer-experience-carousel {
    .card-title {
        font-weight: 700;
    }

    .image-container {
        min-height: 220px;
        position: absolute;
        top: -80px;
        left: 50%;
        transform: translate(-50%, 0);
    }

    .card-img-cover {
        border-radius: 50%;
        object-fit: cover; /* Ensures image covers area without stretching */
        overflow: hidden;
        border: solid white 8px;
        background-color: #fff;
    }

    img.card-img-top {
        margin: 0;
        width: 220px;
        height: 220px;
    }

    .card-body {
        margin-top: 0;
        padding-left: 15px;
        padding-right: 15px;
    }
}

.customer-experience-carousel .card-title {
    margin-top: 200px;
}

.card-customer-experience {
    .card-title {
            font-weight: 700;
            overflow: hidden;
            max-height: 25px;
            min-height: 25px;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
    }
    .card-customer-experience-summery {
        padding-top: 15px;
        line-height: 1.75;
        display: -webkit-box;
        -webkit-line-clamp: 10;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-height: 300px;
        min-height: 300px;
    }
}
/* Track */
.customer-experience-carousel_track {
    display: flex;
    gap: 22px;
    padding: 0; /* viewport already pads */
}

.customer-experience-carousel_ctrl {
    pointer-events: auto;
    border: 1px solid rgba(0,0,0,.25);
    background: rgba(255,0,0,.92);
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #1d1d1d;
    border-radius: 6px;
    z-index: 1;

    .fa {
        color: #fff;
    }
}


    .customer-experience-carousel_ctrl:disabled {
        opacity: .4;
        cursor: default;
        box-shadow: none;
    }

.customer-experience-carousel_ctrl {
    transition: transform 180ms cubic-bezier(.2,.8,.2,1), background 180ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms cubic-bezier(.2,.8,.2,1);
}

    .customer-experience-carousel_ctrl:hover {
        transform: scale(1.06);
        background: rgba(255,0,0,1);
        box-shadow: 0 10px 22px rgba(0,0,0,.22);

        .fa {
            color: #fff;
        }
    }

/* Overlay controls */
.customer-experience-carousel_controls {
    position: absolute;
    left: -22px; /* push outside */
    right: -22px; /* push outside */
    top: 60%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0;
    z-index: 5;
}

.customer-experience-overview {
    .card-customer-experience {
        max-width: unset;
        min-width: 300px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .customer-experience-overview .card-customer-experience, .card-customer-experience {
        flex: 0 0 75vw;
        min-width: 0;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 992px) {
    .customer-experience-overview .card-customer-experience, .card-customer-experience {
        flex: 0 0 45vw;
        min-width: 0;
        max-width: unset;
        padding-left: 20px;
        padding-right: 20px;
    }
    .customer-experience-carousel_track {
        gap: 22px;
    }
}

@media (min-width: 1200px) {
    .card-customer-experience {
        flex: 0 0 calc((100% - 22px) / 2);
        min-width: 300px;
        max-width: 420px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .customer-experience-carousel_track {
        gap: 80px;
    }
}
