.projects h2 {
    text-align: center;
}

.box__content .box__headline {
    width: 100%;
    text-align: center;
}

.box__content--large {
    padding-right: 20px;
    padding-left: 20px;
    text-align: center;
}


/* ==============================
   3D CARD FLIP SLIDER
============================== */

.box__slider {
    position: relative;
    height: 300px;
    overflow: hidden;
    perspective: 1200px;
}

.box__slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: stretch;
    justify-content: center;

    visibility: hidden;
    pointer-events: none;

    transform: rotateY(0deg);
    transform-origin: center center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.box__slide.active,
.box__slide.is-visible {
    visibility: visible;
}

.box__slide.active {
    pointer-events: auto;
    z-index: 2;
}

.box__slide.flip-out-left {
    z-index: 2;
    animation: boxFlipOutLeft 0.6s ease-in-out forwards;
}

.box__slide.flip-out-right {
    z-index: 2;
    animation: boxFlipOutRight 0.6s ease-in-out forwards;
}

.box__slide.flip-in-right {
    z-index: 3;
    animation: boxFlipInRight 0.6s ease-in-out forwards;
}

.box__slide.flip-in-left {
    z-index: 3;
    animation: boxFlipInLeft 0.6s ease-in-out forwards;
}

@keyframes boxFlipOutLeft {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(-90deg);
    }
}

@keyframes boxFlipOutRight {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(90deg);
    }
}

@keyframes boxFlipInRight {
    from {
        transform: rotateY(90deg);
    }

    to {
        transform: rotateY(0deg);
    }
}

@keyframes boxFlipInLeft {
    from {
        transform: rotateY(-90deg);
    }

    to {
        transform: rotateY(0deg);
    }
}


/* ==============================
   IMAGE SIZING
============================== */

.box__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ==============================
   TEXT / CLIENT FACES
============================== */

.box__text,
.box__clients {
    width: 100%;
    height: 100%;
    min-height: 100%;

    box-sizing: border-box;
    padding: 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    background: #125142;
    color: #fff;
}

.box__clients {
    background-color: #c39f05;
}


.box__text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.4em;
}

.box__clients h4 {
    margin-top: 0;
    color: #fff;
}

.box__clients ul {
    margin: 0;
    padding: 0;
    list-style: circle;
}

.box__clients li {
    margin-bottom: 10px;
}


/* ==============================
   ARROWS
============================== */

.box__nav {
    position: absolute;
    bottom: 31%;
    left: 0;
    right: 0;

    padding-left: 20px;
    padding-right: 20px;

    display: flex;
    justify-content: space-between;

    z-index: 20;
}

.box__arrow {
    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: 0.3s;
}

.box__arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.box__arrow:hover {
    background: #fff;
    transform: translateY(-2px);
}

.box__arrow img {
    width: 16px;
    transition: 0.3s;
}

.box__prev img {
    transform: rotate(180deg);
}

.box__prev:hover img {
    transform:
        rotate(180deg)
        translateX(3px);
}

.box__next:hover img {
    transform: translateX(3px);
}


/* ==============================
   PREVENT PARENT CARD HOVER ANIMATIONS
============================== */

.box:hover,
.box--with-image:hover,
.box--link:hover {
    transform: none !important;
}

.box:hover .box__image img,
.box:hover .box__image,
.box:hover .box__content,
.box:hover .box__headline {
    transform: none !important;
    opacity: 1 !important;
}


/* ==============================
   SLIDER DOTS
============================== */

.box__dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    z-index: 25;
}

.box__dot {
    width: 9px;
    height: 9px;

    padding: 0;
    margin: 0;

    border: 2px solid #fff;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.box__dot:hover {
    transform: scale(1.2);
}

.box__dot.active {
    background: #fff;
    transform: scale(1.2);
}

.box__dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}