/* Mobile Layout: 320-767 */

    @media only screen and (min-width: 320px) and (max-width: 767px) {

        
        /*::::::::::::::::::::::::::::::::::::
           STYLES
        ::::::::::::::::::::::::::::::::::::*/

            /* Measurements, spacers, hiding */

                .layout {
                    padding: 1rem 2rem;
                    max-width: 25em;
                }

                .col-12-intro {
                    width: 100%;
                    display: block;
                    column-gap: 2rem;
                }                    

                .col-12 {
                    width: 100%;
                    display: block;
                    column-gap: 2rem;
                }

                .col-12-grid {
                    display: grid;
                    grid-auto-flow: row;              /* override the column flow */
                    grid-template-columns: repeat(2, 1fr);
                    gap: 1rem;                        /* spacing between icons, adjust as needed */
                    justify-content: center; 
                }

                .col-12-contact {
                    width: 100%;
                    display: grid;
                    grid-auto-flow: row;              /* override the column flow */
                    grid-template-columns: repeat(1, 1fr);
                    gap: 3rem;                        /* spacing between icons, adjust as needed */
                    justify-content: center; 
                }

                .col-9 {
                    width: 100%;
                    display: block;
                }

                .col-8 {
                    width: 100%;
                    display: block;
                }

                .col-7 {
                    width: 100%;
                    display: block;
                }

                .col-6 {
                    width: 100%;
                    display: block;
                }

                .col-5 {
                    width: 100%;
                    display: block;
                } 

                .col-4 {
                    width: 100%;
                    display: block;
                } 

                .col-3 {
                    width: 100%;
                    display: block;
                }

                .col-2 {
                    width: 100% ;
                }

                .col-1 {
                    width: 100% ;
                }

                .section-padding {
                    padding: 60px 12px;
                }

                .section-padding-portfolio {
                    padding: 0px 12px;
                }

                .section-padding-hero {
                    padding-top:60px;
                    padding-bottom: 60px;
                }

            /* Typography */

                h1 {
                    font-size: 2.5rem; 
                    line-height: 2.8rem;
                    }

                h2 {
                    font-size:2rem;
                    line-height: 2.4rem;
                }

                h3 {
                    font-size: 1.75rem; 
                    line-height: 2.2rem;
                }

                h4{
                    font-size: 1.3rem; 
                    line-height: 1.7rem;
                }

                h5 {
                    font-size: 1.2rem;
                    line-height: 1.6rem;
                }

                p {
                    font-size: 1.1rem;
                    line-height: 1.6rem;
                }

            /* Images */

                .portrait {
                    background: url(assets/images/portrait.png);
                    border-radius: 24px;
                    max-width: 80%;
                    transform: rotate(0deg);            
                }

                .bleed-bottom {
                    margin-bottom: 0px;
                } 

                .bleed-top {
                    margin-top: 0px;
                }


        
        /*::::::::::::::::::::::::::::::::::::
           UI Components
        ::::::::::::::::::::::::::::::::::::*/ 

                /* ---------- Buttons ---------- */  

                    .bu {
                    width: max-content;
                    font-size: 1.1rem; 
                    }        
                
                    .bu-group {
                        display: inline-flex;
                        gap: 8px;
                        align-content: center;
                        align-items: center;
                        flex-wrap: wrap;
                        justify-content: left;
                        width: 100%;
                    }   


                /* ---------- Cards ---------- */

                    .grid {
                        display: grid;
                        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                        grid-gap: calc(0.8em + 1vw);
                    }    

                    .card {
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                    }

                    .card img{
                        max-width: 100%;
                    }


                /* ----- Chips ----- */

                    .chip-group {
                        display: none;
                    }     


                /* ----- Feature blocks ----- */
        
                    .feature-block-group {
                        display: grid;
                        grid-template-columns: 1fr;
                    }

                    .feature-block__step:not(:last-child)::after {
                        display:none;
                    }    

                    



                /* ----- Portfolio cards (WORK page) ----- */

                    .grid {
                        display: grid;
                        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                        grid-gap: calc(0.8em + 1vw);
                    }    


                /* ----- Problem cards ----- */

                    .problem-card-group {
                        display: grid;
                        grid-template-columns: 1fr;
                    }


                /* ----- Portfolio content ----- */

                    .detail__header {

                        top: 0px;
                        z-index: 900;
                        background-color: transparent; /* whatever your page background is */
                        z-index: 900;
                        margin: 0 -2rem;      /* matches .layout's mobile padding */
                        padding: 1rem 2rem;
                    }


                    .detail__body {
                        display: block; /* single column by default */
                    }


                /* ----- Table ----- */
        

                    .table th {
                        font-weight: 500;
                        border-top: none;
                        width: 100%;
                        white-space: nowrap;
                        vertical-align: middle;
                        text-align: left;
                        display: block;
                        padding-top: 0.5rem;
                        height: auto;
                    }

                    .table td {
                        font-weight: 400;
                        white-space: normal; /* "break-word" isn't a valid white-space value */
                        border-bottom: 1px solid var(--border-color);
                        vertical-align: middle;
                        text-align: left;
                        width: 100%;
                        display: block;
                        padding-bottom: 0.5rem;
                        height: auto;
                    }      


                /* ----- Testimonial card ----- */
        
                    .testimonial-card {
                        background-color: var(--white20);
                        border-radius: 8px;
                        padding: 0.5rem 1rem;
                        margin-bottom: 2rem;
                        box-shadow: 4px 4px 0 var(--box-shadow);
                    }  

                    .testimonial-card-group {
                        display: block;
                        align-items: start;
                    }       




        /*::::::::::::::::::::::::::::::::::::
           ORGANISMS
        ::::::::::::::::::::::::::::::::::::*/
                
                /* ---------- Nav bar ---------- */

                    .navbar {
                        padding: 1rem 1.5rem;
                        flex-wrap: wrap;
                    }

                    .nav-toggle {
                        display: flex;
                    }

                    #main-nav-links {
                        display: flex;
                        position: fixed;
                        top: 0;
                        right: 0;
                        height: 100vh;
                        width: min(80vw, 320px);
                        flex-direction: column;
                        justify-content: flex-start;
                        align-items: flex-start;
                        gap: 2rem;
                        padding: 6rem 2rem;
                        background: var(--dark-gradient);
                        backdrop-filter: blur(12px);
                        -webkit-backdrop-filter: blur(12px);
                        transform: translateX(100%);
                        transition: transform 0.4s ease;
                        z-index: 2000;
                    }

                    #main-nav-links.open {
                        transform: translateX(0);
                    }

                    /* dim the page behind the open menu */
                    #nav-overlay {
                        display: none;
                        position: fixed;
                        inset: 0;
                        width: 100vw;
                        height: 100vh;
                        background: var(--black70);
                        z-index: 1040;
                    }

                    #nav-overlay.open {
                        display: block;
                    }

                    body.nav-open {
                        overflow: hidden; /* lock scroll while menu is open */
                    }
                           

                /* ---------- Footer ---------- */   

                    .footer-area {
                        padding: 0.5rem 1rem;
                        display: flex;
                        flex-direction: column;
                        text-align: center;
                        margin-top: 3rem;
                    }   

                    .footer-links {
                        list-style: none;
                        display: flex;
                        gap: 1rem;
                        margin: 0;
                        align-items: center;
                        flex-direction: row;
                        justify-content: center;
                    }     


                /* ---------- Table of Contents (ToC) ---------- */   
                
                    .toc {
                        display: none;
                    }
    }    




/* Tablet Layout: 768-991 */

    @media only screen and (min-width: 768px) and (max-width: 991px) {

        /*::::::::::::::::::::::::::::::::::::
           STYLES
        ::::::::::::::::::::::::::::::::::::*/

            /* Measurements, spacers, hiding */

                .col-12-intro {
                    width: 100%;
                    display: block;
                    column-gap: 2rem;
                }                    

                .col-12 {
                    width: 100%;
                    display: block;
                    column-gap: 2rem;
                }

                .col-12-grid {
                    width: 100%;
                    display: grid;
                    grid-auto-flow: row;              /* override the column flow */
                    grid-template-columns: repeat(6, 1fr);
                    gap: 0rem;                        /* spacing between icons, adjust as needed */
                    justify-content: center; 
                }

                .col-12-contact {
                    width: 100%;
                    display: grid;
                    grid-auto-flow: row;              /* override the column flow */
                    grid-template-columns: repeat(1, 1fr);
                    gap: 3rem;                        /* spacing between icons, adjust as needed */
                    justify-content: center; 
                }

                .col-9 {
                    width: 100%;
                    display: block;
                }

                .col-8 {
                    width: 100%;
                    display: block;
                }

                .col-7 {
                    width: 100%;
                    display: block;
                }

                .col-6 {
                    width: 100%;
                    display: block;
                }

                .col-5 {
                    width: 100%;
                    display: block;
                } 

                .col-4 {
                    width: 100%R;
                    display: block;
                } 

                .col-3 {
                    width: 100%;
                    display: block;
                }

                .col-2 {
                    width: 100% ;
                }

                .col-1 {
                    width: 100% ;
                }

                .section-padding {
                    padding: 60px 12px;
                }

                .section-padding-hero {
                    padding-top:60px;
                    padding-bottom: 60px;
                }

            /* Typography */

                    h2. {
                        font-size:2rem;
                        line-height: 2.4rem;
                    }

                    h3 {
                        font-size: 1.75rem;
                        line-height: 2.2rem;
                    }

                    h4{
                        font-size: 1.3rem; 
                        line-height: 2rem;
                    }

                    h5 {
                        font-size: 1.2rem;
                        line-height: 1.8rem;
                    }

                    p {
                        font-size: 1.1rem;
                        line-height: 1.6rem;
                    }


        /*::::::::::::::::::::::::::::::::::::
           UI Components
        ::::::::::::::::::::::::::::::::::::*/ 

                /* ---------- Buttons ---------- */  

                    .bu {
                    width: max-content;
                    font-size: 1.1rem; 
                    }        
                
                    .bu-group {
                        display: inline-flex;
                        gap: 8px;
                        align-content: center;
                        align-items: center;
                        flex-wrap: wrap;
                        justify-content: left;
                        width: 100%;
                    } 

                /* ---------- Cards ---------- */

                    .grid {
                        display: grid;
                        grid-auto-flow: row;
                        grid-gap: calc(0.8em + 1vw);
                    }    

                    .card {
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                    }

                    .card img{
                        max-width: 100%;
                    }
                        

                /* ----- Chips ----- */

                    .chip-group {
                        display: none;
                    }       

        /*::::::::::::::::::::::::::::::::::::
           ORGANISMS
        ::::::::::::::::::::::::::::::::::::*/
                
                /* ---------- Nav bar ---------- */

                    .navbar {
                        padding: 1rem 2.5rem;
                    }

                    .nav-links {
                        gap: 1.25rem;
                    }


                /* ---------- Footer ---------- */   

                    .footer-area {
                        padding: 0.5rem 1rem;
                        display: flex;
                        flex-direction: column;
                        text-align: center;
                    }   

                    .footer-links {
                        list-style: none;
                        display: flex;
                        gap: 1rem;
                        margin: 0;
                        align-items: center;
                        flex-direction: row;
                        justify-content: center;
                    }   
                    
                    .footer-area .copyright {
                        justify-content: center;
                    }  









                /* ---------- Table of Contents (ToC) ---------- */   
                
                    .toc {
                        display: block;
                    }   
    }                 