.gallery-wall {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery-wall > * {
  grid-column: span 8;
  aspect-ratio: 4 / 3;
  min-width: 0;
  min-height: 0;
}

.gallery-wall > :nth-child(n + 4) {
  grid-column: span 6;
}

.gallery-wall > :nth-child(n + 8) {
  grid-column: span 3;
}

.gallery-wall[data-collapsed="true"] > :nth-child(n + 16) {
  display: none;
}

.gallery-photo {
  position: relative;
  display: block;
  overflow: hidden;
  height: 100%;
  background: var(--site-placeholder, #1a3042);
  cursor: zoom-in;
}

.gallery-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-photo:focus-visible::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 3px;
  border: 2px solid var(--site-focus, #bce8ff);
  box-shadow: 0 0 0 1px var(--site-hero, #101e2a);
  pointer-events: none;
}

.gallery-open { display: flex; margin: 28px auto 0; }

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

@media (max-width: 64rem) {
  .gallery-wall > :nth-child(n) {
    grid-column: span 12;
  }

  .gallery-wall > :nth-child(n + 3) {
    grid-column: span 8;
  }

  .gallery-wall > :nth-child(n + 6) {
    grid-column: span 6;
  }

  .gallery-wall[data-collapsed="true"] > :nth-child(n + 10) {
    display: none;
  }
}

@media (max-width: 35rem) {
  .gallery-wall {
    gap: 0.5rem;
  }

  .gallery-wall > :nth-child(n) {
    grid-column: span 24;
  }

  .gallery-wall > :nth-child(n + 2) {
    grid-column: span 12;
  }

  .gallery-wall > :nth-child(n + 4) {
    grid-column: span 8;
  }

  .gallery-wall[data-collapsed="true"] > :nth-child(n + 7) {
    display: none;
  }
}
.work-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  gap: 16px;
  margin-bottom: 24px;
}

.work .work-heading h2 {
  margin: 0;
}
