title: Fixed thumbnail ratio size & maintaining aspect ratio?
body: <p>There are some questions that are properly similar, but i can't relate it to my specific situation.</p>
  
  <p>I have created a responsive thumbnail grid with 4-to-3-to-2 columns structure (in percentages 25%-33,33%-50%). </p>
  
  <p>I'm using a fake placeholder image of 500x330px for testing, but i would like to have a fixed thumbnail placeholder (css code?) with a responsive 500x330 ratio and maintain the aspect radio of the images placed in centered (vertical and horizontal) the placeholder thumbnail. </p>
  
  <p>In the fiddle example i've made some thumbnails in photoshop that have a 500x330px size and within different portrait and landscape sizes so it isn't really a portrait of landscape image, but it gives a idea what i want to achieve. I hope someone understands my question and can help me out or guide me through.</p>
  
  <p><a href="https://jsfiddle.net/foroloca/zexkuvh9/4/" rel="nofollow noreferrer">--> Fiddle</a></p>
  
  <pre><code>&lt;div class="col-4"&gt;
      &lt;a class="thumb" href="#"&gt;
          &lt;img src="img/test2.jpg"&gt;
          &lt;div class="caption"&gt;Project untitled&lt;br&gt; Category&lt;/div&gt;
      &lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/i2Rbp.jpg" alt="enter image description here"></p>