.project-heading {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 9vw;
  align-items: end;
}

.project-meta {
  color: #d8cec5;
  border-left: 1px solid rgba(255,255,255,.2);
  padding-left: 32px;
  margin-bottom: 55px;
}

.project-meta span {
  display: block;
  color: #d8b47b;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  margin-bottom: 10px;
}

.project-meta strong {
  display: block;
  color: #fff;
  font: 500 23px "Playfair Display";
  margin-bottom: 12px;
}

.project-meta p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.project-credit {
  display: block;
  margin-top: 14px;
  color: #d8b47b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.album {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  grid-auto-rows: 235px;
  gap: 14px;
}

.album-photo {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #1f1b18;
  color: #fff;
  text-align: left;
  cursor: zoom-in;
}

.album-photo-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.album-photo-wide { grid-column: span 2; }
.album-photo-full { grid-column: 1 / -1; }

.project-heading-latest .project-meta {
  position: relative;
}

.project-heading-latest .project-meta::before {
  content: "New";
  position: absolute;
  top: -34px;
  left: 32px;
  color: #171411;
  background: #d8b47b;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.project-separator {
  height: 1px;
  margin: 105px 0 95px;
  background: linear-gradient(90deg, transparent, rgba(216,180,123,.7), transparent);
}

.album-photo img {
  height: 100%;
  transition: transform .55s, filter .55s;
}

.album-photo:hover img,
.album-photo:focus-visible img {
  transform: scale(1.03);
  filter: brightness(.82);
}

.album-photo span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  opacity: 0;
  transform: translateY(5px);
  transition: .3s;
  font: 500 17px "Playfair Display";
  text-shadow: 0 1px 12px #000;
}

.album-photo:hover span,
.album-photo:focus-visible span {
  opacity: 1;
  transform: none;
}

.album-photo:focus-visible {
  outline: 2px solid #d8b47b;
  outline-offset: 3px;
}

.album-hint {
  margin: 18px 0 0;
  color: #a99c91;
  font-size: 12px;
  letter-spacing: .08em;
}

.lightbox {
  width: min(94vw,1500px);
  height: min(92vh,1000px);
  border: 0;
  padding: 0;
  background: #171411;
  color: #fff;
  overflow: hidden;
}

.lightbox::backdrop { background: rgba(13,11,9,.93); }
.lightbox figure { height: 100%; margin: 0; display: grid; place-items: center; position: relative; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }

.lightbox figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 24px 20px;
  text-align: center;
  background: linear-gradient(transparent,rgba(0,0,0,.72));
  font: 500 18px "Playfair Display";
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  right: 18px;
  top: 18px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(20,17,14,.72);
  color: #fff;
  padding: 10px 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  border: 0;
  background: rgba(20,17,14,.58);
  color: #fff;
  font-size: 36px;
  cursor: pointer;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

@media (max-width: 1050px) {
  .album { grid-template-columns: repeat(3,1fr); }
  .album-photo-wide { grid-column: span 1; }
}

@media (max-width: 850px) {
  .project-heading { grid-template-columns: 1fr; gap: 0; }
  .project-meta { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.2); padding-top: 24px; }
  .album { grid-template-columns: repeat(2,1fr); grid-auto-rows: 240px; }
  .album-photo-wide { grid-column: span 2; }
  .album-photo-full { grid-column: 1 / -1; }
  .project-heading-latest .project-meta::before { left: 0; top: -17px; }
  .project-separator { margin: 78px 0 70px; }
}

@media (max-width: 560px) {
  .album { grid-template-columns: 1fr; grid-auto-rows: 255px; }
  .album-photo-featured,
  .album-photo-wide,
  .album-photo-full { grid-column: auto; grid-row: auto; }
  .project-separator { margin: 62px 0 56px; }
  .album-photo span { opacity: 1; transform: none; background: rgba(20,17,14,.68); padding: 7px 10px; left: 10px; bottom: 10px; }
  .lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; }
  .lightbox-nav { width: 42px; height: 56px; }
  .lightbox figcaption { font-size: 16px; }
}
