.gallery-accessible-title {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.project-albums, .h-albums, .portfolio-immersive .h-project-index {
  --gallery-gap: clamp(1rem, 2vw, 2rem);
  --photo-mat: #eee9df;
  width: min(calc(100% - 3rem), 1440px);
  margin-inline: auto;
}
.project-albums, .h-albums { padding-block: clamp(1.4rem, 3vw, 3rem); }
.project-albums .project-album, .h-albums .project-album { margin: 0; }
.project-albums .project-album + .project-album, .h-albums .project-album + .project-album {
  margin-top: var(--gallery-gap);
}
.project-album .project-album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gallery-gap);
}
.project-album .project-album-grid figure {
  min-width: 0; margin: 0; border: 0; background: transparent;
  border-radius: 0; overflow: visible;
}
.project-album .project-album-grid a {
  display: block; aspect-ratio: 4 / 3; background: var(--photo-mat);
}
.project-album .project-album-grid img {
  display: block; width: 100%; height: 100%; max-height: none;
  aspect-ratio: auto; object-fit: contain; background: transparent;
}
.portfolio-immersive .h-title { padding-block: clamp(1.65rem, 3.5vw, 3.8rem); }
.portfolio-immersive .h-title p { margin-bottom: 0; }
.portfolio-immersive .h-project-index { padding-top: clamp(1rem, 2.5vw, 2.6rem); }
.portfolio-immersive .h-project-index .h-grid { gap: var(--gallery-gap); }
.portfolio-immersive .h-project-index .h-card > a,
.portfolio-immersive .h-project-index .h-card > a > div {
  display: flex; flex-direction: column;
}
.portfolio-immersive .h-project-index .h-card > a { height: 100%; }
.portfolio-immersive .h-project-index .h-card > a > div { flex: 1; }
.portfolio-immersive .h-project-index .h-card .h-textlink { margin-top: auto; align-self: flex-start; }
.portfolio-immersive .h-project-index img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: contain; background: var(--photo-mat);
}
@media (min-width: 681px) {
  .project-album .project-album-grid > figure:last-child:nth-child(odd) {
    grid-column: 1 / -1; width: calc((100% - var(--gallery-gap)) / 2); justify-self: center;
  }
}
@media (max-width: 680px) {
  .project-albums, .h-albums, .portfolio-immersive .h-project-index { width: calc(100% - 2rem); }
  .project-album .project-album-grid { grid-template-columns: minmax(0, 1fr); }
}
