.rice-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.rice-gallery figure {
  margin: 0;
  min-width: 0;
}

.rice-gallery-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f4f3;
}

.rice-gallery-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rice-gallery figcaption {
  margin-top: 12px;
  color: #666;
  font-size: 13px;
  line-height: 1.8;
}

.page-block .rice-gallery-note {
  margin-top: 20px;
  color: #666;
  font-size: 13px;
  line-height: 1.8;
}

@media (max-width: 700px) {
  .rice-gallery {
    grid-template-columns: 1fr;
  }
}
