/*
 * Cards - Columns (was "3 column thumbnails") (`vc_flexible_thumbnail`)
 *
 * Loaded only on pages that use this element, after common.css. Rules
 * shared with other elements are in common.css.
 */

.equal-height>div>.component,.equal-height>div>.component>.card{height:100%}

.equal-height .card-body{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-pack:justify;-ms-flex-pack:justify;justify-content:space-between}

/* A card image cropped to a chosen shape.
*
* Only present when the editor picked one - without .ratio the image keeps its
* own proportions, which is what every card had before the field existed.
*
* Bootstrap's .ratio>* already positions the image and stretches it to fill the
* box, which would distort it; object-fit crops it instead, the same way
* .cwb-image>img does for Flexible Content. */
.cwb-thumbnail__img.ratio>img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}

@media (min-width: 992px) {
    .cwb-cards.cwb-cards--5 > .col-md-6 { flex: 0 0 auto; width: 20%; }
}
