* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #eee;
}

/* Clipped headline */
h1 {
  text-align: center;
  font-family: 'Plaster', 'Arial Black', Verdana, sans-serif;
  font-size: 14svw;
  line-height: 10svw;
  text-transform: uppercase;

  /* use background-image, not background-color */
  background-image: url('../images/three_kids.jpg');
  background-size: 100% auto;
  background-position: center center;

  /* clip it into the text */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Container for the three diamonds */
section.three_boxes {
  margin: 150px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 2rem;
}

/* Each diamond wrapper */
section.three_boxes div {
  /* make it square and then rotate it */
  flex: 0 0 20%;
  aspect-ratio: 1;
  min-width: 300px;
  max-width: 500px;

  position: relative;
  overflow: hidden;

  border: 8px solid hotpink;
  transform: rotate(45deg);        /* rotate the container into a diamond */
}

/* The actual image inside, rotated back and scaled up */
section.three_boxes div figure {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-45deg) scale(1.4);  /* rotate back & enlarge a bit */
  transform-origin: center center;

  background-image: url('../images/three_kids.jpg');
  background-size: 500%;                 /* zoom way in so each person is framed */
  background-repeat: no-repeat;
}

/* Fine-tuned background-position for each person */
section.three_boxes div:nth-child(1) figure {
  background-position: 35% 50%;
}
section.three_boxes div:nth-child(2) figure {
  background-position: 54% 48%;
}
section.three_boxes div:nth-child(3) figure {
  background-position: 73% 50%;
}
