    .container {
        width: 80%;
        /*margin: 80px auto;*/
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        
         margin: 80px auto 0; 
        
    }


    .head-text {
        margin-top: 80px;
        text-align: center;
    }

    .card {
        width: 90%;
        height: 250px;
        margin: 20px auto;
        transition: transform 1s ease-in-out, background-color 0.5s ease-in-out;
        position: relative;
        overflow: hidden;
    }

    .card1::before {
        background: url("/assets/img/headshots/advocate.webp") no-repeat center;
    }

    .card2::before {
        background: url("/assets/img/headshots/content.webp") no-repeat center;
    }

    .card3::before {
        background: url("/assets/img/headshots/host.webp") no-repeat center;
    }

    .card4::before {
        background: url("/assets/img/headshots/producer.webp") no-repeat center;
    }

    .card5::before {
        background: url("/assets/img/headshots/traveller.webp") no-repeat center;
    }

    .card6::before {
        background: url("/assets/img/headshots/voice.webp") no-repeat center;
    }

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0.3;
        /* opacity: 1; */
        transition: opacity 0.5s ease-in-out;
        background-size: cover;
    }

    .card:hover::before {
        /*opacity: 1;*/
    }

    .card div {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #000;
        font-weight: bold;
        opacity: 0;
        /* opacity: 1; */
        transition: opacity 0.5s ease-in-out;
        text-align: center;
        text-shadow: 1px 1px #fff;
        width: 100%;
    }

    .card:hover div {
        opacity: 1;
    }

    .card:hover {
        transform: scale(1.1);
    }

    @media screen and (max-width: 1400px) {
        .container {
            width: 98%;
        }

        .card {
            height: 300px;
        }
    }

    @media screen and (max-width: 993px) {
        .card {
            height: 200px;
        }

        .card div p {
            font-size: 13px;
        }
    }

    @media screen and (max-width: 800px) {
        .container {
            width: 88%;
            grid-template-columns: 1fr 1fr;
        }

        .card {
            height: 150px;
        }

        .card div h3 {
            font-size: 15px;
        }

        .card1 div p,
        .card4 div p {
            font-size: 10px;
        }
    }
    /* Always show card text on mobile (≤767px) */
   @media screen and (max-width: 767px) {
      .card div { opacity: 1 !important; }
      .card:hover { transform: none; }
    }



    @media screen and (max-width: 550px) {
        .container {
            width: 90%;
             grid-template-columns: 1fr;
        }

        .card {
            height: 200px;
        }

        .card div h3 {
            font-size: 13px;
        }
    }
    /* html, body {*/
    /*  height: 100%;*/
    /*  margin: 0;*/
    /*}*/
    
    /*body {*/
    /*  display: flex;*/
    /*  flex-direction: column;*/
    /*  min-height: 100vh;*/
    /*}*/
    
   /* ---- Portfolio page: remove footer gap WITHOUT flex body ---- */

    /* If your <section> is followed immediately by footer, this removes the extra spacing */
    .come-alive{
      padding-bottom: 0;
      margin-bottom: 0;
    }

    /* --- Page-only sticky footer: DOES NOT touch body --- */
    .portfolio-page{
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }
    
    .portfolio-main{
      flex: 1;
    }
    
    .portfolio-page footer{
      margin-top: auto;
      width: 100%;
    }


/* Laravel layout: keep the footer at the bottom on this short page. */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1; }
