/* PORTFOLIO */

.nPortfolioHolder {
  max-width: 980px;
  display: flex;
  flex-flow: wrap;
}

.nPortfolioItem {
  position: relative;
  min-height: 1px;
  float: left;
  padding-right: 40px;
  box-sizing: border-box;
}

.nPortfolioItem:nth-child(1n) {
  width: 340px;
}

.nPortfolioItem:nth-child(2n) {
  width: 340px;
}

.nPortfolioItem:nth-child(3n) {
  width: 300px;
  padding-right: 0px;
}

@media screen and (max-width: 1000px) {
  .nPortfolioItem:nth-child(1n) {
    width: 820px;
    padding-right: 0px;
  }

  .nPortfolioItem:nth-child(2n) {
    width: 820px;
    padding-right: 0px;
  }

  .nPortfolioItem:nth-child(3n) {
    width: 820px;
    padding-right: 0px;
  }
}

.nPortfolioGallery {
  margin-top: 40px;
  width: 300px;
  height: 225px;
  background-position: 50% 50%;
  background-size: cover;
  display: block;
  position: relative;
}

@media screen and (max-width: 1000px) {
  .nPortfolioGallery {
    width: 820px;
    height: 615px;
  }
}

.nPortfolioGallery div {
  display: none;
}

.nPortfolioGallery:hover div {
  margin: 0px 0px 0px 0px;
  padding: 0px 15px 0px 15px;
  font-family: 'Traveling Typewriter', Arial, serif;
  font-weight: 600;
  color: #ffffff;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  position: absolute;
  pointer-events: none;
  box-sizing: border-box;
}

.mfp-title {
  margin-top: 8px;
  font-family: 'Book Antiqua', Arial, serif;
  font-weight: 600;
  color: #ffffff;
  font-size: 14px;
  line-height: 18px;
  text-align: left;
}

.mfp-title a {
  color: #ffffff;
}

.mfp-title a:hover {
  color: #999999;
}

.mfp-title span {
  margin-bottom: 5px;
  font-family: 'Traveling Typewriter', Arial, serif;
  font-weight: normal;
  color: #ffffff;
  font-size: 17px;
  line-height: 20px;
  text-align: left;
  display: block;
}