/* OSCAR REGO PORTFOLIO 2026 - MEDIARIFT MOBILE STYLESHEET */

@media (max-width: 1200px) {
    .mediarift-detail-row {
        grid-template-columns: 1fr 400px;
        gap: 60px;
    }
}

@media (max-width: 900px) {
    /* Prevent horizontal scrolling and handle overflow */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .mediarift-case-study {
        padding-top: 0;
    }

    .mediarift-title {
        font-size: 72px;
    }

    .mediarift-main-placeholder {
        height: 70vh;
        min-height: 500px;
    }

    .mediarift-hero-content {
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 88%;
    }

    .mediarift-details {
        gap: 80px;
        margin-top: 60px;
        padding: 0 5%;
    }

    .mediarift-detail-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mediarift-sticky-card {
        position: static;
        width: 100%;
        height: auto;
    }

    .mediarift-carousel-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 600px) {
    .mediarift-title {
        font-size: 14vw;
    }

    .mediarift-main-placeholder {
        height: 65vh;
        min-height: 450px;
    }

    .mediarift-hero-content {
        bottom: 60px;
    }

    .mediarift-content-block h2 {
        font-size: 28px;
    }

    .mediarift-content-block p {
        font-size: 16px;
        line-height: 1.7;
    }

    .mediarift-intro-text {
        font-size: 16px;
    }

    /* Keep carousel navigation usable on small touch devices */
    .carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 24px;
        border-radius: 8px;
        bottom: 10px;
    }

    .carousel-nav.prev {
        right: 60px;
    }

    .carousel-nav.next {
        right: 15px;
    }

    .carousel-nav span {
        transform: translateY(-2px);
    }
}
