/**
 * Mustang Interscroller front-end styles.
 *
 * The interscroller effect: the inner image is position:fixed, but the
 * outer frame uses clip-path: inset(0) which makes the frame a containing
 * block for the fixed child. The image then appears stationary through the
 * frame's "window" as the page scrolls, creating the parallax reveal.
 */

.mfc-interscroller {
    width: 100%;
    margin: 2.5rem 0;
    clear: both;
}

.mfc-interscroller-frame {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    clip-path: inset(0);
    background: #000;
}

.mfc-interscroller-link {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.mfc-interscroller-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.mfc-interscroller-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.mfc-interscroller-disclosure {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
    z-index: 2;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.mfc-interscroller-cta {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #111;
    padding: 0.85rem 2.25rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    z-index: 2;
    white-space: nowrap;
}

.mfc-interscroller-link:hover .mfc-interscroller-cta {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* Reduced motion users still get a static fullscreen ad, just without parallax. */
@media (prefers-reduced-motion: reduce) {
    .mfc-interscroller-link {
        position: absolute;
    }
}

/* Mobile tuning. */
@media (max-width: 768px) {
    .mfc-interscroller {
        margin: 1.75rem 0;
    }

    .mfc-interscroller-cta {
        bottom: 1.75rem;
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }
}
