/* Media Page Styles
 *
 * Page-specific layout only. Build on the tokens and shared classes in
 * global.css (.container, .section, .button, ...) and write mobile-first
 * min-width queries at 48rem / 64rem.
 */

/* ---------- Sermons ---------- */

/* SermonAudio's embed sizes its own content to the frame width */
.sermons__embed {
    display: block;
    width: 100%;
    border: 0;
}

.sermons__fallback {
    margin-top: var(--space-lg);
    text-align: center;
}

/* Facebook live-stream note below the sermon browser */
.livestream-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm) var(--space-md);
    max-width: 40rem;
    margin: var(--space-xl) auto 0;
    padding: var(--space-lg);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
}

.livestream-note__text {
    min-width: 0;
    margin: 0;
    font-size: var(--font-size-lg);
}

/* Icon-only link sized to a 44px touch target */
.livestream-note__link {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--color-on-accent);
    transition: background-color var(--duration-fast) var(--ease-out);
}

.livestream-note__link:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-on-accent);
}

/* Brand icons (Facebook, Spotify) take the link's text color */
.livestream-note__link svg,
.podcast__button svg {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

/* ---------- Podcast ---------- */

/* Flower banner with the standard wave rising out of the content below it.
   The strip is very wide (2560 x 300), so it gets a minimum height and is
   cropped with object-fit rather than shrinking to a sliver on phones. */
.podcast__banner {
    width: 100%;
    height: clamp(9rem, 5rem + 12vw, 18.75rem);
    object-fit: cover;
}

.podcast__content {
    text-align: center;
}

.podcast__text {
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-lg);
}
