.product-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.product-gallery-thumbnail {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.product-gallery-thumbnail.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.product-gallery-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
