.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; justify-content: center; }
.project-mosaic-tile {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  flex: var(--photo-ratio, 1) 1 0px;
  max-width: calc(100svh * var(--photo-ratio, 1));
  align-self: start;
}
.project-mosaic-tile > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100svh;
  object-fit: contain;
}
.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-row { display: block; }
  .project-mosaic-tile { margin-inline: auto; }
}
.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; }
}
