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

@media (max-width: 1200px) {
    .jsms-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;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    .jsms-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: 16px;
    }
}
