/* Shared Projects navigation; each page keeps its own content palette. */
.project-header {
  --header-ink: var(--white, #f4f4ee);
  --header-focus: var(--yellow, var(--project-yellow, #f6c934));
  --header-rule: var(--rule, #2c2c29);
  --header-gutter: clamp(16px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* Use viewport geometry in both normal flow and absolute overlays: the
     document scrollbar must not shift navigation between project pages. */
  width: min(calc(100vw - var(--header-gutter) * 2), 1360px);
  height: 76px;
  min-height: 76px;
  margin-inline: max(var(--header-gutter), calc((100vw - 1360px) / 2));
  border-bottom: 1px solid var(--header-rule);
  color: var(--header-ink);
}
.project-header--light {
  --header-ink: var(--ink);
  --header-focus: var(--blue, var(--ink));
  --header-rule: var(--ink);
}
.project-header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  font: 400 13px/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.project-header__nav > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  color: inherit;
  white-space: nowrap;
  text-decoration: none;
  text-underline-offset: 5px;
  cursor: pointer;
}
.project-header__nav > a:hover,
.project-header__nav > a[aria-current="page"] { text-decoration: underline; }
.project-header__nav > a:focus-visible { outline: 2px solid var(--header-focus); outline-offset: 4px; }
.project-header__nav > a:active { opacity: .7; }
.project-header__nav > .project-header__gallery {
  position: relative;
  width: 100px;
  flex: 0 0 100px;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.project-header__gallery-mark {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.project-header__gallery-mark img {
  position: absolute;
  left: -32px;
  top: 50%;
  transform: translateY(-50%);
  width: 164px;
  max-width: none;
  height: auto;
  filter: brightness(0) invert(1);
}
.project-header--light .project-header__gallery-mark img { filter: brightness(0); }
.project-header__gallery > span:last-child { position: relative; }
.project-header__nav > .project-header__gallery:hover { text-decoration: none; }
.project-header--overlay { position: absolute; z-index: 10; inset: 0 0 auto; }
.project-header--room { position: absolute; z-index: 3; inset: 0 0 auto; justify-self: start; border-bottom-color: transparent; }
.project-header--room .project-header__nav {
  text-shadow: 0 1px 2px #000, 0 0 6px #000c, 0 0 12px #0008;
}
.project-header--room .project-header__gallery-mark {
  filter: drop-shadow(0 1px 1px #000) drop-shadow(0 0 4px #000c);
}
@media (max-width: 640px) {
  .project-header { height: 68px; min-height: 68px; }
  .project-header__nav { gap: 12px; }
}
@media (max-width: 360px) { .project-header__nav { gap: 10px; } }
@media (max-width: 600px) {
  .project-header--room { position: relative; }
}
@media (forced-colors: active) {
  .project-header { color: LinkText; border-color: CanvasText; }
  .project-header__gallery-mark { display: none; }
  .project-header--room .project-header__nav { text-shadow: none; }
  .project-header__nav > a:focus-visible { outline-color: Highlight; }
}
@media print { .project-header { display: none; } }
