@font-face {
  font-family: "zaha";
  src: url('../wp-content/themes/zaha/fonts/zaha.otf');
}

@font-face {
  font-family: "Nexa Bold";
  src: url('../wp-content/uploads/font/nexa/Nexa Bold.otf') format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111;
  --muted: #777;
  --line: #d6d6d6;
  --project-title-font: "Nexa Bold", Arial, sans-serif;
  --about-copy-width: 220px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(276px, 20%) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0;
  background: #fff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

body::before {
  content: "";
  position: fixed;
  top: 24px;
  left: 28px;
  z-index: 5;
  width: 366px;
  height: 50px;
  background: url('../wp-content/uploads/logo/olmos-new-black.webp') top left / contain no-repeat;
  pointer-events: none;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.project-hero {
  display: none;
}

.hero-inner {
  display: block;
  width: var(--about-copy-width);
  max-width: 100%;
  margin-bottom: 22px;
}

.back-link {
  display: none;
}

.eyebrow,
.section-label {
  margin: 0 0 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
}

.section-label {
  display: none;
}

.eyebrow::after {
  content: none;
}

.eyebrow {
  display: none;
}

h1,
h2 {
  margin: 0;
  font-weight: 400;
}

h1 {
  margin-top: 0;
  font-family: var(--project-title-font);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 15px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.project-main {
  display: contents;
}

.project-content {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding: 120px 28px 56px;
}

.copy-card,
.info-card,
.gallery-section {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.copy-card {
  width: var(--about-copy-width);
  max-width: 100%;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.copy-card p:not(.section-label) {
  margin: 0 0 14px;
  color: #222;
  font-size: 13px;
  line-height: 1.58;
}

.info-card {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.info-stack {
  display: grid;
  gap: 0;
}

.info-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.info-row:last-child {
  border-bottom: 1px solid var(--line);
}

.info-row span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}

.info-row strong {
  color: var(--ink);
  font-weight: 400;
}

.gallery-section {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 120px 34px 72px 0;
}

.gallery-header {
  display: none;
}

.gallery-header h2 {
  margin-bottom: 0;
  font-family: "zaha", Arial, sans-serif;
  font-size: 34px;
  line-height: 0.95;
  text-transform: none;
  letter-spacing: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 176px);
  gap: 14px;
  align-items: start;
}

.gallery-item {
  width: 176px;
  margin: 0;
}

.gallery-item a {
  display: block;
  text-decoration: none;
}

.gallery-item img {
  width: 176px;
  height: 124px;
  object-fit: cover;
  background: #eee;
}

.gallery-item:hover img {
  opacity: 0.82;
}

article.copy-card p {
    margin-right: 30px !important;
}

.gallery-item figcaption {
  padding-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

body.lightbox-open {
  overflow: hidden;
}

.project-lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.project-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-lightbox__dialog {
  position: absolute;
  top: 50%;
  left: max(276px, 20%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1006px, calc(100vw - max(276px, 20%) - 34px));
  height: min(622px, calc(100vh - 128px));
  padding: 7px;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.38);
  transform: translateY(-50%);
}

.project-lightbox__dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.34)),
    var(--lightbox-image);
  background-position: center;
  background-size: cover;
  border-radius: inherit;
  filter: blur(18px) saturate(0.75);
  opacity: 0.9;
  transform: scale(1.08);
}

.project-lightbox__button,
.project-lightbox__nav {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
}

.project-lightbox__button {
  position: absolute;
  top: 20px;
  right: 27px;
  z-index: 100;
  width: 30px;
  height: 30px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  font-size: 28px;
}

.project-lightbox__nav {
  position: absolute;
  top: 7px;
  z-index: 2;
  width: 74px;
  height: calc(100% - 14px);
  background: rgba(0, 0, 0, 0.08);
  font-size: 54px;
  opacity: 0.82;
}

.project-lightbox__nav:hover,
.project-lightbox__button:hover {
  opacity: 1;
}

.project-lightbox__nav--prev {
  left: 7px;
}

.project-lightbox__nav--next {
  right: 7px;
}

.project-lightbox__viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
}

.project-lightbox__track {
  display: flex;
  align-items: stretch;
  height: 100%;
  margin: 0;
  padding: 0 74px;
  gap: 10px;
  list-style: none;
  transition: transform 0.35s ease;
}

.project-lightbox__slide {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  max-width: 880px;
  overflow: hidden;
  opacity: 0.4;
  transition: opacity 0.28s ease;
}

.project-lightbox__slide.is-active {
  opacity: 1;
}

.project-lightbox__image {
  position: relative;
  z-index: 1;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.3));
}

.project-lightbox__count {
  position: absolute;
  right: 0;
  bottom: -28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

@media (max-width: 860px) {
  body {
    display: block;
    padding: 104px 20px 56px;
  }

  body::before {
    position: absolute;
    top: 24px;
    left: 20px;
    width: 240px;
  }

  .back-link {
    position: absolute;
    top: 80px;
    left: 20px;
  }

  .back-link::before,
  .eyebrow::after {
    display: none;
  }

  .project-hero,
  .gallery-section,
  .project-content {
    padding: 0;
  }

  h1 {
    margin-top: 20px;
  }

  .project-content,
  .gallery-section {
    margin-top: 26px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  }

  .gallery-item,
  .gallery-item img {
    width: 100%;
  }

  .project-lightbox__nav {
    width: 38px;
    height: 54px;
    font-size: 42px;
    background: transparent;
  }

  .project-lightbox {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 44px 44px;
  }

  .project-lightbox__dialog {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: min(68vh, 520px);
    transform: none;
  }

  .project-lightbox__track {
    padding: 0 42px;
  }

  .project-lightbox__slide {
    max-width: calc(100vw - 88px);
  }

  .project-lightbox__nav--prev {
    left: 7px;
  }

  .project-lightbox__nav--next {
    right: 7px;
  }
}

@media (min-width: 641px) and (max-width: 860px) {
  .project-lightbox {
    display: block;
    padding: 0;
  }

  .project-lightbox__dialog {
    position: absolute;
    top: 50%;
    left: 276px;
    width: calc(100vw - 304px);
    height: min(430px, calc(100vh - 160px));
    transform: translateY(-50%);
  }

  .project-lightbox__track {
    padding: 0 38px;
  }

  .project-lightbox__slide {
    max-width: calc(100vw - 380px);
  }

  .project-lightbox__nav {
    width: 38px;
    height: calc(100% - 14px);
  }
}
