.v4ds-hero {
    --v4ds-max-width: 1400px;
    --v4ds-gap: 16px;
    --v4ds-card-inactive-height: min(44vh, 320px);
    --v4ds-card-active-height: min(56vh, 420px);
    --v4ds-color-text: #fff;

    position: relative;
    width: 100%;
    padding: 48px 0 0px;
    overflow: hidden;
}

.v4ds-hero__inner {
    width: 100%;
    max-width: var(--v4ds-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.v4ds-hero__title {
    position: relative;
    z-index: 2;
    margin: 0 0 -28px;
    color: var(--v4ds-color-text);
    font-family: "Georgia", serif;
    font-size: clamp(32px, 5.4vw, 76px);
    font-style: italic;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    pointer-events: none;
}

.v4ds-slider {
    position: relative;
    z-index: 1;
    width: 100%;
}

.v4ds-slider--mobile {
    display: none;
}

.v4ds-slider__viewport {
    width: 100%;
    overflow: visible;
    padding: 0px 0 16px;
}

.v4ds-slider__track {
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        minmax(360px, 1.7fr)
        minmax(220px, 1fr)
        minmax(220px, 1fr);
    gap: var(--v4ds-gap);
    width: 100%;
    align-items: end;
}

.v4ds-card {
    position: relative;
    z-index: 1;
    opacity: 0.78;
    filter: brightness(0.86);
    transition:
        opacity 0.55s ease,
        filter 0.55s ease;
}

.v4ds-card--slot-0 {
    z-index: 2;
    opacity: 0.84;
}

.v4ds-card--slot-3 {
    z-index: 0;
    opacity: 0.68;
}

.v4ds-card.is-active {
    z-index: 5;
    opacity: 1;
    filter: none;
}

.v4ds-card__media {
    position: relative;
    width: 100%;
    height: var(--v4ds-card-inactive-height);
    border-radius: 10px;
    overflow: hidden;
    background-color: #576870;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.18);
    transition:
        height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.55s ease;
}

.v4ds-card.is-active .v4ds-card__media {
    height: var(--v4ds-card-active-height);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.v4ds-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(87, 104, 112, 0.2) 0%,
        rgba(87, 104, 112, 1) 100%
    );
}

.v4ds-card__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
    padding: 24px 22px;
    color: var(--v4ds-color-text);
    text-align: left;
}

.v4ds-card__label {
    display: inline-block;
    margin-bottom: 8px;
    font-family: "Cera PRO", "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
}

.v4ds-card__title {
    margin: 0 0 6px;
    font-family: "Georgia", serif;
    font-size: 18px;
    font-style: italic;
    font-weight: 600;
    line-height: 1.2;
    color: #fff !important;
}

.v4ds-card.is-active .v4ds-card__title {
    font-size: 25px;
    line-height: 28px;
}

.v4ds-card__subtitle {
    margin: 0 0 8px;
    font-family: "Cera PRO", "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.3;
    opacity: 0.95;
}

.v4ds-card__description {
    margin: 4% 0 0;
    font-family: "Cera PRO", "Roboto", sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 31px;
}

.v4ds-slider--desktop .v4ds-card:not(.is-active) .v4ds-card__subtitle,
.v4ds-slider--desktop .v4ds-card:not(.is-active) .v4ds-card__description {
    display: none;
}

@media (max-width: 1399px) {
    .v4ds-hero {
        --v4ds-card-inactive-height: min(42vh, 300px);
        --v4ds-card-active-height: min(52vh, 380px);
    }

    .v4ds-slider__track {
        grid-template-columns:
            minmax(190px, 1fr)
            minmax(300px, 1.65fr)
            minmax(190px, 1fr)
            minmax(190px, 1fr);
    }

    .v4ds-card__description {
        font-size: 1.6rem;
        line-height: 1.4;
    }
}

@media (max-width: 1024px) {
    .v4ds-hero {
        --v4ds-gap: 12px;
        --v4ds-card-inactive-height: min(38vh, 280px);
        --v4ds-card-active-height: min(46vh, 340px);
        padding: 40px 0 48px;
    }

    .v4ds-slider__track {
        grid-template-columns:
            minmax(150px, 1fr)
            minmax(260px, 1.8fr)
            minmax(150px, 1fr)
            minmax(150px, 1fr);
    }

    .v4ds-hero__title {
        margin-bottom: -16px;
        font-size: clamp(28px, 6vw, 52px);
    }

    .v4ds-card__content {
        padding: 20px 16px;
    }

    .v4ds-card__title {
        font-size: 15px;
    }

    .v4ds-card.is-active .v4ds-card__title {
        font-size: 22px;
        line-height: 26px;
    }

    .v4ds-card__description {
        font-size: 15px;
        line-height: 19px;
    }
}

@media (max-width: 767px) {
    .v4ds-hero {
        --v4ds-mobile-card-width: 80vw;
        --v4ds-card-active-height: min(38vh, 320px);
        padding: 32px 0 40px;
    }

    .v4ds-hero__inner {
        padding: 0;
    }

    .v4ds-hero__title {
        margin-bottom: -8px;
        font-size: clamp(24px, 8vw, 36px);
    }

    .v4ds-slider--desktop {
        display: none;
    }

    .v4ds-slider--mobile {
        display: block;
        position: relative;
    }

    .v4ds-slider__viewport--mobile {
        position: relative;
        overflow: hidden;
        padding-top: 8px;
    }

    .v4ds-slider__track--mobile {
        display: flex;
        align-items: flex-end;
        gap: 0;
        width: 100%;
        will-change: transform;
    }

    .v4ds-slider--mobile .v4ds-card {
        flex: 0 0 100%;
        display: flex;
        justify-content: center;
        width: 100%;
        min-width: 100%;
        opacity: 1;
        filter: none;
    }

    .v4ds-slider--mobile .v4ds-card__media {
        width: var(--v4ds-mobile-card-width);
        max-width: var(--v4ds-mobile-card-width);
        height: var(--v4ds-card-active-height);
    }

    .v4ds-slider--mobile .v4ds-card__content {
        padding: 22px 18px;
    }

    .v4ds-slider--mobile .v4ds-card__title {
        font-size: 22px;
        line-height: 26px;
    }

    .v4ds-slider--mobile .v4ds-card__subtitle,
    .v4ds-slider--mobile .v4ds-card__description {
        display: block;
        color: #fff;
    }

    .v4ds-slider--mobile .v4ds-card__description {
        font-size: 17px;
        line-height: 1.35;
    }

    .v4ds-slider__controls {
        position: absolute;
        top: 8px;
        left: 0;
        right: 0;
        height: var(--v4ds-card-active-height);
        z-index: 6;
        pointer-events: none;
    }

    .v4ds-hero .v4ds-nav {
        pointer-events: auto;
        position: absolute;
        top: 34%;
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        height: auto;
        padding: 2px;
        border: 1px solid #fff !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #fff !important;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        transform: translateY(-50%);
        transition: opacity 0.2s ease;
    }

    .v4ds-hero .v4ds-nav svg {
        display: block;
        width: 28px;
        height: 28px;
        fill: #fff !important;
    }

    .v4ds-hero .v4ds-nav:hover,
    .v4ds-hero .v4ds-nav:focus {
        opacity: 0.75;
        border-color: #fff !important;
        background: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .v4ds-hero .v4ds-nav--prev {
        left: max(2px, calc((100% - var(--v4ds-mobile-card-width)) / 2 - 36px));
    }

    .v4ds-hero .v4ds-nav--next {
        right: max(2px, calc((100% - var(--v4ds-mobile-card-width)) / 2 - 36px));
    }

    .v4ds-slider__dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }

    .v4ds-hero .v4ds-dot {
        width: 28px;
        height: 4px;
        padding: 0;
        border: 0 !important;
        border-radius: 2px;
        background-color: rgba(255, 255, 255, 0.35) !important;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        box-shadow: none !important;
        transition: background-color 0.25s ease, width 0.25s ease, opacity 0.25s ease;
    }

    .v4ds-hero .v4ds-dot.is-active {
        width: 36px;
        background-color: #fff !important;
        opacity: 1;
    }
}
