/* Image galleries inserted from the admin TinyMCE "Gallery" button */
.content-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 1.5rem 0;
}

/* Fixed 4:3 frame per thumbnail; any image size is cropped to fill it */
.content-gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
}

/* !important: beat theme / rich-text rules like `img { height: auto }` */
.content-gallery img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  margin: 0 !important;
  transition: transform 0.2s ease;
}

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

@media (max-width: 640px) {
  .content-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
