@layer transitions {
  
  @view-transition {
  navigation: auto;
  }

  ::view-transition-group(route) {
  animation-duration: 0.3s;
}
}

@layer blocks {
  /* ------------------ blocks  ------------------  */

  .skip-link {
    position: absolute;
    top: 1em;
    left: 1em;
  }

  .skip-link:not(:focus),
  .visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: auto;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
  }
  
/* Featured Card */

  .card {
    color: white;
    text-decoration: none;
    box-shadow: none;

    /* display: grid;
    grid-template-columns: repeat(4, 0.25fr);
    grid-template-rows: repeat(7, 0.125fr); */

    /* max-width: 510px; */
    width: calc(50% - 0.5em);
    height: fit-content;
    
  }
  
    .card:hover {
      color: var(--blue-brand);

    }


    .card picture {
      grid-area: 1 / 1 / 6 / -1;
    }
    

    .card img {
      object-fit: cover;
      max-width: 100%;
      height: 250px;
      overflow: hidden;
      transition: 500ms ease 0s;
    }

    .card-img {
     transition: 500ms ease 0s; 
     overflow: hidden;
    }

    .card-img:hover {
      /* border-radius: 12px; */
      transition: 500ms ease 0s;
    }

    .card:hover img {
      transform: scale(1.05);
      transition: 500ms ease 0s;
      /* border-radius: 8px; */
    }
    

    .card div {
      /* display: flex;
      justify-content: space-between;
      align-content: center;*/
      margin: 1em 0 1em 0;
      display: block;
    }

    .card h4 {
      /* grid-area: 6 / 1 / 7 / -1; */
      padding: 0.5em 0 0.5em 0;
      align-self: center;
      margin: 0;
      text-wrap: inherit;
    }

    .card p {
      /* grid-area: 7 / 1 / 8 / -1; */
      align-self: center;
      display: flex;
      gap: 0.5em;
    }

    .card p span {
      background-color: var(--blue-medium);
      /* border: 1px solid white; */
      padding: 0.25em 0.5em 0.25em 0.5em;
      gap: 2px;
      border-radius: 0px;
    }

    @media (max-width: 576px) {

    .card {
    width: 100%;
    height: fit-content;
    
  }

}

  .category {
    /* background-color: var(--blue-medium-dark); */
    color: white;
    font-size: 0.75em;
    transition: var(--transition-link);
    /* padding: 4px 8px; */
    /* border-radius: 4px; */
    /* margin: 0 0 0 0.5em; */
  }

  .card:hover .category {
    background-color: var(--blue-dark);
    transition: var(--transition-link);
    /* border-radius: 8px; */
  }

}

@layer navigation {

  .header {
    padding: 1em 0 1em 0;
  }


  .header svg {
    block-size: 100%;
    box-shadow: none;
  }

  .header svg path {
    transition: var(--transition-link);
  }

  .header svg path:hover {
    transition: var(--transition-link);
    /* fill: var(--blue-light); */
    fill: white;
  }

  .header a {
    box-shadow: none;
  }

  .header li a {
    color: white;
    font-size: 0.8em;
    font-family: "Source Serif 4", serif;
  }

  .header li a:hover {
    color: var(--blue-brand);
    transition: 300ms ease-in-out 0s;
    box-shadow: 0 0.2em var(--blue-brand);
    
  }

  footer {
    display: inline;
  }

  footer ul {
    margin: 0;
  }

  footer li a {
    color: var(--blue-dark);
    transition: 300ms ease-in-out 0s;
    box-shadow: 0 0.2em var(--blue-dark);
  }

  footer li a:hover {
    color: white;
    transition: 300ms ease-in-out 0s;
    box-shadow: 0 0.2em white;
  }

  .footer-items {
    display: inline-flex;
    justify-content: space-between;
    align-items: end;
  }

  @media (max-width: 576px) {
  
    .footer-items {
      display: flex;
      flex-direction: column;
      row-gap: 0.5em;
      align-items: normal;
    }

    footer ul {
      padding: 0;
    }
  
}
}

@layer home {
  .home {
    background: var(--blue-dark);
  }

  .intro-h1 {
    font-size: var(--size-step-6);
    background: linear-gradient(180deg, var(--blue-dark) 50%, var(--blue-medium-dark) 50%);
  }

  .intro-p{
    font-size: var(--size-step-2);
    background-color: var(--blue-medium-dark);
  }
}

@layer project {

.project {
      background: linear-gradient(180deg, var(--blue-dark) 12%, var(--blue-medium-dark) 12%);
}


.work {
    background-color: var(--blue-medium-dark);
    margin-top: 0;
}

.work-cards {
    /* display: grid;
    grid-template-columns: minmax(auto, 50%) minmax(auto, 50%);  
    gap: 1em;
    max-width: 100%; */
    display: flex;
    flex-wrap: wrap;
    column-gap: 1em;
    /* row-gap: 1em; */
  }



.project-intro {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1em;
    margin: 0;
    background-color: var(--blue-medium-dark);
}

.project-flex {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1em;
}

.project-intro div {
  flex: 1;
}

.project-intro-h1{
  font-size: var(--size-step-6);
  background: linear-gradient(180deg, var(--blue-dark) 50%, var(--blue-medium-dark) 50%);
}

.project-intro-content {
    background-color: var(--blue-medium-dark);
    padding: 1em 0 2em 0;
}

  .project-intro-tags {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    margin: 0 0 1em 0;
    gap: 0.5em
  }

  .project-intro-p-desc{
    /* font-size: var(--size-step-2); */
    display: flex;
    flex-direction: column;
    gap: 1em;
    background-color: var(--blue-medium-dark);
    padding: 0 0 1em 0;
  }

  .project-category {
      /* background-color: var(--blue-dark);
    color: white;
    font-size: 0.75em;
    transition: var(--transition-link); */
          background-color: var(--blue-dark);
      /* border: 1px solid white; */
      padding: 0.25em 0.5em 0.25em 0.5em;
      gap: 2px;
      border-radius: 0px;
    }

  .project-intro-info {
    padding: 1em 0 0 0;
    border-top: 1px solid white;
  }

  .project-intro-info span {
    font-family: "Source Serif 4", sans-serif;
    font-family: 600;
  }


  .project-intro-info > div {
    display: flex;
    flex-direction: row;
    background-color: var(--blue-medium-dark);
  }

.project-intro-img {
    background-color: var(--blue-medium-dark);
    margin: 0 0 1.5em 0;
    
}

  .project-intro-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      aspect-ratio: 3 / 2;
  }


@media (max-width: 576px) {
  
    .project-flex {
      flex-direction: column;
    }

    .project-intro-content {
    width: 100%;
    height: fit-content;
}

    .project-intro-img {
    width: 100%;
    height: fit-content;
    
    }
  
 }

.img-block {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1em;
    row-gap: 1em;
    margin: 2em 0em 2em 0em;
}

.ib-single {
    width: calc(50% - 0.5em);
}

.ib-single p {
    margin: 1.5em 0 0 0;
    padding: 1em 0 1em 0;
    font-size: 0.75em;
    border-top: 1px solid var(--blue-medium);
}

/* .img-block {
    margin: 3em 0em 3em 0em;
    display: flex;
    flex-flow: row wrap;
    column-gap: 1em;
    row-gap: 5em;
} */

@media (max-width: 576px) {

  .project-flex {
    flex-direction: column;
  }

  .project-intro-content {
    width: 100%;
    height: fit-content;
  }

  .project-intro-img {
    width: 100%;
    height: fit-content;
  }

  .ib-single {
    width: 100%;
    height: fit-content; 
  }

 }

.project-credits {
    margin: 0;
    padding: 2em 0 2em 0;
    background-color: var(--blue-medium-dark);

}

.project-cta {
  margin: 0;
  padding: 0 0 2em 0;
  background-color: var(--blue-medium-dark);
}

  @media (max-width: 768px) {

      .project-intro {
      display: flex;
      flex-direction: column;
      gap: 2em;
      }
    
      .img-block {
      flex-direction: column;
      gap: 4em;

      }

  }

}

@layer about {


.about-intro {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1em;
    margin: 0;
    background-color: var(--blue-medium-dark);
}

.about-flex {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1em;
}

.about-intro div {
  flex: 1;
}

.about-intro-h1{
  font-size: var(--size-step-6);
  background: linear-gradient(180deg, var(--blue-dark) 50%, var(--blue-medium-dark) 50%);
}

.about-intro-content {
    background-color: var(--blue-medium-dark);
    padding: 1em 0 2em 0;
      width: calc(70% - 1em);
}

.about-intro-content p {
  font-size: 1em;
}

.about-intro-img {
    background-color: var(--blue-medium-dark);
    margin: 0 0 1.5em 0;
      width: calc(70% - 1em);
    
}

  .about-intro-img img {
      width: 100%;
      height: 100%;
      aspect-ratio: 3 / 2;
      object-fit: cover;
      object-position: top;
  }

  .about-intro-img p {
      margin: 1.5em 0 0 0;
      padding: 1em 0 1em 0;
      font-size: 0.75em;
      border-top: 1px solid var(--blue-brand);
  }


  .about-services {
    display: flex;
    flex-direction: row;
    margin: 2em 0 2em 0;
  }

  .about-services ul, li {
    list-style-type: none;
    padding-left: 0;
    font-size: 1em;
  }

  @media (max-width: 768px) {
  
    .about-flex {
      flex-direction: column;
    }

    .about-intro-content {
    width: 100%;
    height: fit-content;
}

    .about-intro-img {
    width: 100%;
    height: fit-content;
    
    }

    .about-intro-img img {
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: top;
    }

    .about-intro-img p {
    max-width: 100%;
    }
    .about-services {
      display: flex;
      flex-direction: column;
    }

 }


}