@keyframes projectDisappear{
    0%{
        transform:scale(1);
        display:block;
        max-width:50vw;
    }
    90%{
        max-width:50vw;
    }
    99%{
        display:block;
    }
    100%{
        display:none;
        max-width:0;
        transform:scale(0)
    }
}

@keyframes projectAppear{
    0%{
        max-width:0;
        transform:scale(0);
        display:block;
    }
     20%{
        max-width:50vw;
    }
    100%{
        transform:scale(1);
        display:block;
        max-width:50vw;
    }
   
    
}

@keyframes projectDisappearPhone{
    0%{
        transform:scale(1);
        display:block;
              max-height:100vh;
    }
    90%{
              max-height:100vh;
    }
    99%{
        display:block;
    }
    100%{
        display:none;
        max-height:0;
      transform:scale(0)
    }
}

@keyframes projectAppearPhone{
     0%{
        display:block;
        max-height:0;
      transform:scale(0)
    }
      20%{
         max-height:100vh;
    }
    100%{
        transform:scale(1);
        display:block;
        max-height:100vh;
    }
  
   
}


.header {
    background-color: #29265b;
}

.heroRow {
    padding-top: 20vh;
}


.heroRow h1 {
    font-family: 'Campton';
    text-transform: uppercase;
    color: #29265b;
    font-size: 2.2em;
    margin: 0;
    text-align: center;
}


.heroRow p {
    color: #ff5a12;
    font-family: 'Montserrat';
    font-weight: 500;
    text-align: center;
    display: block;
    margin: 0 auto;
    margin-top: 1vh;
    width: 50%;
}

.allProjects {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 0 2%;
    padding-top: 7vh;
    gap: 0 0.5%;
    transition: all 0.15s ease-in-out;
}

.project {
    overflow: hidden;
    width: 49.5%;
    position: relative;
    height: 52vh;
    padding-bottom: 100px;
}

.projectCoverImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
}


.projectCoverImage {
    position: relative;
    width: 100%;
    height: 100%;
}

.categories {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translate(50px,-150%);
    z-index: 9;
    display: flex;
    flex-direction: row;
}


.project * {
    text-decoration: unset;
}

html body .categories p {
    color: white;
    font-family: 'Campton';
    font-weight: 500;
    font-size: 1.5em;
    padding-right: 0.7em;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    display: block;
    margin: unset;
}

.projectCoverImage::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 13px;
    background-color: rgba(0,0,0,0.33);
}

.projectLogo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.projectLogo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
    transform: translate(-50%,-50%);
    z-index: 5;
    transition: all 0.25s ease-in-out;
}

.project:hover .projectLogo {
    opacity: 1;
    filter:unset;
}

.categorySelector {
    padding: 0 2%;
    width: 100%;
    height: auto;
    padding-top: 5vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.heroRow p br {
    display: none;
}


a.categorySelectorLink:hover {
    color: white;
    background-color: #cc4b21;
}





.hiddenProject{
    animation:0.55s projectDisappear forwards;
}



.visibleProject{
    animation:0.55s projectAppear forwards;
}

.project h2 {
    font-family: 'Campton';
    font-weight: 500;
    font-size: 1em;
    color: #29265b;
    padding-left: 55px;
    margin: 0.2em 0;
    padding-top: 6px;
}

.project a>p {
    color: #ff5a12;
    font-family: 'Campton Book';
    font-weight: 600;
    margin: 0;
    font-size: 1em;
    padding-left: 55px;
}

a.categorySelectorLink {
    transition: all 0.15s ease-in-out;
    background-color: #29265b;
    margin: 0 1em;
    padding: 0.8em 0.4em;
    color: white;
    font-family: 'Campton';
    text-transform: uppercase;
    border-radius: 7px;
    width: 11vw;
    text-align: center;
    font-size: 0.9em;
    cursor: pointer;
    min-width: fit-content;
}

html body a.categorySelectorLinkActive{
    color: white;
    background-color: #cc4b21;
}

.categories p:hover{
    transform: skew(-16deg, 0deg);
}

img.secondImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: all 0.25s ease-in-out;
}

.projectCoverImage:hover img.secondImage {
    opacity: 1;
}

@media only screen and (max-width:1600px){
.project {
    width: 49.5%;
    position: relative;
    height: auto;
    padding-bottom: 100px;
    aspect-ratio: 1/0.6;
    
}

}

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

    
.allProjects {
    flex-direction: column;
    align-items: center;
}
.project {
    width: 95%;
    
}


.hiddenProject{
    animation:0.55s projectDisappearPhone forwards;
}



.visibleProject{
    animation:0.55s projectAppearPhone forwards!important;
}


}



@media only screen and (max-width:750px){
    .categorySelector {
    justify-content: flex-start;
}
html body .categorySelectorLink {
    margin: 0 0.6em;
    margin-bottom: 10px;
}

}



@media only screen and (max-width:600px){
    .heroRow h1 {
    font-size: 2em;
}

html body .categories p {
    font-size: 1.1em;
}

.project a>p, .project h2 {
    padding-left: 10px;
}

.project {
    width: 100%;
    height: 60vw;
}

.project a>p {
    width: 95%;
    font-size:0.9em;
}

html .categories {
    transform: translate(10px,-150%);
    max-width: 80vw;
    overflow: clip;
}

.heroRow p {
    width: 80%;
}

}

@supports (-webkit-touch-callout: none) {
  @media (max-height: 700px) {
    .hiddenProject{
        display:none;
    }
    
  }
}

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

    
    @supports (-webkit-touch-callout: none) {
        @media only screen and (max-width: 800px) {
            html body .sHeader {
                padding: 0% 0%!important;
            }
            
            html body .sHeader .header {
                padding: 3% 0%!important;
            }
            
            html body .sHeader .headerStuck {
                padding: 0% 0%!important;
            }
            
            
        }
    }
}