#header {
  margin-top: 5rem;
}

#header hr {
  margin: 10px 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: 4rem;
  line-height: 4.5rem;
  letter-spacing: -1px;
  font-weight: 200;
  position: relative;
}

.portfolio-gallery {
  margin-top: 2rem;
}

.portfolio-gallery .cell {
  min-height: 300px;
  background-size: cover !important;
  background-position: 10% 10% !important;
}

.grid-item,
.grid-item--width2 {
  padding: 5px;
}

.grid-item {
  width: 50%;
}

.grid-item--width2 {
  width: 50%;
}

.portfolio-desc {
  position: absolute;
  bottom: 8%;
  left: 5%;
}

.portfolio-desc {
  color: #fff;
  text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.8);
}

.grid-item img {
  filter: brightness(65%);
}

.portfolio-desc h2 {
  margin-bottom: 0;
  font-size: 1.8rem;
  line-height: 2rem;
}

.portfolio-desc p {
  font-weight: bold;
  margin-bottom: 0;
}

.close-btn {
  position: fixed;
  top: 15px;
  right: 20px;
  max-width: 40px;
  z-index: 1000;
}

.portfolio-desc--red {
  background: #ef4023;
  color: #fff;
  padding: 1.5rem;
}

/* Small only */
@media screen and (max-width: 39.9375em) {
  .portfolio-desc h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
    line-height: 1.6rem;
  }

  .portfolio-desc p {
    font-size: .8rem;
  }

  .grid-item {
    width: 100%;
  }
}

/* Medium and up */
@media screen and (min-width: 40em) {}

/* Medium only */
@media screen and (min-width: 40em) and (max-width: 63.9375em) {}

/* Large and up */
@media screen and (min-width: 64em) {
  .portfolio-desc h2 {
    margin-bottom: 0;
    font-size: 3rem;
    line-height: 3.2rem;
  }
}

/* Large only */
@media screen and (min-width: 64em) and (max-width: 74.9375em) {}

/* css to stick footer to the bottom */
html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

#content {
  flex: 1 0 auto;
}

#footer {
  flex-shrink: 0;
}

#loading-wrapper {
  padding: 5rem 0;
}
#portfolio-content {
  display: none;
}