* {
  box-sizing: border-box; 
}
body {
  padding: 20px;
  width: 90%;
  margin: 0 auto;
}
.screen-reader-text {
  position: absolute;
  top: -9999px;
  left: -9999px;
}

.search-form {
  width: 30%;
  float: left;
  padding-right: 20px;
}
.search-term {
  width: 100%;
  margin: 0 0 5px 0;
}
.search-terms {
  display: table;
  margin: 0 0 10px 0;
}
.search-filters {
  overflow: hidden;
  margin: 0 0 10px 0;
  background: #eee;
  padding: 10px;
}
.search-filters-title {
  font-weight: normal;
  font-size: 1em;
  margin: 0 0 10px 0;
}
.filter-group {
  margin: 0 0 10px 0;
}
.cloned-filters {
  display: none; 
}
.search-results {
  width: 70%;
  float: right;
  padding-bottom: 2500px; /* just scrolling space */
}

.result {
  float: left;
  width: 24%;
  height: 300px;
  margin-right: 1.33%;
  margin-bottom: 1.33%;
  background: #eee;
  text-align: center; /* TWTW */
}
.result:nth-child(4n) {
  margin-right: 0; 
}

.result img {
  TWTWheight: auto;
  TWTWdisplay: block;
  TWTWwidth: 100%;
}

@media (max-width: 1000px) {
  body {
    width: 95%;
  }
.result {
  float: left;
  width: 49%;
  height: 300px;
  margin-right: 2%;
  margin-bottom: 2%;
  background: #eee;
}
.result:nth-child(2n) {
  margin-right: 0; 
}

@media (max-width: 600px) {
  body,
  .search-form,
  .search-results {
    width: 100%;
  }
  .search-form {
    padding: 0;
  }
  .search-terms {
    display: table;
    width: 100%;
    margin: 0;
  }
  .search-terms > div {
    display: table-row; 
  }
  .search-terms > div > span {
    display: table-cell;
  }
  .search-term-wrap {
    padding-right: 10px;
  }
  .search-button {
    width: 100%;
  }
  .search-filters-title {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
    margin: 0;
  }
  .search-filters.pinned {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
  }
  .filter-group {
    display: none;
  }
  .filter-explanation {
    display: none;  
  }
  
  .filters-open .filter-group,
  .filters-open .filter-explanation {
    display: block; 
  }
  .filters-open .search-filters-title {
    margin: 0 0 10px 0;
  }
  .result {
    float: left;
    width: 100%;
    height: 300px;
    margin-bottom: 2%;
    background: #eee;
}


}
