.project-portfolio-banner {
  box-sizing: border-box;
  min-height: 50svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(24px, 4svh, 48px) 24px;
  background: #000;
  color: #fff;
  text-align: center;
}
.project-portfolio-banner img { filter: brightness(0) invert(1); }
.project-portfolio-banner h1 {
  margin: 0;
  color: #fff !important;
  font-size: clamp(3.2rem, min(8vw, 13svh), 11rem) !important;
  line-height: .95;
  overflow-wrap: anywhere;
}
.project-portfolio-banner p {
  margin: 0;
  max-width: 58ch;
  color: #fff;
  font-size: clamp(1.6rem, 2vw, 2.6rem);
  line-height: 1.4;
}
.project-portfolio-banner strong {
  display: block;
  margin-bottom: .65em;
  font-size: .62em;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.project-mosaic { margin: 0; padding: 0; }
.project-mosaic-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: min(100svh, calc(100vw / var(--row-ratio)));
}
.project-mosaic-tile {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  align-self: stretch;
  flex: var(--photo-ratio, 1) 1 0px;
}
.project-mosaic-tile > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover;
}
.project-mosaic-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 18px;
  background: #080808e8;
  color: #fff;
  font-size: clamp(1.5rem, 2vw, 2.5rem);
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  transition: opacity .2s ease;
}
.project-mosaic-overlay > span:first-child { max-width: 34ch; }
.project-mosaic-tile:focus-visible .project-mosaic-overlay { opacity: 1; }
@media (hover: hover) {
  .project-mosaic-tile:hover .project-mosaic-overlay { opacity: 1; }
}
.project-mosaic-plus, .project-photo-dialog button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font: 28px/1 system-ui, sans-serif;
}
@media (hover: none) {
  .project-mosaic-overlay { opacity: 1; background: transparent; pointer-events: none; }
  .project-mosaic-overlay > span:first-child { visibility: hidden; }
  .project-mosaic-plus { position: absolute; right: 12px; bottom: 12px; background: #000c; }
}
@media (max-width: 767px) {
  .project-mosaic-plus { width: 36px; height: 36px; right: 8px; bottom: 8px; }
}
.project-photo-dialog {
  position: fixed;
  inset: 0;
  margin: 0;
  border: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  padding: 62px 12px 18px;
  background: #000;
  color: #fff;
}
.project-photo-dialog[open] { display: grid; place-items: center; }
.project-photo-dialog figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  margin: 0;
  text-align: center;
}
.project-photo-dialog figure img { width: 100%; height: 100%; object-fit: contain; }
.project-photo-dialog figcaption { color: #fff; }
.project-photo-dialog button {
  position: absolute;
  top: 8px;
  right: 12px;
  background: #000;
  color: #fff;
}
html:has(.project-photo-dialog[open]) { overflow: hidden; }
html:has(.project-photo-dialog[open]) .alchi-cursor { display: none !important; }
html .project-photo-dialog button { cursor: pointer !important; }
.project-portfolio-nav { padding: 28px clamp(24px, 4vw, 80px) 56px; }
.project-portfolio-nav .project_case_project_nav {
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.project-portfolio-nav .project_case_project_link {
  position: static;
  box-shadow: none;
  border: 1px solid #d8d8d8;
  background: #f5f5f5;
  color: #171717;
  max-width: 100%;
}
.project-portfolio-nav .project_case_project_thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-portfolio-banner .project-portfolio-brief,
.project-portfolio-contact .project-portfolio-brief {
  display: inline-block;
  background: #fff;
  color: #141414;
  padding: 12px 22px;
  font-size: 1.5rem;
  line-height: 1.4;
  border: 1px solid currentColor;
}
.project-portfolio-banner .project-portfolio-brief:hover,
.project-portfolio-contact .project-portfolio-brief:hover { text-decoration: underline; }
.project-portfolio-contact {
  text-align: center;
  padding: 36px 24px;
  background: #171717;
  color: #fff;
}
.project_schema_header,
.project_schema_header :is(h2, h3, p, li),
.project_related_area :is(h2, h3, p) { color: #171717; }
@media (prefers-reduced-motion: reduce) {
  .project-mosaic-overlay { transition: none; }
}

.project-portfolio-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 5rem);
  padding: clamp(3rem, 5vw, 7rem) clamp(2rem, 5vw, 8rem);
  background: #fff;
  color: #171717;
}
.project-portfolio-navigation-center { grid-column: 2; grid-row: 1; text-align: center; }
.project-portfolio-navigation-center p { color: #171717; margin: 0 auto 2rem; max-width: 48ch; }
.project-portfolio-navigation .project_expertise_btn {
  flex-direction: column;
  gap: .4rem;
  line-height: 1.4;
  text-decoration: none;
}
.project-portfolio-navigation .project_expertise_btn:hover,
.project-portfolio-navigation .project_expertise_btn:focus-visible { background: #714d38; color: #fff; }
.project-portfolio-prev { grid-column: 1; grid-row: 1; justify-self: start; }
.project-portfolio-next { grid-column: 3; grid-row: 1; justify-self: end; }
@media (max-width: 767px) {
  .project-portfolio-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-portfolio-navigation-center { grid-column: 1 / -1; }
  .project-portfolio-prev { grid-column: 1; grid-row: 2; justify-self: stretch; }
  .project-portfolio-next { grid-column: 2; grid-row: 2; justify-self: stretch; }
}
.project-portfolio-contact.project-portfolio-invitation {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: clamp(2rem, 6vw, 9rem); text-align: left;
  padding: clamp(4rem, 6vw, 8rem) clamp(2.4rem, 8vw, 12rem);
}
.project-portfolio-invitation h2 {
  color: #fff; margin: 0 0 1.2rem; font-size: clamp(3rem, 4vw, 5.2rem); line-height: 1.05;
}
.project-portfolio-invitation p { color: #fff; max-width: 68ch; margin: 0; line-height: 1.5; }
.project-portfolio-invitation-services { display: flex; flex-wrap: wrap; gap: .7rem 1.8rem; margin-top: 1.4rem; }
.project-portfolio-invitation-services a { color: #e5bda4; font-size: 1.35rem; text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 767px) {
  .project-portfolio-contact.project-portfolio-invitation { grid-template-columns: 1fr; justify-items: start; }
}

.project-portfolio-navigation .project_expertise_btn { background: #171717; color: #fff; min-width: 0; max-width: 100%; padding-inline: 2rem; }

.project-cta-whatsapp-status { flex-basis: 100%; }
.project-portfolio-invitation .project-portfolio-brief { white-space: normal; text-align: center; }
