.sponsors {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-content: stretch;
  align-items: stretch;

  @media (max-device-width: $screen-md) {
    flex-direction: column;
  }
}

.sponsor {
  background: #fff;
  padding: 20px;
  margin: 10px;
}

.sponsor h3 {
  margin-bottom: 20px;
}

.shepherd {
  flex-grow: 3;
  flex-shrink: 0;
  flex-basis: content;
}

.shepherd .logo {
  height: 200px;
  width: auto;
  float: left;
  margin: 0 20px 20px 0;

  @media (max-device-width: 480px) {
    width: 100%;
    height: auto;
  }
}

.cdn {
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: content;
}

.cdn .logo {
  width: 100%;
}

.sponsors {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-content: stretch;
  align-items: stretch;

  @media (max-device-width: $screen-md) {
    flex-direction: column;
  }
}

.sponsor {
  background: #fff;
  padding: 20px;
  margin: 10px;
  flex: 1 1 200px;
}

.sponsor h3 {
  margin-bottom: 20px;
}

.shepherd {
  flex-grow: 3;
}

.shepherd .logo {
  height: 200px;
  width: auto;
  float: left;
  margin: 0 20px 20px 0;

  @media (max-device-width: 480px) {
    width: 100%;
    height: auto;
  }
}

.cdn .logo {
  width: 100%;
}

Use flex shorthand for sponsors. We want to set a default grow and shirnk of 1 so sponsors grow and shrink as room is available. In addition, we want to set flex-basis to 200px which is the minimum size we want sponsors to be. This will allow the flex boxes to break and go into multiple rows and eventually a column naturally.
Use flex shorthand for sponsors.
We want to set a default grow and shirnk of 1 so sponsors grow and
shrink as room is available.
In addition, we want to set flex-basis to 200px which is the minimum
size we want sponsors to be. This will allow the flex boxes to break and
go into multiple rows and eventually a column naturally.
