.portfolio-page {
  background: #f5f4f0;
  color: #171717;
}

/* Keep the portfolio focused on the work: it does not use the shared sticky wordmark. */
.portfolio-page .site-header .wordmark {
  display: none !important;
}

.portfolio-page .site-header .menu-toggle {
  transform: none !important;
  width: 3.4rem;
  height: 3.4rem;
  font-size: 0;
}

.portfolio-page .site-shell { overflow: clip; }
.portfolio-main { padding-top: 6rem; }

.portfolio-intro-copy {
  max-width: 88rem;
  margin: 0 auto;
  padding: 8rem 4vw 8.5rem;
  text-align: center;
}

.portfolio-kicker {
  margin: 0 0 2.6rem;
  color: #67645f;
  font-family: var(--body, Montserrat, Arial, sans-serif);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.portfolio-intro-copy h1 {
  margin: 0;
  color: #171717;
  font-family: var(--display, "Editors Note", Georgia, serif);
  font-size: clamp(3.6rem, 7.25vw, 8.6rem);
  font-weight: 300;
  letter-spacing: -.075em;
  line-height: .9;
}

.portfolio-intro-copy h1 em {
  font-style: italic;
  font-weight: 300;
}

.portfolio-gallery {
  width: min(95rem, 100%);
  margin: 0 auto;
  padding: 0 3.4vw 10rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(1.2rem, 2.5vw, 2.8rem);
}

.portfolio-gallery-item {
  min-width: 0;
  margin: 0;
}

.portfolio-gallery-item.is-landscape {
  grid-column: span 2;
}

.portfolio-lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.portfolio-lightbox-trigger img {
  display: block;
  width: 100%;
  height: auto;
  filter: none;
  transform: scale(1);
  transition: filter .45s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}

.portfolio-lightbox-trigger:hover img,
.portfolio-lightbox-trigger:focus-visible img {
  filter: grayscale(1);
  transform: scale(1.018);
}

.portfolio-lightbox-trigger:focus-visible {
  outline: 1px solid #171717;
  outline-offset: .35rem;
}

.portfolio-lightbox[hidden] { display: none; }
.portfolio-lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(17, 17, 17, .94);
}

.portfolio-lightbox-backdrop {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}

.portfolio-lightbox-frame {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.portfolio-lightbox-image {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - 8rem) !important;
  max-height: calc(100vh - 8rem) !important;
  object-fit: contain;
}

.portfolio-lightbox-close {
  position: absolute;
  top: -2.4rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: 200;
  line-height: 1;
}

.portfolio-lightbox-nav {
  position: fixed;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(17, 17, 17, .35);
  color: #fff;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: 200;
  line-height: .8;
  transform: translateY(-50%);
  transition: background .2s ease, border-color .2s ease;
}

.portfolio-lightbox-nav:hover,
.portfolio-lightbox-nav:focus-visible {
  border-color: #fff;
  background: rgba(17, 17, 17, .72);
}

.portfolio-lightbox-prev { left: 1.5rem; }
.portfolio-lightbox-next { right: 1.5rem; }

.portfolio-lightbox-count {
  position: fixed;
  z-index: 2;
  right: 50%;
  bottom: 1.5rem;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font: 400 .68rem/1 Montserrat, Arial, sans-serif;
  letter-spacing: .16em;
  transform: translateX(50%);
}

body.lightbox-open { overflow: hidden; }

@media (max-width: 900px) {
  .portfolio-main { padding-top: 4rem; }
  .portfolio-intro-copy { padding: 6.5rem 3vw 6.5rem; }
  .portfolio-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 7rem;
  }
}

@media (max-width: 560px) {
  .portfolio-intro-copy { padding: 5.5rem 1.1rem 5.5rem; }
  .portfolio-kicker { font-size: .64rem; letter-spacing: .17em; }
  .portfolio-intro-copy h1 { font-size: clamp(2.7rem, 12.5vw, 5rem); line-height: .93; }
  .portfolio-gallery {
    grid-template-columns: 1fr;
    padding: 0 1.1rem 5rem;
  }
  .portfolio-gallery-item.is-landscape { grid-column: span 1; }
  .portfolio-gallery-item { margin-bottom: 0; }
  .portfolio-lightbox { padding: 1rem; }
  .portfolio-lightbox-image {
    max-width: calc(100vw - 4rem) !important;
    max-height: calc(100vh - 7rem) !important;
  }
  .portfolio-lightbox-close { top: -2.7rem; }
  .portfolio-lightbox-nav { width: 2.8rem; height: 2.8rem; font-size: 2.2rem; }
  .portfolio-lightbox-prev { left: .75rem; }
  .portfolio-lightbox-next { right: .75rem; }
  .portfolio-lightbox-count { bottom: 1rem; }
}
.site-header .menu-toggle{display:grid!important;place-items:center!important;position:absolute!important;top:1.25rem!important;right:var(--gutter)!important;left:auto!important;width:3.4rem!important;height:3.4rem!important;min-width:3.4rem!important;min-height:3.4rem!important;padding:0!important;border:1px solid currentColor!important;border-radius:50%!important;background:rgba(245,244,240,.78)!important;color:#171717!important;font-size:0!important;transform:none!important;z-index:22!important}.site-header .menu-toggle::before{content:'';display:block;width:1.35rem;height:.82rem;background:linear-gradient(to bottom,currentColor 0 2px,transparent 2px 5px,currentColor 5px 7px,transparent 7px 10px,currentColor 10px 12px)}.site-header .menu-toggle[aria-expanded='true']::before{height:1.2rem;background:linear-gradient(45deg,transparent 44%,currentColor 45% 55%,transparent 56%),linear-gradient(-45deg,transparent 44%,currentColor 45% 55%,transparent 56%)}
body.portfolio-page .site-header .menu-toggle{border:0!important;background:transparent!important}
