.rs-sgplus-wrapper {
    display: grid;
    gap: 20px;
    padding: 10px;
}

.rs-sgplus-item {
    text-align: center;
    background: #fff;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.rs-sgplus-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.rs-sgplus-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.rs-sgplus-meta {
    margin-top: 10px;
}

.rs-sgplus-title-meta {
    font-weight: bold;
    margin-bottom: 3px;
}

.rs-sgplus-artist-meta {
    font-style: italic;
    color: #333;
}
.rs-sgplus-title {
    text-align: center;
    font-size: 1.5em;
    margin: 0 0 5px 0;
}

.rs-sgplus-byline {
    text-align: center;
    font-size: 1em;
    margin: 0 0 15px 0;
    color: #666;
}
/* Small screens: 1 column, show up to 3 items */
@media (max-width: 767px) {
    .rs-sgplus-wrapper {
        grid-template-columns: 1fr !important;
    }
    .rs-sgplus-item:nth-child(n+4) {
        display: none;
    }
}

/* Medium screens (tablet): 2 columns, show up to 6 items */
@media (min-width: 768px) and (max-width: 1023px) {
    .rs-sgplus-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .rs-sgplus-item:nth-child(n+7) {
        display: none;
    }
}

/* Large screens (desktop): original grid, show all items */
@media (min-width: 1024px) {
    .rs-sgplus-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .rs-sgplus-item {
        display: block;
    }
}
.rs-sgplus-time {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 4px;
}
.rs-cols-1 { grid-template-columns: repeat(1, 1fr); }
.rs-cols-2 { grid-template-columns: repeat(2, 1fr); }
.rs-cols-3 { grid-template-columns: repeat(3, 1fr); }
.rs-cols-4 { grid-template-columns: repeat(4, 1fr); }
