.rp-grid {
  display: grid;
  gap: 20px;
  /* grid-template-columns ustawia Elementor przez selectors (kontrolka "Liczba kolumn") */
}

.rp-item {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.rp-item-link,
.rp-item.rp-more {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.rp-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rp-image {
  display: block;
  width: 100%;
  height: auto;
}

.rp-image-wrap {
  display: block;
  flex-shrink: 0;
}

.rp-description {
  font-size: 14px;
  line-height: 1.4;
  flex-grow: 1;
  min-height: 60px;
}

/* "Przycisk" w kafelku jako span */
.rp-button {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  background-color: #ddd;
  color: #000;
  border: none;
  transition: all 0.3s ease;
}

.rp-item-link:hover .rp-button {
  opacity: 0.9;
}

.rp-button-wrap {
  display: block;
  margin-top: auto;
}

/* kafelek + więcej */
.rp-item.rp-more {
  background-color: #FFFFFF;
  justify-content: center;
  align-items: center;
}

.rp-more-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 10px 15px;
  color: inherit;
}