/**
 * Flex Cards
 */

.flex-cards {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
}

.flex-cards,
.flex-cards > [class*=col-],
.flex-card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.flex-cards > [class*=col-],
.flex-card {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

.flex-card {
    height: 100%;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
}
    .flex-card,
    .flex-card-img {
        overflow: hidden;
    }

    .flex-card-img {
        position: relative;
        background: #fafafa;
    }
        .flex-card-img img {
            position: absolute;
            top: 50%;
            left: 50%;
            -webkit-transform: translate(-50%, -50%);
                -ms-transform: translate(-50%, -50%);
                    transform: translate(-50%, -50%);
            -webkit-transition: all 250ms;
            -o-transition: all 250ms;
            transition: all 250ms;
        }

        .flex-card-img-cover img {
            width: 100%;
            height: 100%;
            max-width: none;
            -o-object-fit: cover;
               object-fit: cover;
        }

        .flex-card-img-contain img {
            width: 100%;
            height: 100%;
            max-width: none;
            -o-object-fit: contain;
               object-fit: contain;
        }

        .flex-card-img:hover img {
            -webkit-transform: scale(1.2) translate(-42%, -42%);
                -ms-transform: scale(1.2) translate(-42%, -42%);
                    transform: scale(1.2) translate(-42%, -42%);
        }

        /* 1x1 */
        .flex-card-img-1x1 {
            padding-bottom: 100%;
        }

        /* 2x1 */
        .flex-card-img-2x1 {
            padding-bottom: 50%;
        }

        /* 3x1 */
        .flex-card-img-3x1 {
            padding-bottom: 33%;
        }

        /* 3x2 */
        .flex-card-img-3x2 {
            padding-bottom: 66%;
        }

.flex-card-overlay-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    opacity: 0;
    -webkit-transition: all 400ms;
    -o-transition: all 400ms;
    transition: all 400ms;
    background-color: rgba(0,0,0,0.65);
}
    .flex-card-overlay-content,
    .flex-card-overlay-content:hover {
        text-decoration: none;
    }

    .flex-card-overlay:hover .flex-card-overlay-content {
        opacity: 1;
    }

.flex-card-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
    padding: 15px;
}
    .flex-card-name {
        margin-top: 0;
    }

    .flex-card-body {
        padding-top: 10px;
    }

    .flex-card-footer {
        margin-top: auto;
    }

.flex-card-content.flex-card-text {
    padding: 0;
}
    .flex-card-content.flex-card-text > .flex-card-name,
    .flex-card-content.flex-card-text > .flex-card-name > a {
        -webkit-box-flex: 1;
            -ms-flex-positive: 1;
                flex-grow: 1;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    .flex-card-content.flex-card-text > .flex-card-name > a {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-pack: center;
           -ms-flex-pack: center;
         justify-content: center;
        -webkit-box-align: center;
           -ms-flex-align: center;
              align-items: center;
        width: 100%;
        padding: 15px;
        text-align: center;
        -webkit-transition: all 250ms;
        -o-transition: all 250ms;
        transition: all 250ms;
    }
