.rcs-rp-container {
  width: 100%;
}

.rcs-rp-heading {
  font-size: 1.5em;
  margin-bottom: 16px;
}

.rcs-rp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  justify-items: start; /* left align on desktop */
}

.rcs-rp-item {
  text-align: center;
}

/* Fixed square container for artwork, preserve shape */
.rcs-rp-art {
  width: 200px;        /* fixed width */
  height: 200px;       /* fixed height to keep square shape */
  overflow: hidden;    /* clip overflow */
  border-radius: 8px;  /* rounded corners */
  margin: 0 auto 10px; /* center horizontally with bottom margin */
}

.rcs-rp-art img {
  width: 100%;         /* fill container width */
  height: 100%;        /* fill container height */
  object-fit: cover;   /* crop without distortion */
  display: block;
  border-radius: inherit;
  margin: 0;
}

.rcs-rp-title {
  font-weight: bold;
  margin-bottom: 4px;
}

.rcs-rp-artist {
  opacity: 0.8;
}

/* Mobile stacking behavior */
@media (max-width: 768px) {
  .rcs-rp-grid {
    display: flex;
    flex-direction: column;
    align-items: center;   /* center items horizontally */
    gap: 15px;
  }

  .rcs-rp-item {
    display: flex;
    flex-direction: column;
    align-items: center;   /* center content */
    text-align: center;
    max-width: 90vw;
    margin: 0 auto;
  }

  /* Smaller fixed square for artwork on mobile */
  .rcs-rp-art {
    width: 200px;
    height: 200px;
  }
}
