.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #f0f0f0;
  aspect-ratio: 4 / 3;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
  display: block;
}

.gallery-grid a:hover img {
  transform: scale(1.04);
}

/* HTML pattern button used in article content */
.gallery-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
