.single-case-study {
    background: #FFF;
}

.single-case-study .site-main {
    padding-top: 174px !important;
}

.container__content--wrapper {
    max-width: 1252px;
    width: 100%;
    margin: 0 auto;
}

.case-hero .button-wrapper {
    margin-bottom: 40px;
}

.case-hero .case-hero__label {
    padding-bottom: 20px;
    border-bottom: 1px solid #DBDBDB;
    margin-bottom: 40px;
}

.case-hero__back-icon {
    display: inline-block;
    width: 15px;
    height: 12px;
    margin-right: 10px;
    position: relative;
}

.case-hero__back-icon:after,
.case-hero__back-icon:before {
    background: url("../../assets/images/arrow.svg") center center / cover no-repeat;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: all 0.5s ease;
}

.case-hero__back-icon:before {
    background: url('../images/ArrowDown-white.svg') center center / cover no-repeat;
}

.button.primary.transparent.case-hero__back:hover {
    background: var(--color-primary);
}

.case-hero__back:hover .case-hero__back-icon:before {
    opacity: 1;
    transform: translateX(0%);
}

.case-hero__back:hover .case-hero__back-icon:after {
    opacity: 0;
    transform: translateX(-100%);
}

.case-hero__title {
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 40px;
    letter-spacing: 1.2px;
}

.case-studies__brand {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 24px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    margin-bottom: 60px;
}

.case-studies__brand .case-studies__brand-logo {
    min-width: 153px;
    text-align: center;
}

.case-studies__brand .case-studies__brand-sep {
    width: 1px;
    height: 39px;
    background: #DBDBDB;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

.case-studies__brand .case-studies__person {
    position: relative;
    top: -2px;
}

.case-studies__person .case-studies__person-name {
    font-weight: 500;
    font-size: 17px;
    line-height: calc(17px * 1.4);
}

.case-studies__content {
    max-width: 900px;
    width: 100%;
    padding-bottom: 50px;
}

.case-studies__content .button-wrapper {
    margin-bottom: 0;
}

figure.wp-block-gallery,
figure.wp-block-image {
    width: calc(100% + 100px);
    margin-top: 50px;
    margin-bottom: 50px;
}

.wp-block-image img {
    width: 100%;
}

figure.wp-block-image {
    border-radius: 20px;
    overflow: hidden;
}

.case-studies__content h2,
.case-studies__content h3,
.case-studies__content h4,
.case-studies__content h5,
.case-studies__content h6,
.case-studies__content p {
    margin: 22px 0;
}

.case-studies__content p a {
    word-break: break-all;
}

figure.wp-block-gallery figure.wp-block-image {
    border-radius: 20px;
    overflow: hidden;
}

.case-studies__content .wp-block-gallery {
    --wp--style--unstable-gallery-gap: var(--wp--style--gallery-gap-default, var(--gallery-block--gutter-size, var(--wp--style--block-gap, 30px)));
    gap: var(--wp--style--gallery-gap-default, var(--gallery-block--gutter-size, var(--wp--style--block-gap, 30px)));
}

@media only screen and (max-width: 1060px) {
    figure.wp-block-gallery, figure.wp-block-image {
        width: 100%;
    }
}

@media only screen and (max-width: 991px) {
    .single-case-study .site-main {
        padding-top: 120px;
    }
}

@media only screen and (max-width: 767.98px) {
    .case-hero__title {
        font-size: 24px;
        line-height: 34px;
        letter-spacing: 0;
    }

    .case-hero .button-wrapper {
        margin-bottom: 30px;
    }

    .case-hero .case-hero__label {
        padding-bottom: 18px;
        margin-bottom: 30px;
    }

    .case-hero .case-studies__brand {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        gap: 19px;
        -webkit-box-align: start;
            -ms-flex-align: start;
                align-items: flex-start;
        margin-bottom: 30px;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }

     .case-hero .case-studies__brand .case-studies__brand-sep {
        height: 1px;
        width: 39px;
    }
    
    .single-case-study .site-main {
        padding-top: 120px !important;
    }

    .case-studies__content h2, .case-studies__content h3, .case-studies__content h4, .case-studies__content h5, .case-studies__content h6, .case-studies__content p {
        margin: 17px 0;
        font-size: 20px;
        line-height: 28px;
    }

    .case-studies__content {
        padding-bottom: 43px;
    }

    .case-studies__content p {
        font-size: 15px;
        line-height: 22px;
    }

    figure.wp-block-gallery, figure.wp-block-image {
        margin-top: 41px;
        margin-bottom: 41px;
    }

    .case-studies__content .wp-block-gallery {
        --wp--style--unstable-gallery-gap: var(--wp--style--gallery-gap-default, var(--gallery-block--gutter-size, var(--wp--style--block-gap, 25px)));
        gap: var(--wp--style--gallery-gap-default, var(--gallery-block--gutter-size, var(--wp--style--block-gap, 25px)));
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }

    .wp-block-gallery.has-nested-images figure.wp-block-image {
        width: 100% !important;
    }

    .case-studies__content h4 {
        font-size: 15px;
        line-height: 22px;
    }
}