.ivvt-carousel {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    font-family: "Work Sans", sans-serif;
    overflow-x: hidden;
    overflow-x: clip;
    overflow-y: visible;
    --ivvt-scene-height: 400px;
    --ivvt-card-width: 600px;
    --ivvt-card-height: 340px;
    --ivvt-card-radius: 20px;
    --ivvt-caption-max-width: 340px;
    --ivvt-arrow-bg: #ffffff;
    --ivvt-arrow-border: #dddddd;
    --ivvt-arrow-icon: #333333;
    --ivvt-arrow-hover-bg: #111111;
    --ivvt-arrow-hover-border: #111111;
    --ivvt-arrow-hover-icon: #ffffff;
    --ivvt-dot-color: #cccccc;
    --ivvt-dot-active-color: #111111;
}

.ivvt-carousel *,
.ivvt-carousel *::before,
.ivvt-carousel *::after {
    box-sizing: border-box;
}

.ivvt-carousel:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 8px;
}

.ivvt-carousel__scene {
    position: relative;
    width: 100%;
    height: var(--ivvt-scene-height);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 800px;
    perspective-origin: 50% 50%;
    overflow: visible;
}

.ivvt-carousel__track {
    position: relative;
    width: var(--ivvt-card-width);
    height: var(--ivvt-card-height);
    transform-style: preserve-3d;
}

.ivvt-carousel__card {
    position: absolute;
    inset: 0;
    width: var(--ivvt-card-width);
    height: var(--ivvt-card-height);
    border-radius: var(--ivvt-card-radius);
    overflow: hidden;
    background: #000000;
    cursor: pointer;
    will-change: transform, opacity, filter;
    transition:
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.ivvt-carousel__image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
    user-select: none;
}

.ivvt-carousel__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 64px 30px 28px 28px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    pointer-events: none;
}

.ivvt-carousel__title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 7px;
    letter-spacing: -0.3px;
}

.ivvt-carousel__description {
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    margin: 0;
    max-width: var(--ivvt-caption-max-width);
}

.ivvt-carousel__card[data-pos="0"] {
    z-index: 10;
    transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
    opacity: 1;
    filter: brightness(1);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    pointer-events: auto;
}

.ivvt-carousel__card[data-pos="-1"] {
    z-index: 7;
    transform: translateX(calc(var(--ivvt-card-width) * -0.7167)) translateZ(-160px) rotateY(16deg) scale(0.8);
    opacity: 0.9;
    filter: brightness(0.65);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.ivvt-carousel__card[data-pos="1"] {
    z-index: 7;
    transform: translateX(calc(var(--ivvt-card-width) * 0.7167)) translateZ(-160px) rotateY(-16deg) scale(0.8);
    opacity: 0.9;
    filter: brightness(0.65);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.ivvt-carousel__card[data-pos="-2"] {
    z-index: 4;
    transform: translateX(calc(var(--ivvt-card-width) * -1.2667)) translateZ(-300px) rotateY(26deg) scale(0.6);
    opacity: 0.7;
    filter: brightness(0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    pointer-events: auto;
}

.ivvt-carousel__card[data-pos="2"] {
    z-index: 4;
    transform: translateX(calc(var(--ivvt-card-width) * 1.2667)) translateZ(-300px) rotateY(-26deg) scale(0.6);
    opacity: 0.7;
    filter: brightness(0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    pointer-events: auto;
}

.ivvt-carousel__card[data-pos="-3"],
.ivvt-carousel__card[data-pos="3"],
.ivvt-carousel__card[data-pos="-4"],
.ivvt-carousel__card[data-pos="4"] {
    z-index: 0;
    transform: translateX(0) translateZ(-700px) scale(0.2);
    opacity: 0;
    pointer-events: none;
}

.ivvt-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 38px;
}

.ivvt-carousel__button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--ivvt-arrow-border);
    background: var(--ivvt-arrow-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09);
    transition: background 0.2s, border-color 0.2s, transform 0.18s;
    padding: 0;
}

.ivvt-carousel__button:focus {
    background: var(--ivvt-arrow-bg);
    border-color: var(--ivvt-arrow-border);
    outline: none;
}

.ivvt-carousel__button:hover,
.ivvt-carousel__button:focus-visible {
    background: var(--ivvt-arrow-hover-bg);
    border-color: var(--ivvt-arrow-hover-border);
    transform: scale(1.09);
    outline: none;
}

.ivvt-carousel__button:hover svg,
.ivvt-carousel__button:focus-visible svg {
    stroke: var(--ivvt-arrow-hover-icon);
}

.ivvt-carousel__button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--ivvt-arrow-icon);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s;
    display: block;
}

.ivvt-carousel__dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ivvt-carousel__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ivvt-dot-color);
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.3s, width 0.3s, border-radius 0.3s;
}

.ivvt-carousel__dot:focus {
    background: var(--ivvt-dot-color);
    outline: none;
}

.ivvt-carousel__dot.is-active {
    background: var(--ivvt-dot-active-color);
    width: 26px;
    border-radius: 5px;
}

.ivvt-carousel__dot:hover:not(.is-active),
.ivvt-carousel__dot:focus-visible:not(.is-active) {
    background: #888888;
    outline: none;
}

@media (max-width: 1200px) {
    .ivvt-carousel {
        --ivvt-scene-height: 360px;
        --ivvt-card-width: 520px;
        --ivvt-card-height: 295px;
    }
}

@media (max-width: 960px) {
    .ivvt-carousel {
        --ivvt-scene-height: 300px;
        --ivvt-card-width: 420px;
        --ivvt-card-height: 238px;
    }

    .ivvt-carousel__scene {
        perspective: 1200px;
    }

    .ivvt-carousel__title {
        font-size: 18px;
    }

    .ivvt-carousel__description {
        font-size: 13px;
    }

    .ivvt-carousel__caption {
        padding: 40px 20px 20px;
    }
}

@media (max-width: 680px) {
    .ivvt-carousel {
        --ivvt-scene-height: 56vw;
        --ivvt-card-width: 68vw;
        --ivvt-card-height: 40vw;
    }

    .ivvt-carousel__scene {
        perspective: 900px;
    }

    .ivvt-carousel__title {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .ivvt-carousel__description {
        font-size: 10px;
    }

    .ivvt-carousel__caption {
        padding: 24px 12px 12px;
    }

    .ivvt-carousel__controls {
        gap: 10px;
        margin-top: 22px;
    }

    .ivvt-carousel__button {
        width: 36px;
        height: 36px;
    }

    .ivvt-carousel__button svg {
        width: 14px;
        height: 14px;
    }

    .ivvt-carousel__dot {
        width: 7px;
        height: 7px;
    }

    .ivvt-carousel__dot.is-active {
        width: 18px;
    }
}

@media (max-width: 420px) {
    .ivvt-carousel {
        --ivvt-scene-height: 62vw;
        --ivvt-card-width: 72vw;
        --ivvt-card-height: 44vw;
    }

    .ivvt-carousel__scene {
        perspective: 700px;
    }

    .ivvt-carousel__title {
        font-size: 12px;
    }

    .ivvt-carousel__description {
        font-size: 10px;
    }

    .ivvt-carousel__card[data-pos="-2"],
    .ivvt-carousel__card[data-pos="2"] {
        opacity: 0.55;
    }
}
