.container{
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  height: 100vh;
}

@media  and (max-width: 1200px) {
  .container{
    width: 90%;
  }
}

.flex{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.flex-item{
  background-color: #ccc;
  flex-basis: 25%;
  flex-grow: 1;
}

@media screen and (max-width:auto) {
  .flex-item {
      flex-basis: 50%;
    }
}

.item-image__wrap{
  width: 100%;
  height: 25vh;
  overflow: hidden;
}

@media screen and (max-width:auto) {
  .flex-item__wrap {
  height: 50vh;
  }
}

.item-image{
  width: 100%;
  height: 100%;
  object-fit: cover;