/* Krisumi Projects Slider */
.ks-projects-widget {
    --ks-visible: 5;
    --ks-center-scale: 1.12;
    --ks-center-y: 45px;
    --ks-side-opacity: .55;
    --ks-card-width: 250px;
    --ks-overlay: 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Futura PT', sans-serif;
}

.ks-projects-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 55px 0 20px;
    box-sizing: border-box;
}

.ks-project-track {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: max-content;
    transition: transform .8s cubic-bezier(.77,0,.18,1);
    will-change: transform;
}

.ks-project-card {
    flex: 0 0 var(--ks-card-width);
    width: var(--ks-card-width);
    box-sizing: border-box;
    position: relative;
    padding: 0;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: transform .8s cubic-bezier(.77,0,.18,1), opacity .8s ease;
    z-index: 1;
}

.ks-project-card-inner {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.ks-project-image-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.ks-project-image-wrap {
    position: relative;
    width: 100%;
    height: 345px;
    overflow: hidden;
    border-radius: 16px;
    background: #f1f1f1;
    isolation: isolate;
}

.ks-project-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease, filter .8s ease;
}

.ks-project-image-overlay {
    position: absolute;
    inset: 0;
    background: #ffffff;
    opacity: var(--ks-overlay);
    pointer-events: none;
    z-index: 1;
}

.ks-project-status {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 28px);
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--item-status-bg, #d9232e);
    color: var(--item-status-text, #ffffff);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: .8px;
    text-transform: uppercase;
    box-sizing: border-box;
}

.ks-project-content {
    padding: 20px 8px 75px;
}

.ks-project-title {
    margin: 0;
    color: #d9232e;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 1px;
}

.ks-project-description {
    margin: 7px auto 0;
    color: #777777;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 400;
}

.ks-project-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #777777;
    font-size: 12px;
    line-height: 1;
    text-decoration: none !important;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: color .3s ease, transform .3s ease;
}

.ks-project-button:hover {
    color: #d9232e;
    transform: translateX(2px);
}

.ks-project-button span {
    font-size: 17px;
    line-height: 1;
}

.ks-project-arrow {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 50%;
    background: #ffffff;
    color: #777777;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    transition: .3s ease;
}

.ks-project-arrow:hover {
    background: #d9232e;
    border-color: #d9232e;
    color: #ffffff;
}

.ks-project-prev {
    left: 10px;
}

.ks-project-next {
    right: 10px;
}

.ks-project-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 10px;
    min-height: 10px;
}

.ks-project-dot {
    display: block;
    width: 7px;
    height: 7px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: #b9b9b9;
    cursor: pointer;
    transition: width .3s ease, background .3s ease;
}

.ks-project-dot.active {
    width: 26px;
    border-radius: 10px;
    background: #d9232e;
}

.ks-projects-widget[data-center-mode="yes"] .ks-project-card:not(.is-center) {
    opacity: var(--ks-side-opacity);
}

.ks-projects-widget[data-center-mode="yes"] .ks-project-card.is-center {
    transform: translateY(var(--ks-center-y)) scale(var(--ks-center-scale));
    z-index: 4;
    opacity: 1;
}

.ks-projects-widget .ks-project-card.is-first-visible:not(.is-center) {
    transform: translateY(var(--ks-first-card-y, -50px));
}

.ks-projects-widget .ks-project-card.is-last-visible:not(.is-center) {
    transform: translateY(var(--ks-last-card-y, -50px));
}

.ks-projects-widget[data-center-mode="yes"] .ks-project-card.is-center .ks-project-image-wrap {
    box-shadow: 0 18px 45px rgba(0,0,0,.08);
}

.ks-projects-widget[data-center-mode="yes"] .ks-project-card.is-center .ks-project-image-wrap img {
    filter: none;
}


/* TABLET */

@media (max-width: 1024px) {

    .ks-projects-viewport {
        padding: 45px 0 20px;
    }

    .ks-project-card {
        flex-basis: var(--ks-card-width);
        width: var(--ks-card-width);
    }

    .ks-project-image-wrap {
        height: 280px;
    }

    .ks-project-title {
        font-size: 19px;
    }
}


/* MOBILE */

@media (max-width: 767px) {

    .ks-projects-viewport {
        padding: 30px 0 15px;
    }

    .ks-project-track {
        width: max-content;
        max-width: none;
        gap: 10px;
    }

    .ks-project-card {
        /*flex: 0 0 calc(100vw - 10px);*/
        width: calc(100vw - 10px);
        max-width: calc(100vw - 10px);
        opacity: 1 !important;
        transform: none !important;
        scale: 1 !important;
        filter: none !important;
    }

    .ks-project-image-wrap {
        height: 230px;
    }

    .ks-project-title {
        font-size: 18px;
    }

    .ks-project-description {
        font-size: 14px;
    }

    .ks-project-arrow {
        width: 38px;
        height: 38px;
    }

    .ks-project-prev {
        left: 0;
    }

    .ks-project-next {
        right: 0;
    }

    .ks-projects-widget[data-center-mode="yes"] .ks-project-card,
    .ks-projects-widget[data-center-mode="yes"] .ks-project-card:not(.is-center),
    .ks-projects-widget[data-center-mode="yes"] .ks-project-card.is-center,
    .ks-projects-widget .ks-project-card.is-first-visible:not(.is-center),
    .ks-projects-widget .ks-project-card.is-last-visible:not(.is-center) {
        opacity: 1 !important;
        transform: none !important;
        scale: 1 !important;
        filter: none !important;
    }

    .ks-projects-widget .ks-project-image-wrap,
    .ks-projects-widget .ks-project-image-wrap img {
        opacity: 1 !important;
        filter: none !important;
    }

    .ks-projects-widget .ks-project-image-overlay {
        opacity: 0 !important;
    }
}


/* STATUS IMAGE */

.ks-project-status-image {
    position: absolute;
    z-index: 4;
    display: block;
    width: auto;
    max-width: 45%;
    pointer-events: none;
}

.ks-project-status-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: contain;
}


/* TOP POSITIONS */

.ks-project-status-image.position-top-left {
    top: 15px;
    left: 15px;
}

.ks-project-status-image.position-top-center {
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.ks-project-status-image.position-top-right {
    top: 15px;
    right: 15px;
}


/* CENTER POSITIONS */

.ks-project-status-image.position-center-left {
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
}

.ks-project-status-image.position-center-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ks-project-status-image.position-center-right {
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
}


/* BOTTOM POSITIONS */

.ks-project-status-image.position-bottom-left {
    bottom: 15px;
    left: 15px;
}

.ks-project-status-image.position-bottom-center {
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.ks-project-status-image.position-bottom-right {
    bottom: 15px;
    right: 15px;
}


/* MOBILE STATUS IMAGE */

@media (max-width: 767px) {

    .ks-project-status-image {
        max-width: 50%;
    }

    .ks-project-status-image img {
        max-height: 65px;
    }

    .ks-project-status-image.position-top-left {
        top: 10px;
        left: 10px;
    }

    .ks-project-status-image.position-top-center {
        top: 10px;
    }

    .ks-project-status-image.position-top-right {
        top: 10px;
        right: 10px;
    }

    .ks-project-status-image.position-center-left {
        left: 10px;
    }

    .ks-project-status-image.position-center-right {
        right: 10px;
    }

    .ks-project-status-image.position-bottom-left {
        bottom: 10px;
        left: 10px;
    }

    .ks-project-status-image.position-bottom-center {
        bottom: 10px;
    }

    .ks-project-status-image.position-bottom-right {
        bottom: 10px;
        right: 10px;
    }

}




@media (min-width: 768px) and (max-width: 1024px) {
.ks-projects-widget {
        --ks-visible-tablet: 3;
    }
    .ks-projects-viewport {
        padding: 60px 0 20px;
        overflow: hidden;
    }

    .ks-projects-widget .ks-project-card.is-first-visible:not(.is-center),
    .ks-projects-widget .ks-project-card.is-last-visible:not(.is-center) {
        transform: translateY(-50px);
    }

}