title: Cropping to the Shortest Image Height in a Single Row of Images?
body: <p>Is it possible to crop images to the shortest height of an image in a single row of images? If so, can this be done solely with CSS?</p>
  
  <p>Here is an example of what I'd like to accomplish:</p>
  
  <p><a href="https://i.stack.imgur.com/8bEp9.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8bEp9.jpg" alt="enter image description here"></a></p>
  
  <p>And here is the code I am currently working on:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.container {
    width: 100%;
    margin: 0 auto;
  }
  
  .row {
    width: 100%;
    background: black;
    display: flex;
    align-items: center;
    overflow: auto;
  }
  
  .row .item {
    width: 33.33333%;
  }
  
  .row img {
    display: block;
    object-fit: cover;
    width: 100%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;div class="row"&gt;
      &lt;div class="item"&gt;
        &lt;img src="https://78.media.tumblr.com/708bb6dcdaf359fd2ea83d11a0b5b4b8/tumblr_oyslstg5xk1unhdoco3_r1_1280.jpg" /&gt;
      &lt;/div&gt;
      &lt;div class="item"&gt;
        &lt;img src="https://78.media.tumblr.com/c49ef0b40483c35ad3b6898c0e037e11/tumblr_oyslstg5xk1unhdoco2_r1_1280.jpg" /&gt;
      &lt;/div&gt;
      &lt;div class="item"&gt;
        &lt;img src="https://78.media.tumblr.com/737456a69c07da1a9a2784506f62dce9/tumblr_oyslstg5xk1unhdoco9_r1_1280.jpg" /&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Any solutions or advice?</p>