@media only screen and (max-width: 1280px) {
    .main-heading {
        width: 100%;
    }
}




@media only screen and (max-width: 980px) {

    .header {
        display: none;
    }

    .sitelogo {
        padding-bottom: 0;
        padding-left: 0;
    }




    .header-mobile {
        display: block;
        width: 100%;
        max-width: 980px;
        padding-left: clamp(1rem, 4vw, 3.75rem);
        padding-right: clamp(1rem, 4vw, 3.75rem);
    }

    .main {
        padding-left: 25%;
        padding-left: clamp(1rem, 4vw, 3.75rem);
    }

  /**  MOBILE MENU **/
  /**  MOBILE MENU **/
  /**  MOBILE MENU **/



  #toggle  { 
    display: none;
  }

  
  /**  Hamburger Icon **/
  .hamburger  { 
    position: absolute;
    top: clamp(1rem, 4vw, 3.75rem);
    right: 0;
    margin-left:0;
    margin-top: 0;
    width: 24px;
    height: 3rem;
    z-index: 95;
    float: right;
  }

  .hamburger div  { 
    position: relative;
    width: 24px;
    height: 4px;
    border-radius: 3px;
    background-color: #333;
    margin-top: 6px;
    transition: all 0.3s ease-in-out;
  }

  .logo-mobile {
    padding-left: clamp(1rem, 5vw, 3.75rem);
    padding-top: clamp(1rem, 5vw, 3.75rem);
    padding-bottom: clamp(1rem, 5vw, 3.75rem);
  }

  .logo-mobile img {
    max-width: 124px;
}

  /** Mobile Nav Styles  **/
  .nav  { 
    position: fixed;
    width: 100%;
    max-width: 980px;
    height: 100%;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background-color: var(--white);
    top: -100%; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    transform: scaleY(0);
    z-index: 90; 
  }

  .nav-wrapper  { 
    position: relative;
    overflow: hidden;
    overflow-y: auto;
    height: 100%;
  }

  .mobilemenu  { 
    display: block;
    max-width: 980px;
    text-align: left;
  }


  .mobilenav ul  { 
    list-style-type: none;
  }


  .mobilenav ul li  { 
    margin-bottom: 2rem;
  }

  .mobilenav a  { 
    position: relative;
    text-decoration: none;
    font-size: 2rem;
    display: inline-block;
    transition: color 0.2s ease-in-out;
    letter-spacing: 1px;
  }

  .mobilenav a:before  { 
    content: '';
    height: 0;
    position: absolute;
    width: 0.25em;
    background-color: white;
    left: -0.5em;
    transition: all 0.2s ease-in-out;
  }

  .mobilenav a:hover  { 
    color: var(--blue);
  }

  .mobilenav a:hover:before  { 
    height: 100%;
  }

  .hamburger div  { 
    margin-top: 4px;
    height: 3px;
  }



  /** Animations  **/
  #toggle:checked + .hamburger .top-bun  { 
    transform: rotate(-45deg);
    margin-top: 15px;
    background-color: var(--black);
  }

  #toggle:checked + .hamburger .bottom-bun  { 
    opacity: 0;
    transform: rotate(45deg);
    background-color: var(--black);
  }

  #toggle:checked + .hamburger .meat  { 
    transform: rotate(45deg);
    margin-top: -3px;
    background-color: var(--black);
  }

  #toggle:checked + .hamburger + .nav  { 
    top: 0;
    transform: scale(1);
  }







.gridportfolio :nth-child(1) {
  grid-column: span 3 !important;
  grid-row: 1 / span 1;
}



.gridportfolio :nth-child(4), .gridportfolio :nth-child(8),   .gridportfolio :nth-child(5), .gridportfolio :nth-child(9), .gridportfolio :nth-child(12) {
    grid-column: span 3;
}

.gridportfolio :nth-child(2), .gridportfolio :nth-child(3), .gridportfolio :nth-child(6), .gridportfolio :nth-child(7), .gridportfolio :nth-child(10), .gridportfolio :nth-child(11), .gridportfolio :nth-child(13) {
    grid-column: span 2;
}





}


@media only screen and (max-width: 720px) {

    .gridportfolio {
        grid-template-columns: repeat(2, 1fr);
    }

    .gridportfolio :nth-child(1) {
        grid-column: span 2 !important;
        grid-row: 1 / span 1;
    }

    .gridportfolio :nth-child(4), .gridportfolio :nth-child(7), .gridportfolio :nth-child(10), .gridportfolio :nth-child(13) {
        grid-column: span 2; 
    }

      .gridportfolio :nth-child(2), .gridportfolio :nth-child(3), .gridportfolio :nth-child(5), .gridportfolio :nth-child(6), .gridportfolio :nth-child(8), .gridportfolio :nth-child(9), .gridportfolio :nth-child(11), .gridportfolio :nth-child(12) {
        grid-column: span 2;
        
    }       

    .project-thumbnail {
        min-height: 14rem;
    }





    .grid-services {
        row-gap: 26px;
        grid-template-columns: 1fr 1fr;
    }


    .grid-contactdetails {
        row-gap: 26px;
        grid-template-columns: 1fr;
    }


    .profile-thumbnail {
        grid-column: span 2 !important;
        grid-row: 1 / span 1;
        padding: 36px 0 0 0;
    }




}


@media only screen and (max-width: 580px) {

    .grid-services {
        row-gap: 26px;
        grid-template-columns: 1fr;
    }



}