/* ==========================================================================
   Mini case study cards — used on service & borough landing pages
   ========================================================================== */

.cs-block,
.cs-block * {
    box-sizing: border-box;
}

.cs-block {
    margin: 0;
}

.cs-block h2 {
    text-align: center;
    padding-bottom: 10px;
}

.cs-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.cs-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 10px 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cs-card {
        width: calc(50% - 20px);
    }
}

.cs-photos {
    display: flex;
}

.cs-photo {
    position: relative;
    width: 50%;
    margin: 0;
    line-height: 0;
}

.cs-photo img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.cs-photo + .cs-photo {
    border-left: 2px solid #fff;
}

.cs-tag {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 3px 10px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: .75em;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cs-tag-after {
    background-color: #009966;
}

.cs-body {
    flex: 1 1 auto;
    padding: 20px;
}

.cs-body p {
    margin: 0 0 8px;
    line-height: 1.5;
}

.cs-body p:last-child {
    margin-bottom: 0;
}

.cs-label {
    color: #009966;
    font-weight: 700;
}

.cs-result {
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.cs-link {
    display: inline-block;
    margin: 0 20px 20px;
    font-weight: 700;
    color: #009966;
}

.cs-link:hover,
.cs-link:focus {
    text-decoration: underline;
}
