body {
  margin: 0;
}

img {
  display: block;
  height: auto;
  width: 100%;
}

.container {
  align-items: center;
  display: flex;
  height: 100vh;
  justify-content: center;
}

.content {
  border: 1rem solid crimson;
  max-width: 35rem;
  overflow: hidden;
  width: 60vw;
}

.ratio-box {
  height: 0;
  padding-top: 100%;
  position: relative;
  width: 100%;
}

.content img {
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
}

.content img {
  mask-image: url(heart.svg);
}