.hero--our_work {
  min-height: 520px;
}
.hero--our_work .hero-copy {
  max-width: 1140px;
  margin-top: 86px;
}
.projects-section {
  padding-block: 68px 74px;
  background: radial-gradient(ellipse at center, #fff, #f2f0ea 51%, #dde7e2);
}
.project {
  padding: 34px 34px 36px;
  border: 1px solid #e2ddd2;
  border-radius: 18px;
  background: linear-gradient(90deg, #ede6db7a, #f8f6f14d 46%, #fff);
  box-shadow: 0 18px 44px #2f2b2614;
}
.project:nth-of-type(2) {
  background: radial-gradient(
    ellipse at 35% 35%,
    #57705624,
    #eae6dc40 56%,
    #fff
  );
}
.project-caption {
  color: var(--color-cardinal-dark);
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 22px;
}
.project-gallery {
  display: grid;
  gap: 18px;
  height: 610px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #ffffffa6;
  min-width: 0;
  min-height: 0;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img {
  transform: scale(1.03);
}
.gallery-feature {
  grid-template-rows: 181fr 181fr 212fr;
}
.gallery-feature > a:nth-child(1) {
  grid-column: 1/8;
  grid-row: 1/3;
}
.gallery-feature > a:nth-child(2) {
  grid-column: 8/13;
  grid-row: 1;
}
.gallery-feature > a:nth-child(3) {
  grid-column: 8/13;
  grid-row: 2;
}
.gallery-feature > a:nth-child(4) {
  grid-column: 1/5;
  grid-row: 3;
}
.gallery-feature > a:nth-child(5) {
  grid-column: 5/9;
  grid-row: 3;
}
.gallery-feature > a:nth-child(6) {
  grid-column: 9/13;
  grid-row: 3;
}
.gallery-tall {
  grid-template-rows: 1fr 1fr;
}
.gallery-tall > a:first-child {
  grid-column: 1/5;
  grid-row: 1/3;
}
.gallery-tall > a:nth-child(2) {
  grid-column: 5/9;
}
.gallery-tall > a:nth-child(3) {
  grid-column: 9/13;
}
.gallery-tall > a:nth-child(4) {
  grid-column: 5/8;
}
.gallery-tall > a:nth-child(5) {
  grid-column: 8/11;
}
.gallery-tall > a:nth-child(6) {
  grid-column: 11/13;
}
.gallery-banner {
  grid-template-rows: 270fr 152fr 152fr;
}
.gallery-banner > a:first-child {
  grid-column: 1/13;
}
.gallery-banner > a:nth-child(2) {
  grid-column: 1/5;
  grid-row: 2;
}
.gallery-banner > a:nth-child(3) {
  grid-column: 1/5;
  grid-row: 3;
}
.gallery-banner > a:nth-child(4) {
  grid-column: 5/9;
  grid-row: 2/4;
}
.gallery-banner > a:nth-child(5) {
  grid-column: 9/13;
  grid-row: 2;
}
.gallery-banner > a:nth-child(6) {
  grid-column: 9/13;
  grid-row: 3;
}
.project-divider {
  display: flex;
  align-items: center;
  gap: 70px;
  height: 78px;
  margin-block: 34px;
}
.project-divider:before,
.project-divider:after {
  content: "";
  height: 1px;
  background: #c6bdaeaf;
  flex: 1;
}
.divider-medallion {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
}
.divider-tool {
  position: absolute;
  display: grid;
  place-items: center;
}
.lightbox {
  padding: 20px;
  border: 0;
  background: #17191bf5;
  color: #fff;
  width: min(1200px, 94vw);
  max-height: 94dvh;
  border-radius: 8px;
}
.lightbox::backdrop {
  background: #000c;
  backdrop-filter: blur(8px);
}
.lightbox-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lightbox figure {
  margin: 12px 0;
}
.lightbox-image {
  width: 100%;
  height: 65dvh;
  object-fit: contain;
}
.lightbox figcaption {
  text-align: center;
  margin-top: 10px;
}
.lightbox-controls {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.lightbox-open {
  overflow: hidden;
}
@media (max-width: 900px) {
  .project {
    padding: 24px;
  }
  .project-gallery {
    height: 490px;
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .hero--our_work {
    min-height: 390px;
  }
  .hero--our_work .hero-copy {
    margin-top: 48px;
  }
  .projects-section {
    padding-block: 40px;
  }
  .project {
    padding: 18px;
    border-radius: 8px;
  }
  .project h2 {
    font-size: 28px;
    line-height: 35px;
  }
  .project-gallery {
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    gap: 10px;
  }
  .project-gallery > a:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1;
  }
  .project-gallery > a:first-child {
    grid-column: 1/-1;
    aspect-ratio: 1.6;
  }
  .project-gallery > a:last-child {
    grid-column: 1/-1;
    aspect-ratio: 2;
  }
  .project-divider {
    gap: 24px;
    margin-block: 18px;
  }
  .lightbox {
    padding: 12px;
  }
  .lightbox-image {
    height: 60dvh;
  }
}
