.projects-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #092d15 0%, #154b27 100%);
  color: #fff;
}
.projects-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, .09);
  transform: rotate(45deg);
  right: -80px;
  top: -160px;
  pointer-events: none;
}
.projects-hero-inner {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-top: 70px;
  padding-bottom: 70px;
}
.projects-hero h1 {
  color: #fff;
  font: 800 clamp(45px, 5.3vw, 76px)/1.07 var(--heading);
  letter-spacing: -.055em;
  margin: 0 0 19px;
}
.projects-hero h1 em, .gallery-cta h2 em { color: var(--gold); font-style: normal; }
.projects-hero-inner > div:first-child > p:last-child { max-width: 580px; color: #d0ded0; margin: 0; font-size: 16px; }
.hero-side-note { position: relative; z-index: 1; display: grid; justify-items: end; gap: 20px; color: #d8e3d9; text-align: right; font: 800 9px/1.6 var(--heading); letter-spacing: .16em; }
.hero-side-note b { display: block; width: 50px; height: 2px; background: var(--gold); }
.hero-side-note small { font-size: 9px; color: #9db8a1; }
.gallery-intro { padding-top: 100px; padding-bottom: 62px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.gallery-intro h2, .gallery-cta h2 { color: var(--green); margin: 0; font: 800 clamp(34px, 4vw, 53px)/1.12 var(--heading); letter-spacing: -.055em; }
.gallery-intro h2 em { color: #a57e0b; font-style: normal; }
.gallery-intro > p { max-width: 390px; color: var(--muted); margin: 0 0 5px; }
.gallery-content { padding-bottom: 100px; }
.gallery-section { padding: 36px 0 48px; border-top: 1px solid #dbe4da; }
.gallery-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.gallery-section-heading h2 { margin: 0; color: var(--green); font: 800 30px/1.2 var(--heading); letter-spacing: -.04em; }
.gallery-section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.gallery-empty { color: var(--muted); margin: 0; font-size: 14px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.gallery-photo { display: block; min-width: 0; overflow: hidden; background: #f5f6f0; color: var(--green); border: 1px solid #e6ebe2; transition: box-shadow .25s, transform .25s; }
.gallery-photo:hover { transform: translateY(-4px); box-shadow: 0 14px 35px rgba(12, 54, 25, .12); }
.gallery-photo:focus-visible, .load-more:focus-visible { outline: 3px solid #a37a00; outline-offset: 4px; }
.photo-image { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; overflow: hidden; background: #e7ebe3; }
.photo-image img { width: 100%; height: 100%; object-fit: contain; }
.photo-zoom { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--green); background: #fff; font-size: 20px; line-height: 1; }
.photo-label { display: flex; justify-content: space-between; align-items: center; min-height: 54px; padding: 13px 16px; font: 800 10px/1.3 var(--heading); letter-spacing: .12em; text-transform: uppercase; }
.photo-label span:last-child { color: #8b7736; letter-spacing: .03em; font-size: 10px; }
.js-gallery .gallery-photo[data-pending] { display: none; }
.gallery-actions { text-align: center; padding-top: 15px; }
.gallery-actions p { min-height: 20px; margin: 0 0 15px; color: var(--muted); font-size: 12px; }
.load-more[hidden] { display: none; }
.gallery-cta { background: var(--green); color: #fff; }
.gallery-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
.gallery-cta h2 { color: #fff; }
.project-lightbox img { max-height: 78vh; }
@media (max-width: 950px) {
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .projects-hero-inner { min-height: 320px; }
}
@media (max-width: 640px) {
  .projects-hero-inner { min-height: 290px; padding-top: 58px; padding-bottom: 58px; }
  .projects-hero h1 { font-size: clamp(39px, 10vw, 52px); }
  .projects-hero-inner > div:first-child > p:last-child { font-size: 14px; }
  .hero-side-note { display: none; }
  .gallery-intro { display: block; padding-top: 70px; padding-bottom: 42px; }
  .gallery-intro > p { margin: 20px 0 0; font-size: 14px; }
  .gallery-content { padding-bottom: 72px; }
  .gallery-section { padding: 28px 0 35px; }
  .gallery-section-heading { display: block; margin-bottom: 20px; }
  .gallery-section-heading h2 { font-size: 26px; }
  .gallery-section-heading p { margin-top: 8px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .photo-label { padding: 10px; font-size: 9px; }
  .photo-label span:last-child { font-size: 9px; }
  .photo-zoom { width: 30px; height: 30px; right: 8px; top: 8px; }
  .gallery-cta-inner { display: block; padding-top: 58px; padding-bottom: 58px; }
  .gallery-cta .button { margin-top: 26px; }
}
