body.page-id-3076 .wrap .gallery {
  display: grid !important;
  columns: auto !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(5px, 1vw, 14px);
  align-items: stretch;
}
body.page-id-3076 .gallery > figure {
  position: relative;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #272325;
}
body.page-id-3076 .gallery .gallery-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
}
body.page-id-3076 .gallery .gallery-open:focus-visible { outline: 3px solid white; outline-offset: -5px; }
body.page-id-3076 .gallery .gallery-open img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5 !important;
  object-fit: cover;
  object-position: center 34%;
  border-radius: 0;
}
body.page-id-3076 .gallery figure figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 12px 10px;
  margin: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.76));
  color: white;
  font-size: clamp(12px, 1.25vw, 16px);
  line-height: 1.25;
  pointer-events: none;
}
@media (max-width: 760px) {
  body.page-id-3076 .wrap .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
  body.page-id-3076 .gallery > figure:nth-child(3n+1) { grid-column: 1 / -1; }
  body.page-id-3076 .gallery > figure:nth-child(3n+1) img { aspect-ratio: 1 / 1 !important; }
}
