/* ===== lava_gallery ===== */

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

.lava-gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #f5f5f5;
}

.lava-gallery__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.lava-gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 768px) {
  .lava-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
