.grid {
  display: grid;
  grid-template-columns: repeat(12, [col] 1fr);
}

/* all children by default should span the entire row on their own row */
.grid > * {
  grid-column: col / span 12;
}

.red-block {
  background-color: #DD1717;
  height: 50px;
  margin: 10px;
}

.orange-block {
  background-color: #DC9641;
  height: 50px;
  margin: 10px;
}

.yellow-block {
  background-color: #FCE343;
  height: 50px;
  margin: 10px;
}

.green-block-parent {
  height: 210px;
}

.green-block-child {
  margin: 10px;
  background-color: #50CB3A;
}

.blue-block {
  background-color: #6F8BD4;
  height: 50px;
  margin: 10px;
}

.flex-responsive {
  display: flex;
  flex-direction: column;
}

@container resizable-layout (min-width: 400px) {
  .green-block-parent {
    height: 150px;
  }
  .flex-responsive {
    flex-direction: row;
  }
}

@container resizable-layout (min-width: 800px) {
  .orange-block {
    grid-column: col / span 3;
    grid-row: 2 / span 3;
    height: 270px;
  }

  .yellow-block {
    grid-column: col 4 / span 9;
    grid-row: 2;
  }

  .green-block-parent {
    grid-column: col 4 / span 9;
    grid-row: 3;
  }

  .blue-block {
    grid-column: col 4 / span 9;
    grid-row: 4;
  }
}

/*
#black-block {
  background-color: #000000;
  height: 50px;
  margin: 10px;
}

#red-block {
  background-color: #DD1717;
  height: 50px;
  margin: 10px;
}

#orange-block {
  background-color: #DC9641;
  width: 120px;
  margin: 10px;
}

#orange-full {
  background-color: #DC9641;
  min-height: 600px;
  margin: 10px;
}

#yellow-block {
  background-color: #FCE343;
  height: 50px;
  margin: 10px;
}

#green-block-1 {
  background-color: #50CB3A;
  height: 120px;
  margin: 10px;
}

#green-block-2 {
  background-color: #50CB3A;
  height: 120px;
  margin: 10px;
}

#green-block-3 {
  background-color: #50CB3A;
  height: 120px;
  margin: 10px;
}

#blue-block {
  background-color: #6F8BD4;
  height: 90px;
  margin: 10px;
}

.green-min-height {
  min-height: 150px;
}
*/