.image-renderer {
  display: inline-block;
  vertical-align: middle;
  margin: 16px 4px; 
  max-width: 128px;
  max-height: 128px;
  box-sizing: border-box;
  padding: 0;
}

.image-renderer img {
  display: block;
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.image-renderer a {
  display: inline-block;
  text-decoration: none;
}

.image-renderer-link {
  display: flex;
  flex-direction:row;
  width: 128px;
  height: 128px;
  margin: 4px 8px 4px 0;
  vertical-align: middle;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  background: #222;
  transition: box-shadow 0.18s, transform 0.18s;
}
.image-renderer-link:hover {
  box-shadow: 0 4px 16px rgba(99,102,241,0.18);
  transform: scale(1.04);
}
.image-renderer-thumb {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 8px;
  background: #222;
  display: block;
}

.image-renderer-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.image-container-row, .image-container-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

/* Si hay dos .image-container seguidos, forzar flex-row */
.image-container + .image-container {
  display: inline-flex;
  vertical-align: top;
}
