.pec-portfolio-carousel {
    --pec-gap: 30px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 0 50px;
    background: #eeeeee;
    overflow: hidden;
}

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

.pec-swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.pec-track {
    display: flex;
    align-items: stretch;
    gap: var(--pec-gap);
    width: max-content;
    transition: transform 650ms cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}

.pec-slide {
    height: auto;
    display: flex;
    justify-content: center;
    flex: 0 0 315px;
    min-width: 0;
}

.pec-card {
    width: 315px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 22px;
    background: #fff;
    text-decoration: none;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

a.pec-card:hover,
.pec-slide:hover .pec-card {
    background-color: #5d3f8f;
}

.pec-card img {
    display: block;
    width: auto;
    max-width: 82%;
    max-height: 75%;
    height: auto;
    object-fit: contain;
    opacity: .55;
    transition: opacity .25s ease, filter .25s ease, transform .25s ease;
}

a.pec-card:hover img,
.pec-slide:hover .pec-card img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.pec-arrows {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 38px;
    margin-top: 50px;
}

.pec-arrow {
    width: 60px;
    height: 60px;
    padding: 0;
    border: 1px solid #222;
    border-radius: 50%;
    background: transparent;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 27px;
    line-height: 1;
    font-family: Arial, sans-serif;
    transition: background-color .2s ease, color .2s ease, opacity .2s ease;
    position: relative;
    z-index: 5;
}

.pec-arrow:hover {
    background: #111;
    color: #fff;
}

.pec-arrow:disabled {
    opacity: .35;
    cursor: default;
}

.pec-arrow:disabled:hover {
    background: transparent;
    color: #111;
}

@media (max-width: 1024px) {
    .pec-portfolio-carousel {
        padding-bottom: 40px;
    }

    .pec-arrows {
        margin-top: 35px;
    }

    .pec-slide,
    .pec-card {
        width: 100%;
    }

    .pec-slide {
        flex-basis: calc((100vw - 20px) / 2);
    }
}

@media (max-width: 767px) {
    .pec-portfolio-carousel {
        padding-bottom: 30px;
    }

    .pec-arrows {
        margin-top: 25px;
        gap: 20px;
    }

    .pec-arrow {
        width: 52px;
        height: 52px;
        font-size: 23px;
    }

    .pec-slide {
        flex-basis: 100%;
    }

    .pec-card {
        height: 100px;
        padding: 12px 18px;
    }
}
