.agency-row {
    background-color: map-get($grey, 100);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
    margin-bottom: 30px;

    @media (max-width: $screen-xs-max) {
        background-color: #fff;
    }

    .row {
        display: table;
        margin-left: 0;
        margin-right: 0;
        width: 100%;

        > div {
            display: table-cell;
            float: none;
            vertical-align: middle;

            @media (max-width: $screen-xs-max) {
                display: block;
            }
        }

        @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
            background-color: #fff;

            > div {
                display: block;
                float: left;
            }            

            .agency-row-info {
                background-color: map-get($grey, 200);
                clear: both;                
            }
        }          
    }
}

.agency-row-image {
    background-color: #fff;
    padding: 16px;
    text-align: center; 

    .fa {
        color: map-get($grey, 300);
        font-size: 46px;
    }
}

.agency-row-image-inner {
    a {
        background-color: rgba(black, .15);
        display: block;
        height: 0;
        padding-bottom: 100%;
        position: relative;

        &:before {
            @include placeholder('\f0f2', 50);
            left: 50%;
            position: absolute;
            top: 50%;
            transform: translateX(-50%), translateY(-50%);
        }
    }
}

.agency-row-content {
    background-color: #fff;

    p {
        color: map-get($grey, 700);
    }
}

.agency-row-title {
    a {
        color: map-get($grey, 800);

        &:hover {
            text-decoration: none;
        }
    }
}

.agency-row-subtitle {
    color: map-get($grey, 700);
    font-size: 15px;
}

.agency-row-info {
    padding: 16px;
    vertical-align: top !important;

    ul {
        color: map-get($grey, 800);
        list-style: none;
        margin: 0;
        padding: 0;

        .fa {
            color: map-get($grey, 700);
            margin: 0 5px 0 0;
        }

        a {
            color: map-get($color-secondary, 400);
        }

        li {
            margin: 0;
        }
    }
}
