JSFiddle - React, Tailwind, and code Playground

HTML

<p>Читай комментарии в CSS, там и про красный цвет есть.</p>

<br>

<figure>
  <img src="https://placeimg.com/800/600/any" alt="">
</figure>

<br>

<figure>
  <img src="https://placeimg.com/400/600/any" alt="">
</figure>

<br>

<figure>
  <img src="https://placeimg.com/400/400/any" alt="">
</figure>

<br>

<figure>
  <img src="https://placeimg.com/500/200/any" alt="">
</figure>

<br>

<figure>
  <img src="https://placeimg.com/500/100/any" alt="">
</figure>

SCSS

* {
  box-sizing: border-box; /* типичный reset */
}

html {
  height: 100%; 
}

body {
  min-height: 100%;
  background: #000;
  margin: 0;
  padding: 30px 0;
  color: #fff;
  text-align: center;
  font-family: sans-serif;
}

p {
    margin: 30px 0;
    display: inline-block;
    width: auto;
    padding: 15px 30px;
    box-shadow: 0 0 0 2px #fff5;
    border-radius: 10px;
}


figure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  min-height: 200px;
  margin: 30px 0;
  background: red; /* демо, чтобы было понятны границы обертки */

  & img {
    width: 100%;
    align-self: center;
    border: 5px solid #fff;
  }
  
}