.my-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 13px;
  width: 100%;
}
.my-gallery figure {
  display: block;
  float: none;
  margin: 0;
  width: auto;
}
.my-gallery figure a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.my-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.my-gallery figcaption {
  display: none;
}