Make the container of an image keep the size and aspect ratio of the image.
.intrinsic-ratio-container {
position: relative;
padding-bottom: 56.285714%; /* This defines the aspect ratio. */
height: 0;
color: #ddd; /* Same color as background-color to hide the image description text. */