#ourWork_section {
  height: 100%;
}

#galleryTitle {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  width: 100%;
  padding: 0;
  margin: 2rem 0 0 0;
}

.galleryRow {
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Create four equal columns that sits next to each other */
.galleryColumn {
  -ms-flex: 15%; /* IE10 */
  flex: 15%;
  max-width: 15%;
  padding: 0 0.8rem;
  /* height: 35rem; */
}

.columnImg {
  margin: 1rem 0;
  vertical-align: middle;
  width: 100%;
  border-radius: 4px;
  box-shadow: 0px 6px 17px 0px rgba(0, 0, 0, 0.3);
}

/* IMAGE MODAL */

.imgModal {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 95%;
  background: white;
  border-radius: 4px;
  z-index: 12;
  overflow-y: scroll;
  max-height: 90%;
}

#imgModalHeader {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem;
}

#closeImgModalBtn {
  cursor: pointer;
  font-size: 2.5rem;
}

.is-visible {
  opacity: 1;
  pointer-events: auto;
}

#imgModalBody {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* gallery flex for image modal */

.galleryModalRow {
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
}

/* Create four equal columns that sits next to each other */
.galleryModalColumn {
  -ms-flex: 15%; /* IE10 */
  flex: 15%;
  max-width: 15%;
  padding: 0 0.8rem;
}

.columnModalImg {
  margin: 1rem 0;
  vertical-align: middle;
  width: 100%;
  border-radius: 4px;
  box-shadow: 0px 6px 17px 0px rgba(0, 0, 0, 0.3);
}

.viewFullGalleryBtn {
  margin: 2rem 0.5rem 1.5rem 0.5rem;
  text-decoration: none;
  cursor: pointer;
  -o-transition: all 0.5s ease-out;
  -webkit-transition: all 0.5s ease-out;
  -moz-transition: all 0.5s ease-out;
  transition: all 0.5s ease-out;
  color: black;
}

.viewFullGalleryBtnSpan {
  font-weight: 500;
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: 0.05rem;
  display: inline-block;
  padding: 0.3rem 0;
  position: relative;
}

.viewFullGalleryBtnSpan:after {
  background: none repeat scroll 0 0 transparent;
  bottom: 0;
  content: "";
  display: block;
  height: 2px;
  left: 50%;
  position: absolute;
  background: #00b9aa;
  transition: width 0.3s ease 0s, left 0.3s ease 0s;
  width: 0;
}

.viewFullGalleryBtnSpan:hover:after {
  width: 100%;
  left: 0;
}

@media screen and (max-width: 1480px) {
  .galleryModalColumn {
    -ms-flex: 20%;
    flex: 20%;
    max-width: 20%;
  }
}

@media screen and (max-width: 1000px) {
  .galleryModalColumn {
    -ms-flex: 25%;
    flex: 25%;
    max-width: 25%;
  }
}

@media screen and (max-width: 900px) {
  .galleryModalColumn {
    -ms-flex: 40%;
    flex: 40%;
    max-width: 40%;
  }
}

@media screen and (max-width: 833px) {
  .galleryColumn {
    -ms-flex: 40%;
    flex: 40%;
    max-width: 40%;
  }
}

@media screen and (max-width: 622px) {
  .galleryModalColumn {
    -ms-flex: 100%;
    flex: 100%;
    max-width: 100%;
  }
}
