.projects-module-wrapper {
  max-width: 1550px;
  margin: 0 auto;
  padding: 0 50px;
}
.projects-module-wrapper span.sort-header {
  font-weight: bold;
  margin-right: 20px;
}
.projects-module-wrapper select.filter {
  width: auto;
}
.projects-content-wrapper {
  display: flex;
  flex-wrap: wrap;
	align-items: flex-start;
  justify-content: space-evenly;
  padding: 50px 0 100px 0;
}
.project-content {
  transition: size 0.4s;
  box-sizing: border-box;
  width: 32%;
  display: inline-block;
  position: relative;
  margin-bottom: 20px;
}
.project-content h4 {
  min-height: 50px;
  margin-bottom: 0px;
}
select.filter {
  background-color: rgba(230,230,230,0.8);
  border-color: rgba(230,230,230,0.8);
  border-radius: 5px;
  font-family: rubrik-new,sans-serif;
  text-transform: uppercase;
  font-size: 19px;
  outline: none;
}

/*
 * Enlarge first two VISIBLE content elements
 * (can not enlarge first two elements regardless of visibility as these might be hidden by the filter)
 * 
 * jQuery .hide() function applies style="display: none" to the element
 * 
 * first, enlarge all visible elements, :not([style*='display: none']) 
 * ...
 */
.project-content:not([style*='display: none']) {
  width: 49%;
  margin-bottom: 70px;
}
/*
 * ... then make smaller elements, that are preceded by at least 2 visible sibling
 * (excludes 1st and 2nd elements, make smaller 3rd and following elements)
 */
.project-content:not([style*='display: none']) ~ .project-content:not([style*='display: none']) ~ .project-content:not([style*='display: none']) {
  width: 32%;
  margin-bottom:30px;
}

.project-content img {
  display: block;
  height: auto;
  width: 100%;
}
.project-button {
  transition: color 0.3s, background-color 0.3s;
  background-color: #000000;
  position: absolute;
  bottom: 0px;
  right: 0px;
  padding: 10px 20px;
}

.project-button a {
  color: #ffffff;
  text-decoration: none;
}
.project-button span {
  color: #35A99A;
}
.project-button:hover {
  -webkit-transition: .35s ease-in-out;
  transition: .35s ease-in-out;
  cursor: pointer;
  background: #f9f9f9;
}
.project-button:hover a {
  color: #000000;
}

@media (max-width: 1410px) {
   .project-content h4 {
    font-size: 1.5rem;
  }
}
@media (max-width: 1280px) {
  .project-content h4 {
    font-size: 1.2rem;
    min-height: auto;
    margin-bottom: 10px;
  }
}
@media (max-width: 1040px) {
  .projects-module-wrapper {
    padding: 0 30px;
  }
}
@media (max-width: 1000px) {
  .project-content h4 {
    font-size: 1rem;
  }
}
@media (max-width: 890px) {
  .project-content {
    width: 49% !important;
  }
  .project-content:not([style*='display: none']) {
    width: 49% !important;
  }
  .project-content h4 {
    font-size: 1.2rem;
  }
  .project-content:not([style*='display: none']) ~ .project-content:not([style*='display: none']) ~ .project-content:not([style*='display: none']) {
   margin-bottom: 10px;
  }
}
@media (max-width: 720px) {
   .project-content {
    width: 100% !important;
  }
  .project-content:not([style*='display: none']) {
    width: 100% !important;
    margin-bottom: 10px;
  }
}
@media (max-width: 560px) {
  select {
    font-size: 16px;
  }
  .projects-module-wrapper span.sort-header {
    margin-right: 10px;
    font-size: 16px;
  }
}
@media (max-width: 540px) {
  .projects-module-wrapper select.filter {
    margin-top: 20px;
  }
}
@media (max-width: 480px) {
  .projects-content-wrapper {
    padding-top: 20px;
  }
  .projects-module-wrapper select.filter {
    width: 100%;
  }
}
@media (max-width: 390px) {
  select {
    font-size: 14px;
  }
}
@media (max-width: 390px) {
  select {
    font-size: 12px;
  }
  .projects-module-wrapper {
    padding: 0 20px;
  }
}
}
  