.case-studies-wrap {
    position: relative;
    padding-top: 50px;
}

.case-studies {
    margin-bottom: 0;
    position: relative;
}

.case-studies-section-title {
    font-family: "Proxima";
    font-size: 22px;
    line-height: 30px;
    letter-spacing: 2.3px;
    color: var(--white);
    position: relative;
    margin-bottom: 0;
    padding-bottom: 10px;
    font-weight: 600;
    max-width: 30%;
}

@media only screen and (max-width: 768px) {
    .case-studies-section-title {
        font-size: 16px;
        line-height: 30px;
        padding-bottom: 7px;
        max-width: 100%;
    }

}

.case-studies-section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 75px;
    height: 5px;
    background-color: var(--white);
}

@media only screen and (max-width: 768px) {
    .case-studies-section-title::before {
        height: 4px;
        width: 43px;
    }
}

.case-study-item {
    width: 100%;
    padding: 50px 0 50px;
    max-width: 1168px;
    margin: 0 auto;
}

@media only screen and (max-width: 768px) {
    .case-study-item {
        padding: 25px 10px;
    }
}

.case-study-item a:hover .case-study-item__text .case-study-item__underline {
    transform: scaleX(1);
}

.case-study-item__inner {
    display: flex;
    justify-content: space-between;
    height: 322px;
    padding-left: 80px;
    padding-top: 70px;
}

@media only screen and (max-width: 1204px) {
    .case-study-item__inner {
        padding-left: 70px;
    }
}

@media only screen and (max-width: 768px) {
    .case-study-item__inner {
        flex-direction: column;
        padding-top: 70px;
        padding-left: 20px;
        padding-right: 20px;
        height: auto;
    }
}

.case-study-item__text {
    max-width: 380px;
    margin-right: 20px;
    overflow: hidden;
}

.case-study-item__text .case-study-item__underline {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--grey-medium);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s .2s ease-in-out;
}

.case-study-item__eyebrow {
    display: block;
    font-size: 20px;
    line-height: 25px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.case-study-item__title {
    max-width: 480px;
    font-weight: 800;
}

.case-study-item__image {
    width: auto;
    height: calc(100% + 50px + 70px);
    margin: calc(-50px - 70px) auto 0;
    overflow: hidden;
}

@media only screen and (max-width: 768px) {
    .case-study-item__image {
        margin: 0;
        height: 400px;
    }
}

.case-study-item__image img {
    display: block;
    height: 100%;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    object-fit: contain;
}

@media only screen and (max-width: 768px) {
    .case-study-item__image img {
        margin: 0 auto;
    }
}

/* Grid layout */
.case-studies-wrap.grid-layout {
    padding-top: 50px;
    padding-bottom: 50px;
}

@media only screen and (max-width: 1024px) {
    .grid-layout .case-studies-section-title {
        margin-bottom: 70px;
    }
}

.grid-layout .case-studies-items {
    display: flex;
    justify-content: space-between;
    margin: 0 -15px;
}

.grid-layout .case-studies-items.owl-carousel {
    width: auto;
}

@media only screen and (max-width: 1024px) {
    .grid-layout .case-studies-items {
        margin: 0 -10px;
    }
}

@media only screen and (max-width: 768px) {
    .grid-layout .case-studies-items {
        margin: 0;
    }
}

.grid-layout .case-study-item {
    padding: 0 15px;
    width: calc(100% / 3);
    max-width: 100%;
    position: relative;
}

@media only screen and (max-width: 1024px) {
    .grid-layout .case-study-item {
        padding: 0 10px;
    }
}

@media only screen and (max-width: 768px) {
    .grid-layout .case-study-item {
        width: 100%;
        padding: 0;
    }
}

.grid-layout .case-study-item:nth-child(odd) {
    margin-top: 150px;
}

@media only screen and (max-width: 768px) {
    .grid-layout .case-study-item:nth-child(odd) {
        margin-top: 0;
    }
}

.grid-layout .case-study-item:nth-child(even) {
    margin-top: -25px;
    margin-bottom: 150px;
}

@media only screen and (max-width: 768px) {
    .grid-layout .case-study-item:nth-child(even) {
        margin-top: 0;
        margin-bottom: 0;
    }
}

.grid-layout .case-study-item__inner {
    padding: 50px 25px;
    flex-direction: column;
    justify-content: initial;
    height: 100%;
}

@media only screen and (max-width: 1024px) {
    .grid-layout .case-study-item__inner {
        padding: 50px 15px;
    }

    .grid-layout .case-study-item__eyebrow {
        font-size: 16px;
    }
}

@media only screen and (max-width: 768px) {
    .grid-layout .case-study-item__inner {
        padding: 10px 15px;
    }
}

.grid-layout .case-study-item__title {
    margin-bottom: 0;
    max-width: 100%;
}

@media only screen and (max-width: 768px) {

    .grid-layout .case-study-item__title {
        font-size: 26px;
        line-height: 30px;
    }
}


.grid-layout .case-study-item__text {
    margin-right: 0;
}

.grid-layout .case-study-item:nth-child(odd) .case-study-item__text {
    margin-top: 25px;
}

@media only screen and (max-width: 768px) {
    .grid-layout .case-study-item:nth-child(odd) .case-study-item__text {
        margin-top: 0;
    }

    .grid-layout .owl-item:nth-child(odd) .case-study-item .case-study-item__text {
        margin-top: 20px;
    }
}


.grid-layout .case-study-item:nth-child(even) .case-study-item__text {
    margin-bottom: 50px;
}

@media only screen and (max-width: 768px) {
    .grid-layout .owl-item:nth-child(even) .case-study-item .case-study-item__text {
        margin-bottom: 10px;
    }
}

.grid-layout .case-study-item__image {
    margin: 0;
    height: auto;
    height: 377px;
    max-width: 385px;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    overflow: visible;
}

@media only screen and (max-width: 768px) {
    .grid-layout .case-study-item__image {
        margin-left: -15px;
        margin-right: -15px;
        height: 266px;
    }
}

.grid-layout .case-study-item:nth-child(odd) .case-study-item__image {
    margin-top: -90px;
}

@media only screen and (max-width: 768px) {
    .grid-layout .case-study-item:nth-child(odd) .case-study-item__image {
        margin-top: 0;
    }

    .grid-layout .owl-item:nth-child(odd) .case-study-item .case-study-item__image {
        margin-top: -70px;
    }
}

.grid-layout .case-study-item:nth-child(even) .case-study-item__image {
    margin-bottom: -90px;
}

@media only screen and (max-width: 768px) {
    .grid-layout .case-study-item:nth-child(even) .case-study-item__image {
        margin-bottom: 0;
    }

    .grid-layout .owl-item:nth-child(even) .case-study-item .case-study-item__image {
        margin-bottom: -30px;
    }
}

.grid-layout .case-study-item__image img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.case-studies-items .owl-stage-outer .owl-stage {
    transform: translate3d(0, 0, 0);
}

.grid-layout .case-study-item:nth-child(odd) .case-study-item__image {
    order: 1;
}

.grid-layout .case-study-item:nth-child(odd) .case-study-item__text {
    order: 2;
}

.grid-layout .case-studies-items .owl-stage,
.grid-layout .case-studies-items .owl-item {
    display: flex;
}

@media only screen and (max-width: 768px) {

    .grid-layout .case-studies-items .owl-stage-outer {
        overflow: visible;
        margin-left: -16vw;
    }

    .grid-layout .case-study-item:nth-child(odd) .case-study-item__image,
    .grid-layout .case-study-item:nth-child(odd) .case-study-item__text {
        order: 0;
    }

    .grid-layout .owl-item:nth-child(odd) .case-study-item .case-study-item__image {
        order: 1;
    }

    .grid-layout .owl-item:nth-child(odd) .case-study-item .case-study-item__text {
        order: 2;
    }
}

@media only screen and (max-width: 400px) {
    .grid-layout .case-studies-items .owl-stage-outer {
        margin-left: -8vw;
    }
}