1:1 image in css

CSS
// aspect ratio 1:1 
// Crop image using CSS

.image {
  object-fit: cover;

  width: 300px; 
  height: 300px;
}
Source

Also in CSS: