.main_container_project_gallery {
  padding-top: 5rem;
}

/* CUSTOM LIGHTBOX TEST STYLES*/
.fancybox-container--ready .fancybox-bg {
    opacity: 1 !important;
}
/*END LIGHTBOX*/

body {
  width: 100vw;
  height: 100%;
}

#header {
  display: none !important;
}

#header_mobile {
  display: block !important;
}

.project-header {
  height: auto !important;
  max-height: none !important;
  background: white;
}

.back-button-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  z-index: 1200;

}
.back-button-container .back-button {
  color: black;
  display: flex;
  align-items: center;
  width: max-content;
}

.back-button-container h3 {
  margin-bottom: 0.25rem;
  margin-left: 1rem;
}

.bottom_row {
  z-index: 200;
  background: white;
}

.bottom-section .body-regular .credits-body-black:not(:last-of-type)::after {
  content: ", ";
}

.scaling-project-title {
  text-transform: uppercase;
  padding-left: 2rem;
  white-space: nowrap;
  width: fit-content;
}

.pin-spacer {
  z-index: 999 !important;
}

#tags-list {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  padding: 0;
  margin: 0;
  gap: 1rem 1.5rem;
}

#tags-list li {
  border: 2px solid black;
  border-radius: 25px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  width: max-content;
  height: auto;
  text-wrap: nowrap;
}

#tags-list li.selected {
  color: white;
  background-color: #000;
}

.project-credits-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.top-section {
  grid-column: 1 / span 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.left-info {
  grid-column: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;

}
.left-info  h1 {
  text-transform: capitalize;
  text-decoration: underline;
}

.info_container{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: max-content;
  gap: 1rem;
}

 .sustainability_trees {
  width: 71.2%;
  height: 3rem;
  background-image: url("/assets/sustainability_trees_black.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

.sustainable{
  display: block;
}

.notsustainable{
  display: none;
}

.right-info {
  grid-column: 3 / span 2;
}

.bottom-section {
  grid-column: 1 / span 4;
}

#gallery-container-mobile {
  padding-left: 2rem;
  padding-right: 2rem;
}

.gallery {
  display: flex;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 20px;
}
.item {
  position: relative;
}
.item img {
  width: 100%;
  height: auto;
}
main .galleria-thumbnails .galleria-image {
  width: 100px;
}
.description-item {
  background-color: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.description {
  text-align: center;
}
.item .video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
}

.gallery-item {
  background: #fff; /* Default background for text blocks */
  color: #000; /* Default text color */
}

.gallery-item.important {
  grid-column: span 2; /* Spans two columns */
  grid-row: span 2; /* Spans two rows */
}

.gallery-item.text-block {
  display: flex;
  justify-content: center; /* Horizontally center text */
  align-items: center; /* Vertically center text */
  background: #000; /* Black background for text blocks */
  color: #fff; /* White text color */
}

.grid-item {
  width: 200px;
}
.grid-item--width2 {
  width: 400px;
}

a {
  text-decoration: none !important;
}

.project-header-container {
  position: fixed;
  top: var(--header-dynamic-height, 0);
  z-index: 100;
  width: 100%;
  transition: transform 0.3s ease, top 0.5s ease, height 1s ease;
  padding-left: 2rem;
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 2rem;
}

.project-header-container.fixed {
  position: fixed;
  top: 7rem;
  left: 0;
  background: transparent;
}

#small-title-container {
  filter: url(#threshold) blur(0px);
  text-transform: uppercase;
}

#big-title-container {
  filter: url(#threshold) blur(0px);
  text-transform: uppercase;
  line-height: 1.3;
}


.top-section.d-lg-none  h1{
  grid-column: 1 / span 2 ;
  text-decoration: underline;
}

.top-section.d-lg-none  h2.subtitle-regular {
  grid-column: 1;
}

.top-section.d-lg-none  h2#mostly-worked {
  grid-column: 3 / span 2 ;
  grid-row: 1;
}


#text1,
#text2,
#text3,
#text4 {
  user-select: none;
}

.visit-link {
  color: black;
  border: 0.125rem solid black;
  border-radius: 30px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

.visit-link svg {
  width: 3vw;
}

.visit-arrow {
  position: relative;
  height: 50%;
  aspect-ratio: 1;
  overflow: visible;

}
.visit-arrow .line-projects-arrow1 {
  height: 0.125rem;
  width: 50%;
  position: absolute;
  top: 0;
  right: 0;
  background-color: black;
}

.visit-arrow .line-projects-arrow2 {
  width: 0.125rem;
  height: 50%;
  position: absolute;
  top: 0;
  right: 0;
  background-color: black;
}

.visit-arrow .line-projects-middle {
  height: 0.125rem;
  width: 1.313rem;
  position: absolute;
  top: 0;
  right: 0;
  rotate: 45deg;
  transform-origin: 0 0;
  background-color: black;
}

.visit-btn{
  grid-column: 1 / span 1;
  width: 100%;
}

.arrow-right-up {
  display: inline-block;
  vertical-align: middle;
  color: black;
  box-sizing: border-box;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0.125rem;
  border-width: 0.125rem 0.125rem 0 0;
  border-style: solid;
  position: absolute;
  top: 0.7rem;
  right: 0.6rem;
}
.arrow-right-up:after {
  content: "";
  box-sizing: border-box;
  right: 0;
  top: -0.09rem;
  position: absolute;
  height: 0.125rem;
  box-shadow: inset 0 0 0 32px;
  transform: rotate(-45deg);
  width: 1rem;
  transform-origin: right top;
}
.arrow-right-up:before {
  content: "";
  box-sizing: border-box;
}

#filters {
  position: absolute;
  width: 100%;
  bottom: 0;
}

.project-header {
  height: auto !important;
  max-height: none !important;
  background: transparent;
}

.project-gallery-content {
  padding-top: calc(var(--header-dynamic-height, 0) + var(--project-header-container-height) - 5rem);
  transition: padding-top 0.3s ease;
}

.bottom-container {
  z-index: 300;
  position: relative;
}

.share-box {
  grid-template-columns: repeat(4, 1fr);
  padding-left: 2rem;
  padding-right: 2rem;
  display: grid;
  padding-top: 2rem;
  padding-bottom: 2rem;
  gap: 0.5rem;
}

.share-title {
  grid-column: 1 / span 4;
}

#share-btn {
  grid-column: 1 / span 2;
  margin-top: 1rem;
}

  #share-btn button {
    width: 100%;
  }

.cta-container {
  background-color: black;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 4rem;
  padding-bottom: 0;

}
.cta-container h2,
.cta-container h1 {
  grid-column: 1 / span 4;
  color: white;
}

.cta-container #typeform-button-project-gallery {
  grid-column: 1 / span 2;
}

.cta-container .video-box-cta {
  grid-column: 1 / span 4;
  grid-row: 6;
  width: 100vw;
  height: 50vh;
  margin-left: -2rem;

}
.cta-container .video-box-cta video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.next-project-container {
  background: white;
}

.next-project-header {
  display: flex;
  align-items: center;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 1rem;

}
.next-project-header h3 {
  margin-bottom: 0.25rem;
}

.next-project-header img {
  transform: rotate(180deg);
  margin-left: 1rem;
}

.nGY2GThumbnailSub {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.nGY2GThumbnailSub iframe {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50% !important;
  left: 50% !important;
  width: 300% !important;
  height: 115% !important;
  border: 0;
}


.companyLink{
  text-decoration: underline !important;
  color: black;
}

a.visit-link:hover {
  color: white  !important;
  background: black;

}
a.visit-link:hover  path{
   fill: white;
 }

@media (min-width: 728px) {
  .project-credits-container {
    grid-template-columns: repeat(8, 1fr);
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  .top-section {
    grid-column: 1 / span 8;
    grid-template-columns: repeat(8, 1fr);
  }
  .left-info {
    grid-column: 1 / span 4;
  }

   .sustainability_trees {
    width: 75%;
    background-image: url("/assets/sustainability_trees_black_bold.svg");
  }

  .right-info {
    grid-column: 5 / span 4;
  }

  .bottom-section {
    grid-column: 1 / span 8;
  }

  .project-gallery-content {
   
    transition: padding-top 0.3s ease;
  }

  
  .share-box {
    grid-template-columns: repeat(8, 1fr);
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  #share-btn {
    grid-column: 1 / span 3;
  }

  .share-title {
    grid-column: 1 / span 8;
  }

  #tags-list {
    gap: 1rem 1.875rem;
  }

  .cta-container {
    grid-template-columns: repeat(8, 1fr);
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    padding-top: 5rem;
    padding-bottom: 5rem;

  }
  .cta-container h2:first-of-type {
   grid-column: 1 / span 5;
 }
  .cta-container h1 {
   grid-column: 1 / span 6;
 }
  .cta-container h2:not(:first-of-type) {
   grid-column: 1 / span 4;
 }

  .cta-container #typeform-button-project-gallery {
   grid-column: 1 / span 3;
 }

  .cta-container .video-box-cta {
   grid-column: 1 / span 8;
   margin-left: -2.5rem;

  }
  .cta-container .video-box-cta video {
    width: 100%;
  }

  .arrow-right-up {
    width: 0.8rem;
      height: 0.8rem;
     top: 0.8rem;
      right: 1rem;
    }
    .arrow-right-up:after {
    right: 0;
      top: -0.09rem;
    width: 1.3rem;
    }

    .visit-btn{
      grid-column: 1 / span 2;
    }
}

@media (min-width: 1024px) {
  body {
    height: auto;
    overflow-x: hidden !important;
  }

  #header {
    display: block !important;
  }

  #header_mobile {
    display: none !important;
  }

  .project-header-container {
    position: sticky;
    z-index: 100;
    width: 100%;
    transition: transform 0.3s ease, height 1s ease;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .project-header-container.fixed {
    position: fixed;
    top: 12rem;
    left: 0;
    background: transparent;
  }

  .project-header {
    height: auto !important;
    max-height: none !important;
    background: transparent;
  }

  .project-gallery-content {
    padding-top:calc(var(--header-dynamic-height, 0) - 11rem);
    transition: padding-top 0.3s ease;
  }

  .main_container_project_gallery {
    padding-top: 12rem;
  }

  .scaling-project-title {
    padding-left: 2.5rem;
  }

  #gallery-container {
    display: flex;
    gap: 1.25rem;
    width: 100%;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    grid-template-columns: repeat(12, 1fr);
  }

  .gallery-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .arrow-right-up {
    width: 1rem;
      height: 1rem;
     top: 0.8rem;
      right: 1rem;
    }
    .arrow-right-up:after {
    right: 0;
      top: -0.09rem;
    width: 1.8rem;
    }


  .left-col {
    grid-column: 1 / span 6;
  }

  .right-col {
    grid-column: 7 / span 6;
  }

  .description-section {
    margin: 2rem 0;
  }

  .gallery-section {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .gallery-section video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
  }

  #mostly-worked{
    grid-row: 1;
  }


  .ngy2viewerToolsTopLeft {
    z-index: 100;
  }

  .nGY2GThumbnail {
    position: relative;
    overflow: hidden;
  }

  .nGY2GThumbnail video {
    pointer-events: none;
    z-index: 1;
  }

  .project-credits-container {
    grid-template-columns: repeat(12, 1fr);
  }
  .top-section {
    grid-column: 1 / span 12;
    grid-template-columns: repeat(12, 1fr);
  }
  .left-info {
    grid-column: 1 / span 5;
    display: flex;
    gap: 1rem;

    h1 {
      margin-bottom: 0;
      line-height: 1.3;
    }
  }

   .sustainability_trees {
    width: 31%;
    height: 8rem;
  }

  .info_container {
    flex-direction: row;
    gap: 5rem;
  }

  .right-info {
    grid-column: 6 / span 7;
  }

  .bottom-section {
    grid-column: 1 / span 12;
    padding-top: 2rem;
  }

  .keywords {
    /* font-size: 1.9em !important; */
  }

  li.keywords {
    padding-inline: unset !important;
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
    text-transform: lowercase;
  }

  .share-box {
    grid-template-columns: repeat(12, 1fr);
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  #share-btn {
    grid-column: 11 / span 2;
    margin-top: unset;

    button {
      height: 3vw;
    }
  }

  .share-title {
    grid-column: 1 / span 9;
  }

  .cta-container {
    grid-template-columns: repeat(12, 1fr);
    padding-bottom: 0;
    padding-top: 0;

    h2:first-of-type {
      grid-column: 1 / span 4;
      padding-top: 3.75rem;
    }
    h1 {
      grid-column: 1 / span 4;
    }
    h2:not(:first-of-type) {
      grid-column: 1 / span 3;
    }

    #typeform-button-project-gallery {
      grid-column: 1 / span 2;
      padding-bottom: 3.75rem;
    }

    .video-box-cta {
      grid-column: 6 / span 7;
      grid-row: -1 / span 5;
      width: unset;
      height: unset;
      margin-left: unset;
    }

    video {
      height: 100%;
      width: 100%;
      object-fit: cover;
    }
  }

  .visit-btn{
    width: 20%;
  }

  .next-project-header {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    padding-top: 5rem;

    h3 {
      font-size: 1.25rem !important;
    }

    img {
      height: 0.9rem;
    }
  }

  .project {
    padding-top: 2rem;
  }
}


@media(min-width: 1920px){
  .visit-btn{
    width: 20%;
  }
}