JSFiddle - React, Tailwind, and code Playground

HTML

<header>

</header>
<div class="box1">
  <section class="upperRow">

  </section>
  <section class="box2">
    <div class="box3">
      <!-- box3 CAN BE MODIFIED-->
      <div class="box4">
        <!-- box4 CAN BE MODIFIED-->

      </div>
      <div class="modal">
        <!-- modal CAN BE MODIFIED-->
      </div>
    </div>
  </section>
</div>
<footer>

</footer>

CSS

.modal {
  position: fixed;
  top: 0; /* breakpoint? */ 
  left: 0;
  height: 100%;
  width: 100vh;
  background-color: yellow;
}

.box4 {
  display: block;
  height: 150px;
}

.box3 {
  display: block;
  position: relative;
  margin: 0 auto;
  padding-right: 18px;
  padding-left: 18px;
  clear: both;
  border: 2px solid purple;
  height: 150px;
}

.box2 {
  border: 2px solid green;
  padding-right: 10px;
  padding-left: 10px;
  width: 100%;
  position: relative;
  float: left;
  display: block;
  box-sizing: border-box;
  min-height: 200px;
}

.upperRow {
  display: block;
  box-sizing: border-box;
  height: 20px;
}

.box1 {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  -webkit-transform-style: preserve-3d;
  z-index: 2;
  border: 2px solid black;
}

header {
  position: relative;
  background-color: red;
  height: 50px;
  display: block;
  box-sizing: border-box;
}

footer {
  height: 50px;
  padding-top: 8px;
  margin-top: 8px;
  float: left;
  width: 100%;
  background-color: blue;
  display: block;
}