.nj-works {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.nj-works .nj-kicker {
  text-align: center;
  padding-bottom: 30px;
  margin-bottom: 50px;
  border-bottom: 1px solid var(--nj-line, #e5e5e5);
  font-size: 30px;
  line-height: 1;
  font-weight: 400;
}
@media screen and (max-width: 767px) {
  .nj-works .nj-kicker {
    border-bottom: none;
    padding-bottom: 0;
  }
}
.nj-filter-row {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin: 50px 0 10px;
  flex-wrap: wrap;
}
@media screen and (max-width: 767px) {
  .nj-filter-row {
    flex-direction: column;
    gap: 0px;
  }
}
.nj-filter-link {
  display: inline-block;
  padding: 15px 15px 15px 0;
  border-top: 1px solid var(--nj-line, #e5e5e5);
  color: #525252;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nj-filter-link:hover,
.nj-filter-link.is-active {
  border-color: #525252;
  color: #525252 !important;
  -webkit-text-stroke: 0.9px currentColor;
}
.nj-work-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  grid-auto-rows: 238px;
  gap: 40px 30px;
  justify-content: center;
}
.nj-work-mosaic--home {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 238px;
  gap: 30px;
  grid-auto-flow: dense;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.nj-work-mosaic.is-loading {
  opacity: 0.5;
}
.nj-work-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #fff;
  background: #1c1c1c;
  color: #fff;
  display: block;
  text-decoration: none;
}
.nj-work-card--wide {
  grid-column: span 2;
  grid-row: span 2;
}
.nj-work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.nj-work-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.08), rgba(28, 28, 28, 0.82));
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nj-work-card__index {
  position: absolute;
  top: 17px;
  left: 17px;
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nj-work-card__title {
  margin: 0;
  font-family: var(--nj-font-garamond);
  line-height: 1;
  font-style: italic;
  color: #fff;
}
.nj-work-card__meta {
  margin: 0;
  color: var(--nj-soft, #b5b5b5);
  font-size: 14px;
}
.nj-work-card:hover img {
  opacity: 0.72;
}
.nj-work-card:hover .nj-work-card__overlay {
  opacity: 1;
  transform: translateY(0);
}
.nj-work-card:hover .nj-work-card__index {
  opacity: 1;
}
.nj-work-none {
  grid-column: 1 / -1;
  text-align: center;
  color: #7b7b7b;
}
.nj-center-action {
  display: flex;
  justify-content: center;
  margin-top: 70px;
}
@media (max-width: 1080px) {
  .nj-work-mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .nj-works {
    padding-top: 50px;
  }
  .nj-works .nj-kicker {
    margin-bottom: 36px;
  }
  .nj-filter-row {
    justify-content: flex-start;
    margin: 42px 0 54px;
  }
  .nj-work-mosaic,
  .nj-work-mosaic--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 26px 16px;
  }
  .nj-work-card {
    display: flex;
    flex-direction: column;
    overflow: visible;
    border: 0;
    background: transparent;
    color: #1c1c1c;
  }
  .nj-work-card--wide {
    grid-column: span 2;
    grid-row: auto;
  }
  .nj-work-card img {
    height: auto;
    aspect-ratio: 1 / 1.31;
  }
  .nj-work-card__overlay {
    position: static;
    inset: auto;
    opacity: 1;
    transform: none;
    background: none;
    padding: 12px 0 0;
    gap: 4px;
    padding-left: 14px;
  }
  .nj-work-card__index {
    display: none;
  }
  .nj-work-card__title {
    color: #1c1c1c;
    font-size: 18px;
  }
  .nj-work-card__meta {
    color: #7b7b7b;
    font-size: 13px;
  }
  .nj-work-card:hover img {
    opacity: 1;
  }
}
@media (max-width: 520px) {
  .nj-work-mosaic,
  .nj-work-mosaic--home {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 26px;
  }
  .nj-work-card--wide {
    grid-column: span 1;
    grid-row: auto;
  }
}
@media (max-width: 767px) {
  .nj-works--archive.nj-works {
    padding-top: 0;
  }
}
.nj-works--archive.nj-works .nj-kicker {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
@media (min-width: 821px) {
  .nj-work-mosaic--masonry.is-masonry {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1px;
    grid-auto-flow: dense;
    align-items: start;
    justify-content: stretch;
    gap: 0 30px;
  }
  .nj-work-mosaic--masonry.is-masonry .nj-work-card {
    border: 0;
    background: #1c1c1c;
  }
}
