:root {
    --cs-grid-gutter: 15px;
    --cs-item-height: 205px;
}

.case-study-grid {
    padding-top: 40px;
    padding-bottom: 40px;

    @media (min-width:768px) {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    h2 {
        text-align: center;
        margin-bottom: 30px;
    }
}

.case-study-list {
    margin: calc(-1 * var(--cs-grid-gutter) / 2);
}


.case-study-list__sizer {
    width: 25%;
}

.case-study-list__item {
    padding: calc(var(--cs-grid-gutter) / 2);
}

.case-study-list__item--1x1 {
    width: 50%;
    height: var(--cs-item-height);
}

.case-study-list__item--2x1 {
    width: 100%;
    height: var(--cs-item-height);
}

.case-study-list__item--1x2 {
    width: 50%;
    height: calc(var(--cs-item-height) * 2);
}

.case-study-list__item--2x2 {
    width: 100%;
    height: calc(var(--cs-item-height) * 2);
}

@media (min-width:768px) {
    .case-study-list__item--1x1 {
        width: 25%;
    }

    .case-study-list__item--2x1 {
        width: 50%;
    }

    .case-study-list__item--1x2 {
        width: 25%;
    }

    .case-study-list__item--2x2 {
        width: 50%;
    }
}

.case-study {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid #e1e1e3;
    position: relative;
}

.case-study--featured {
    padding: 120px 15px 15px 15px;
    background-color: var(--brand-grey-dark);
    color: #fff;

    @media (min-width:768px) {
        padding: 125px 25px 25px 25px;
    }

    .case-study__title {
        margin-top: 0;
        margin-bottom: 15px;
        font-size: 26px;
        font-weight: 300;

        @media (min-width:768pxx;
        }

        @media (min-width:992px) {
            font-size: 36px;
        }
    }

    .case-study__desc {
        margin-bottom: 20px;
        font-size: 16px;
        font-weight: 300;
        line-height: 1.2;

        @media (min-width:992px) {
            font-size: 18px;
        }
    }

    .case-study__logo {
        padding: 0;
        top: 20px;
        right: 20px;
        left: auto;
        transform: translate(0, 0);
    }
}

.case-study__logo {
    padding: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}