/* =========================================================
   Random Media Showcase – Front-End Styles
   ========================================================= */

/* Container */
.rms-showcase {
    position: relative;
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    font-family: inherit;
    box-sizing: border-box;
}

/* Floating label */
.rms-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: #1a1a2e;
    padding: 4px 10px;
    border-radius: 3px 3px 0 0;
    margin-bottom: 0;
    line-height: 1.6;
    opacity: 0.85;
}

/* Figure reset */
.rms-figure {
    margin: 0;
    padding: 0;
    display: block;
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    transition: transform 0.2s ease;
}

.rms-figure:hover {
    transform: translateY(-2px);
}

/* The image itself */
.rms-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.rms-link {
    display: block;
    line-height: 0; /* collapse link whitespace */
}

.rms-link:hover .rms-image {
    opacity: 0.92;
}

/* Caption area */
.rms-figcaption {
    padding: 0.75rem 1rem;
    background: #1a1a2e;
    color: #e8e8f0;
}

.rms-title {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

.rms-caption {
    margin: 0;
    font-size: 0.82rem;
    color: #a8a8c0;
    font-style: italic;
    line-height: 1.5;
}

/* Error / empty state */
.rms-no-image {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 1rem;
    border: 1px dashed #ccc;
    border-radius: 6px;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 640px) {
    .rms-showcase {
        margin: 1.25rem auto;
    }

    .rms-image {
        max-height: 280px;
    }
}
