.cs-featured-projects {
    position: relative;
    width: 100%;
    max-width: 1920px;
    box-sizing: border-box;
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
    color: var(--cs-project-card-text, #07111f);
}

.cs-featured-projects-viewport {
    --cs-project-card-width: clamp(280px, 31vw, 568px);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--cs-project-card-width);
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 max(4px, calc((100% - var(--cs-project-card-width)) / 2)) 28px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.cs-featured-projects-viewport::-webkit-scrollbar {
    display: none;
}

.cs-project-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #dfe8ec;
    scroll-snap-align: center;
}

.cs-project-card-link,
.cs-project-card-image,
.cs-project-card-image img {
    display: block;
}

.cs-project-card-link {
    position: relative;
    min-height: clamp(330px, 30vw, 460px);
    color: inherit;
    text-decoration: none;
}

.cs-project-card-image {
    height: 100%;
    min-height: clamp(330px, 30vw, 460px);
}

.cs-project-card-image img {
    width: 100%;
    height: 100%;
    min-height: clamp(330px, 30vw, 460px);
    object-fit: cover;
    transition: transform .35s ease;
}

.cs-project-card-link:hover .cs-project-card-image img {
    transform: scale(1.035);
}

.cs-project-card-panel {
    position: absolute;
    right: 34px;
    bottom: 0;
    left: 34px;
    min-height: 108px;
    padding: 26px 96px 22px 30px;
    overflow: hidden;
    background: var(--cs-project-button-hover, #2da4aa);
    color: #fff;
}

.cs-project-card-panel::after {
    content: "";
    position: absolute;
    top: -62px;
    right: -28px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--cs-project-card-bg, #fff);
}

.cs-project-card-title {
    display: block;
    font-size: clamp(20px, 1.55vw, 26px);
    font-weight: 800;
    line-height: 1.2;
}

.cs-project-card-kicker {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}

.cs-project-card-arrow {
    position: absolute;
    z-index: 1;
    top: 30px;
    right: 22px;
    color: var(--cs-project-button-hover, #2da4aa);
    font-size: 28px;
    line-height: 1;
}

.cs-featured-projects-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 8px;
}

.cs-featured-projects-arrow,
.cs-featured-projects-dots button {
    appearance: none;
    border: 0;
    cursor: pointer;
}

.cs-featured-projects-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0f3f5;
    color: #111821;
    font-size: 18px;
    transition: background .2s ease, color .2s ease;
}

.cs-featured-projects-arrow:hover {
    background: var(--cs-project-button-hover, #2da4aa);
    color: #fff;
}

.cs-featured-projects-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 38px;
}

.cs-featured-projects-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background: #cfd3d6;
}

.cs-featured-projects-dots button.is-active {
    width: 11px;
    height: 11px;
    background: #020202;
}

@media (max-width: 900px) {
    .cs-featured-projects-viewport {
        --cs-project-card-width: clamp(320px, 72vw, 568px);
        gap: 16px;
    }

    .cs-project-card-link,
    .cs-project-card-image,
    .cs-project-card-image img {
        min-height: clamp(300px, 52vw, 420px);
    }

    .cs-project-card-panel {
        right: 18px;
        left: 18px;
        padding-left: 22px;
    }
}

@media (max-width: 640px) {
    .cs-featured-projects {
        padding-right: 16px;
        padding-left: 16px;
    }

    .cs-featured-projects-viewport {
        --cs-project-card-width: clamp(260px, 88vw, 568px);
        padding-bottom: 22px;
    }

    .cs-project-card-link,
    .cs-project-card-image,
    .cs-project-card-image img {
        min-height: 360px;
    }

    .cs-project-card-panel {
        right: 0;
        left: 0;
        min-height: 98px;
        padding: 22px 86px 18px 22px;
    }

    .cs-project-card-panel::after {
        top: -58px;
        right: -38px;
        width: 140px;
        height: 140px;
    }

    .cs-project-card-title {
        font-size: 21px;
    }

    .cs-featured-projects-controls {
        gap: 12px;
    }

    .cs-featured-projects-dots {
        gap: 12px;
    }
}
