.photoswipe--gallery {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.photoswipe--gallery img {
  display: block;
  width: 100%;
}
.photoswipe--gallery a {
  display: block;
  max-width: 33.33%;
  width: 200px;
  margin: 0;
}
@supports (object-fit: cover) {
  .photoswipe--gallery figure {
    display: block;
    width: 100%;
    position: relative;
    padding: 0 0 100%;
  }
  .photoswipe--gallery figure img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
@supports (display: grid) {
  .photoswipe--gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1rem;
  }
  .photoswipe--gallery a {
    width: 100%;
    max-width: none;
  }
  @media (max-width: 700px) {
    .photoswipe--gallery {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  @media (max-width: 400px) {
    .photoswipe--gallery {
      grid-template-columns: repeat(2, 1fr);
      grid-gap: 3vw;
    }
  }
}
