.portfolio-title {
  padding: 8vw 7vw 3vw;
  text-align: center;
}

.portfolio-title p {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .16em;
}

.portfolio-filter {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0 7vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.portfolio-filter button {
  position: relative;
  padding: 1.4rem .75rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: 300 1rem "DM Sans", sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
}

.portfolio-filter button:last-child { border-right: 0; }

.portfolio-filter button::after {
  content: "";
  position: absolute;
  right: 22%;
  bottom: -1px;
  left: 22%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform .25s ease;
}

.portfolio-filter button.active::after { transform: scaleX(1); }
.portfolio-page .category { padding-top: 4vw; }
.portfolio-page [hidden] { display: none !important; }

.ornamental-gallery figure:nth-child(1) img { object-position: 50% 45%; }
.ornamental-gallery figure:nth-child(2) img { object-position: 50% 42%; }
.ornamental-gallery figure:nth-child(3) img { object-position: 50% 52%; }
.ornamental-gallery figure:nth-child(4) img { object-position: 58% 50%; }
.ornamental-gallery figure:nth-child(5) img { object-position: 50% 43%; }
.ornamental-gallery figure:nth-child(6) img { object-position: 50% 38%; }

.fineline-gallery figure:nth-child(1) img { object-position: 50% 50%; }
.fineline-gallery figure:nth-child(2) img { object-position: 50% 48%; }
.fineline-gallery figure:nth-child(3) img { object-position: 50% 50%; }
.fineline-gallery figure:nth-child(4) img { object-position: 50% 47%; }
.fineline-gallery figure:nth-child(5) img { object-position: 50% 42%; }
.fineline-gallery figure:nth-child(6) img { object-position: 50% 50%; }
.fineline-gallery figure:nth-child(7) img { object-position: 50% 48%; }
.fineline-gallery figure:nth-child(8) img { object-position: 50% 43%; }
.fineline-gallery figure:nth-child(9) img { object-position: 50% 48%; }
.fineline-gallery figure:nth-child(10) img { object-position: 50% 48%; }

.floral-gallery figure:nth-child(1) img { object-position: 50% 43%; }
.floral-gallery figure:nth-child(2) img { object-position: 50% 48%; }
.floral-gallery figure:nth-child(3) img { object-position: 50% 48%; }
.floral-gallery figure:nth-child(4) img { object-position: 50% 43%; }
.floral-gallery figure:nth-child(5) img { object-position: 50% 50%; }
.floral-gallery figure:nth-child(6) img { object-position: 50% 55%; }
.floral-gallery figure:nth-child(7) img { object-position: 50% 42%; }

.minimal-gallery figure:nth-child(1) img { object-position: 50% 48%; }
.minimal-gallery figure:nth-child(2) img { object-position: 50% 48%; }
.minimal-gallery figure:nth-child(3) img { object-position: 50% 48%; }
.minimal-gallery figure:nth-child(4) img { object-position: 50% 50%; }
.minimal-gallery figure:nth-child(5) img { object-position: 50% 48%; }
.minimal-gallery figure:nth-child(6) img { object-position: 50% 48%; }
.minimal-gallery figure:nth-child(7) img { object-position: 50% 48%; }
.minimal-gallery figure:nth-child(8) img { object-position: 50% 48%; }
.minimal-gallery figure:nth-child(9) img { object-position: 50% 48%; }
.minimal-gallery figure:nth-child(10) img { object-position: 50% 45%; }

.writing-gallery figure:nth-child(1) img { object-position: 50% 48%; }
.writing-gallery figure:nth-child(2) img { object-position: 50% 48%; }
.writing-gallery figure:nth-child(3) img { object-position: 50% 50%; }
.writing-gallery figure:nth-child(4) img { object-position: 50% 44%; }
.writing-gallery figure:nth-child(5) img { object-position: 50% 50%; }
.writing-gallery figure:nth-child(6) img { object-position: 50% 50%; }
.writing-gallery figure:nth-child(7) img { object-position: 50% 48%; }

@media (max-width: 760px) {
  .portfolio-title { padding: 60px 20px 28px; }
  .portfolio-title p { font-size: .82rem; }
  .portfolio-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 20px;
  }
  .portfolio-filter button {
    padding: 1rem .35rem;
    border-bottom: 1px solid var(--line);
    font-size: .92rem;
  }
  .portfolio-filter button:nth-child(even) { border-right: 0; }
  .portfolio-filter button:nth-child(n+5) {
    border-bottom: 0;
  }
  .portfolio-page .category { padding-top: 34px; }
}
