.project-info {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr) minmax(0, .75fr);
  margin: 0 0 34px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.project-info__cell {
  min-width: 0;
  padding: 12px 14px;
  color: var(--ink);
  font-size: clamp(.92rem, 1.15vw, 1.18rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.16;
}

.project-info__cell + .project-info__cell { border-left: 1px solid var(--rule); }
.project-info__cell p { margin: 0; }
.project-info__cell p + p { margin-top: 10px; }

.project-info__label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1.05;
  text-transform: uppercase;
}

.gallery-section { margin: 0 0 48px; }

.gallery-section__title {
  margin: 0 0 14px;
  padding-top: 10px;
  border-top: 3px solid var(--rule);
  font-size: clamp(1.05rem, 1.8vw, 1.65rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  align-items: start;
}

.project-gallery--alphabet {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}

.project-gallery__item {
  display: block;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(36, 33, 29, .06);
  cursor: zoom-in;
}

.project-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 160ms ease;
}

.project-gallery__item:hover img,
.project-gallery__item:focus-visible img { transform: scale(1.018); }
.project-gallery__item:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.gallery-lightbox[hidden] { display: none; }

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(44px, 72px) minmax(0, 1fr) minmax(44px, 72px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 16px;
  background: rgba(36, 33, 29, .9);
}

.gallery-lightbox__close,
.gallery-lightbox__arrow {
  border: 0;
  background: transparent;
  color: var(--page-bg);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.gallery-lightbox__close {
  grid-column: 1 / -1;
  justify-self: end;
  min-height: 40px;
  padding: 8px 10px;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gallery-lightbox__arrow {
  position: relative;
  z-index: 2;
  align-self: center;
  width: 100%;
  min-height: 88px;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1;
}

.gallery-lightbox__arrow--previous { grid-column: 1; grid-row: 2; transform: translateX(14px); }
.gallery-lightbox__arrow--next { grid-column: 3; grid-row: 2; transform: translateX(-14px); }

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__arrow:hover,
.gallery-lightbox__arrow:focus-visible { color: #ff341f; outline: 0; }

.gallery-lightbox__figure {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  margin: 0;
}

.gallery-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 128px);
  border-radius: 2px;
  background: var(--page-bg);
  object-fit: contain;
}

.gallery-lightbox__caption {
  grid-column: 1 / -1;
  justify-self: center;
  color: var(--page-bg);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.gallery-open { overflow: hidden; }

@media (max-width: 760px) {
  .project-info { grid-template-columns: 1fr; }
  .project-info__cell + .project-info__cell { border-top: 1px solid var(--rule); border-left: 0; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery--alphabet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-lightbox { grid-template-columns: 40px minmax(0, 1fr) 40px; padding: 8px; }
  .gallery-lightbox__arrow--previous { transform: translateX(7px); }
  .gallery-lightbox__arrow--next { transform: translateX(-7px); }
}

