/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* general */
/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */

body {
  animation: fadeInAnimation ease 2s;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
}

body.home {
  background-color: black;
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

main {
  position: relative;
}

figure,
picture {
  display: flex;
}

.bodyfixed {
  position: fixed;
}

.hidden,
.fade-in {
  transition: opacity 350ms ease-out;
  opacity: 0;
  -webkit-transition: opacity 350ms ease-out;
  -moz-transition: opacity 350ms ease-out;
  -o-transition: opacity 350ms ease-out;
}

.appear {
  transition: opacity 350ms ease-in;
  opacity: 1;
  -webkit-transition: opacity 350ms ease-in;
  -moz-transition: opacity 350ms ease-in;
  -o-transition: opacity 350ms ease-in;
}

.main-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 1.25rem;
  padding: 0 var(--main--margin) 0 var(--main--margin);
  grid-column: 1 / -1;
}

dl,
li {
  padding-bottom: 2px;
}

nav dl,
li {
  padding-bottom: 0;
}

dt {
  grid-column: span 1;
  padding-bottom: 2px;
}

dd {
  grid-column: 2 / -1;
  margin: 0;
}

.block-type-slider {
  width: var(--body--width);
  height: 80vh;
  overflow: hidden;
}

.block-type-slider picture {
  position: relative;
}

.column {
  width: 100%;
  height: 100%;
}

.block-type-gallery {
  display: flex;
  justify-content: center;
  padding: 16rem 0;
}

.main--section {
  position: relative;
  min-height: var(--full-height);
  /* padding: var(--nav--height) 0 0 0; */
}

.main--margin {
  padding-left: var(--main--margin);
}

.caption {
  align-self: flex-start;
  margin-bottom: 18px;
  padding-top: 4px;
}

img {
  width: 100%;
}

.image-placeholder {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #e9e9e9;
  /* Placeholder background color */
}

.image-placeholder::before {
  content: "";
  display: block;
  width: 100%;
  background-color: #e9e9e9;
  /* Placeholder color */
}

.image-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.image-placeholder img.loaded {
  opacity: 1;
}

/* Prevent placeholder styles within .project-list */
.project-list .image-placeholder {
  background-color: transparent;
}

.project-list .image-placeholder::before {
  display: none;
  /* Remove the pseudo-element */
}

.project-list .image-placeholder img {
  position: static;
  opacity: 1;
  transition: none;
  /* No transition */
}

.project-list {
  position: fixed;
  top: calc(var(--nav--height) + 5rem);
  height: calc(100vh - 8rem);
  overflow: scroll;
  left: 0;
  width: var(--body--width);
  padding: 0 var(--main--margin) 0 var(--main--margin);
}

.project-list {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
}

.project-list::-webkit-scrollbar {
  display: none;
  /* Safari and Chrome */
}

#listCat {
  z-index: 1;
}


/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* HOME */
/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */

/* hero's gradient */
.home .slidercontainer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.40), rgba(0, 0, 0, 0));
  mix-blend-mode: multiply;
  z-index: 1;
  pointer-events: none;
}

.project-title {
  position: fixed;
  top: 1rem;
  width: fit-content;
  margin: auto;
  z-index: 9999;
  color: white !important;
  font-size: var(--title-font-size);
  gap: 1rem;
  display: flex;
  pointer-events: all;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.slide.appear .project-title {
  opacity: 1;
  transition: opacity 0.3s ease-in-out 1s;
}

.project-title a {
  position: relative;
}

.project-title a::after {
  position: absolute;
  right: -90px;
  padding-top: 1px;
  z-index: 0;
  white-space: nowrap;
  font-size: var(--text-font-size);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.project-title a:hover::after {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.project-title a+.project-link-text {
  display: none;
  /* Hide the original span */
}

.home .block-type-image,
.home .block-type-image>*,
.home .block-type-image>*>*,
.home .block-type-video,
.home .block-type-video>* {
  width: 100%;
  height: 100%;
}

.home video {
  object-fit: cover;
  overflow-clip-margin: content-box;
  overflow: clip;
  width: 100%;
}

.home img {
  object-fit: cover;
}

.right video {
  object-position: right;
}

.left video {
  object-position: left;
}

.center video {
  object-position: center;
}

/* for full image vimeo */
.home .block-type-video .vimeo {
  --videoRatio: calc(16 / 9);
  /* Default video ratio */
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  pointer-events: pointer;
  /* Ensure the container doesn't block clicks */
}

/* For half-screen vimeo */
.home .column-span-3 .block-type-video .vimeo {
  width: 50vw;
}

.home .vimeo iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  --w: 100vw;
  --h: calc(var(--w) / var(--videoRatio));
  width: var(--w);
  height: var(--h);
  transform: translate(-50%, -50%);
  padding: 0;
  margin: 0;
  border: none;
  pointer-events: none;
  /* Ensure iframe captures clicks */
}

/* narrower viewports */
@media (max-aspect-ratio: 16/9) {
  .home .vimeo iframe {
    --h: 100vh;
    --w: calc(var(--h) * var(--videoRatio));
    width: var(--w);
    height: var(--h);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}


/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* LIST – PROJECTS */
/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */

.list-of-projects {
  background-color: var(--list-color);
}

.list-of-projects main {
  /* min-height: var(--full-height); */
  padding-bottom: 3.4rem;
  padding-top: 21px;
  margin-top: 6px;
}

.list-section {
  display: flex;
  flex-direction: column;
  padding: 9px var(--main--margin) 0 var(--main--margin);
  z-index: 1;
}

.list-of-projects .main-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  column-gap: 0.5rem;
  grid-column: 1 / -1;
  position: relative;
  padding: 0 0 2px 0;
  font-size: var(--text-font-size);
}

.cat-sub-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  column-gap: 0.5rem;
  grid-column: 8 / -1;
  position: relative;
}

.list-of-projects .main-grid h2 {
  z-index: 2;
}

.list-of-projects .main-grid .number-cat {
  z-index: 3;
}

.list-of-projects footer dd {
  color: var(--second--type-color);
  margin-left: 55px;
}

.project-list ul {
  min-height: calc(100vh - 11rem);
  padding-bottom: 10rem;
}

.list-of-projects footer {
  padding: 0 0 4px 0;
}

.number-cat {
  grid-column: span 1;
  position: relative;
}

.name-cat {
  grid-column: span 6;
}

.year-cat {
  grid-column: span 3;
}

.location-cat {
  grid-column: span 3;
}

.specialities-cat {
  grid-column: span 4;
}

.status-cat {
  grid-column: span 3;
}

.list-image {
  position: fixed;
  top: 0;
  right: 0;
  height: var(--full-height);
  z-index: -1;
}

.list-image picture,
.project-list .year-cat,
.project-list .location-cat,
.project-list .specialities-cat,
.project-list .status-cat {
  transform: unset !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease-in-out;
}

.list-image picture {
  min-width: 100vw;
  height: var(--full-height);
  object-fit: cover;
}

.list-image picture.is-portrait {
  object-fit: cover;
  width: calc(50vw + var(--main--margin));
  min-height: 100vh;
  height: var(--full-height);
  min-width: unset;
}

/* Background image container */

#fullscreen-image-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  /* Ensure it stays behind other content */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
}

#fullscreen-image-container.visible {
  opacity: 1;
}

#fullscreen-image-container.is-portrait {
  background-size: cover;
  background-position: right center;
  width: calc(var(--body--width) / 2 + var(--main--margin) / 2);
  /* justify-content: flex-end;
      display: flex; */
  right: 0;
  left: auto;
}

#fullscreen-image-container {
  background-size: cover;
}

.project-list_head {
  position: fixed !important;
  padding-top: 9px;
  width: calc(var(--body--width) - var(--main--margin) * 2) !important;
}

.project-list li {
  position: relative;
}

.project-list .name-cat::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -4px;
  width: calc(100% + 8px);
  height: 100%;
  background-color: white;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: -1;
  pointer-events: none;
}

.project-list .name-cat:hover::before {
  opacity: 1;
}

.list-items {
  cursor: default;
}

.list-items .name-cat {
  cursor: default !important;
}

.link-active {
  cursor: pointer;
}

.project-list li .name-cat:hover~.cat-sub-grid h2 {
  opacity: 1 !important;
}

.list-items {
  opacity: 1;
  transition: none;
}

.list-fade-out {
  opacity: 0 !important;
}

.project-list.dark-image .list-items:not(:hover),
#listCat.dark-image {
  color: rgb(255, 255, 255) !important;
}

.list-items.inactive-project {
  color: black !important;
}

.list-items:hover {
  color: black !important;
  transition: color unset !important;
}

.list-items.inactive-project:hover {
  color: var(--second--type-color) !important;
  transition: color unset !important;
}

.list-items a {
  transition: none !important;
}


/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* PROJECT */
/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */

.project {
  background-color: var(--project-color);
}

.project main {
  display: flex;
  flex-direction: column;
  padding-top: var(--nav--height);
}

.project-page-title {
  display: flex;
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav--height);
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.project .block-type-slider,
.gallery.block-type-slider {
  position: relative;
}

.hero.block-type-slider {
  height: calc(var(--full-height) - var(--nav--height) - 1rem);
}

.hero .slidercontainer {
  height: calc(100% - 3.5rem);
}

.hero figure {
  width: 100%;
  height: 100%;
  justify-content: center;
  padding: 0 7rem;
}

.hero .images-total-1 picture {
  /* width: 100%; */
  height: 100%;
}

.hero .images-total-1 img {
  object-fit: contain;
  width: 100%;
  max-width: 75vw;
  margin: auto;
}

.hero img {
  max-height: 100%;
}

.hero .images-total-2 img.is-portrait,
.hero .images-total-2 img.is-square {
  width: unset;
  object-fit: contain;
}

.hero .images-total-1 img.is-portrait {
  object-fit: contain;
  height: 100%;
  width: unset;
  max-width: unset;
}

.hero .images-total-1 img.is-square {
  object-fit: contain;
  width: unset;
  max-width: 75vw;
  margin: auto;
  height: 100%;
}

.gallery.block-type-slider {
  height: fit-content;
  overflow: visible;
  width: 62%;
}

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

.hero figure.images-total-2 {
  justify-content: space-between;
}

.hero figure.images-total-2 picture {
  width: calc(50% - var(--main--margin) / 2);
  /* display: flex;
  justify-content: center; */
  align-items: center;
  justify-content: center;
  max-width: 38vw;
}

.hero .vimeo iframe {
  width: 80%;
  z-index: -1;
}

.hero .counter {
  align-items: center;
}

.projecto-content {
  overflow: hidden;
}

.gallery .slidercontainer {
  height: fit-content;
  margin-bottom: 2.2rem;
}

.gallery .fade-in {
  opacity: 1;
}

.gallery .slide {
  padding: 0 0 0 var(--main--margin);
}

.gallery figure {
  width: 100%;
  height: 100%;
  justify-content: center;
  background-color: white;
}

[data-adaptative-width="true"] picture {
  width: 100%;
  height: fit-content;
}

.gallery picture img {
  height: auto;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin-bottom: auto;
}

[data-adaptative-width="true"] picture .is-portrait {
  object-fit: cover;
  height: 100%;
}

.gallery .counter {
  justify-content: flex-start;
  align-items: center;
  padding-left: var(--main--margin);
  font-size: var(--info-font-size) !important;
}

.gallery .counter {
  color: var(--main--type-color) !important;
}

.hero .counter {
  font-size: 12px !important;
  color: var(--second--type-color) !important;
}

.gallery-title {
  margin-top: 100px;
  padding: 0 0 30px var(--main--margin);
  font-weight: 535 !important;
}

.project-text,
.other-links {
  padding: var(--main-gap) 0 0 var(--main--margin);
  width: calc(50% - var(--main--margin));
}

.other-links>*:not(:first-child) {
  color: var(--second--type-color) !important;
}

.project .fixed-info {
  padding-top: var(--main-gap);
}

.custom-info,
.fixed-info {
  gap: 2px;
}

.custom-info >*,
.custom-info >* >* {
  line-height: 20px;
}

.next-prev {
  display: flex;
  justify-content: space-between;
  padding: var(--main-gap) var(--main--margin) 0;
}

.next-prev>* {
  color: var(--second--type-color) !important;
  width: calc(50% - var(--main--margin) / 2);
}

.next-prev li a {
  width: fit-content;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 1.25rem;
}

.next-project div,
.next-link-image,
.next-link-image picture,
.next-link-image figure {
  width: 100% !important;
  height: 100% !important;
}

.next-prev li a h2:last-child {
  grid-column: 2 / -1;
}

.next-prev>*:first-child {
  display: flex;
  align-items: start;
  margin-top: 15px;
}

.prev-link,
.prev-name {
  position: relative;
  bottom: -7px;
}

.link-next-project {
  margin-bottom: 25px;
}

.link-next-project:hover~a img,
.next-link-image:hover img {
  opacity: 0.7;
  transition: opacity 0.3s ease-in-out;
}

.next-project {
  margin-left: auto;
}

.next-project a {
  display: flex !important;
  align-items: start;
  justify-content: flex-start;
  flex-direction: column;
}

.slidercontainer[data-adaptative-width="true"] .slide figure {
  background-color: unset !important;
}


/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* SELECTED */
/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */

.selected-projects {
  background-color: var(--selected-color);
}

.selected-projects main {
  background-color: var(--selected-color);
  padding-top: var(--main--alignment);
}

.selected-projects li:not(nav *) {
  display: flex;
  justify-content: center;
  margin-bottom: 120px;
}

.selected-projects picture {
  width: 59vw;
}

.selected-projects .sel-project img {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.selected-projects .sel-project img:hover {
  opacity: 0.5;
  transition: opacity 0.3s ease-in-out;
}

.selected-projects picture.is-portrait,
.selected-projects picture.is-square {
  width: 39vw;
}

.selected-projects div {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
}

.inactive-project {
  color: var(--second--type-color) !important;
}

.selected-projects .selected-info {
  gap: 1rem;
  color: var(--second--type-color);
  margin-top: -1px;
}

.selected-projects ul {
  padding-bottom: 7rem;
}

.selected-projects nav ul {
  padding-bottom: 0rem;
}

/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* ATELIER */
/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */

.atelier {
  background-color: var(--atelier-color);
}

.atelier-main {
  padding: var(--main--alignment) var(--main--margin) 0 var(--main--margin);
}

.atelier-text {
  padding-bottom: 120px;
  width: calc(var(--body--width) / 2 - var(--main--margin) / 2);
}

.atelier-text p {
  padding-bottom: 1rem;
}

.atelier-text+figure {
  padding-bottom: 9rem;
}

.atelier-slider-text {
  width: clamp(40ch, 60ch, 80ch);
}

.atelier picture {
  width: 100%;
  padding-bottom: 140px;
}

.specialities article {
  border-top: 1px solid var(--main--type-color);
  padding-top: 5px;
  overflow: hidden;
}

.specialities h2,
.atelier-team h2,
.premios h2 {
  font-weight: 535 !important;
}

.atelier-header {
  height: 68px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.specialities-drawer {
  display: flex;
  justify-content: space-between;
}

.specialities {
  margin-bottom: 65px;
}

.atelier .block-type-slider {
  width: calc(var(--body--width) / 2 - var(--main--margin) / 2);
  height: 62vh !important;
  padding-bottom: 8rem;
  /* margin: 0 calc(var(--main--margin)* -1 / 2) 0 calc(var(--main--margin)* -1 / 2); */
}

.atelier .block-type-slider picture {
  padding-bottom: 0;
  height: 100%;
}

.atelier .block-type-slider figure {
  width: 100%;
  height: 100%;
}

.specialities img {
  object-fit: cover;
}

.atelier .block-type-slider .counter {
  justify-content: flex-start;
  bottom: unset;
  font-size: var(--info-font-size);
}

.atelier-main {
  overflow-x: clip;
}

.atelier .slide {
  align-items: flex-start;
  justify-content: flex-start;
}

.atelier-team,
.premios {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  column-gap: var(--main--margin);
  padding-bottom: 140px;
}

.atelier-team h2,
.premios h2 {
  grid-column: span 2;
}

.atelier-team ul {
  grid-column: span 6;
  columns: 4
}

.inactive-member {
  color: var(--second--type-color);
}

.premios ul {
  grid-column: span 4;
}

.premios ul li {
  padding-bottom: 1rem;
}


/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* CONTACTS */
/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */

.contacts {
  background-color: var(--contacts-color);
}

.contacts-fixed-info {
  position: fixed;
  grid-template-columns: repeat(10, 1fr);
  padding-top: 18px;
  margin: 0;
  top: 0;
  background-color: var(--contacts-color);
  padding-bottom: 2rem;
}

.other-contacts,
.disclaimer,
.nvc {
  grid-template-columns: repeat(10, 1fr);
  padding-top: 0;
  margin: 0;
  row-gap: 4px;
  padding-bottom: 22px;
}

.contacts-fixed-info dt,
.other-contacts dt {
  grid-column: 5;
}

.contacts-fixed-info dd,
.other-contacts dd {
  grid-column: 6 / -1;
}

.contacts-hero h2 {
  grid-column: 5 / -1;
  margin-top: 106px;
  padding-bottom: 1rem;
}

.nvc {
  padding-top: 5rem;
}

.nvc a {
  grid-column: 5 / span 4;
}

.disclaimer p {
  grid-column: 5 / -1;
  margin-top: 60px;
  max-width: 83ch;
  font-size: var(--info-font-size) !important;
  line-height: var(--info-lh) !important;
  padding-bottom: 1.5rem;
}

.address,
.email {
  margin-bottom: 24px;
}

.contacts-hero {
  height: var(--full-height);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.contacts-hero a:hover,
.nvc a:hover {
  color: var(--second--type-color) !important;
  transition: color 0.3s ease-in-out;
}