
/* =========================================================
   LUMIERE ARC — MODEL PROJECT 01
   SANTA CATERINA MARKET
   ========================================================= */

:root {
  --project-cream: #faf7f2;
  --project-paper: #f3eee6;
  --project-charcoal: #484139;
  --project-copy: #665f57;
  --project-brass: #a8792a;
  --project-line: rgba(72, 65, 57, 0.17);
  --project-container-width: 1240px;
}

/* =========================================================
   PAGE
   ========================================================= */

.portfolio-project-page {
  background: var(--project-cream);
  color: var(--project-charcoal);
}

.project-main {
  position: relative;
  min-height: 100vh;
  padding: 160px 0 110px;
  background: var(--project-cream);
}

.project-container {
  width: min(
    calc(100% - 100px),
    var(--project-container-width)
  );
  margin: 0 auto;
}

/* =========================================================
   HEADER READABILITY
   ========================================================= */

.portfolio-project-page .site-header {
  z-index: 20;
}

.portfolio-project-page .site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 125px;
  z-index: -1;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(250, 247, 242, 0.98) 0%,
    rgba(250, 247, 242, 0.90) 42%,
    rgba(250, 247, 242, 0.48) 72%,
    rgba(250, 247, 242, 0) 100%
  );
}

/* =========================================================
   PROJECT HEADING
   ========================================================= */

.project-heading {
  margin-bottom: 48px;
  text-align: center;
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 42px;

  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;

  color: var(--project-copy);
  text-decoration: none;

  transition: color 0.25s ease;
}

.project-back-link span {
  font-size: 15px;
  color: var(--project-brass);
  transition: transform 0.25s ease;
}

.project-back-link:hover {
  color: var(--project-brass);
}

.project-back-link:hover span {
  transform: translateX(-4px);
}

.project-eyebrow {
  margin: 0 0 14px;

  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.27em;
  text-transform: uppercase;

  color: var(--project-brass);
}

.project-heading h1 {
  max-width: 1000px;
  margin: 0 auto;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(55px, 6.5vw, 100px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;

  color: var(--project-charcoal);
}

.project-heading-divider {
  width: 55px;
  height: 1px;
  margin: 27px auto 22px;
  background: var(--project-brass);
}

.project-heading-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;

  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.11em;
  text-transform: uppercase;

  color: var(--project-copy);
}

.project-meta-separator {
  color: var(--project-brass);
}

/* =========================================================
   PROJECT IMAGES
   ========================================================= */

.project-figure {
  margin: 0;
  min-width: 0;
}

.project-image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;

  border: 0;
  border-radius: 0;
  overflow: hidden;
  appearance: none;

  background: var(--project-paper);
  cursor: zoom-in;
  text-align: left;

  aspect-ratio: 3 / 2;
}

.project-image-button img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  transition:
    transform 0.65s ease,
    filter 0.4s ease;
}

.project-image-button:hover img {
  transform: scale(1.025);
  filter: brightness(0.94);
}

.project-image-button:focus-visible {
  outline: 2px solid var(--project-brass);
  outline-offset: 4px;
}

.project-zoom-label {
  position: absolute;
  bottom: 22px;
  right: 25px;
  z-index: 2;

  padding: 9px 12px;
  border: 1px solid rgba(250, 247, 242, 0.60);
  background: rgba(30, 26, 23, 0.55);

  font-family: "Montserrat", sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: #fff;
  opacity: 0;
  transform: translateY(7px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;

  pointer-events: none;
}

.project-image-button:hover .project-zoom-label,
.project-image-button:focus-visible .project-zoom-label {
  opacity: 1;
  transform: translateY(0);
}

.project-figure figcaption {
  padding-top: 12px;

  font-family: "Montserrat", sans-serif;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: #898177;
}

/* =========================================================
   MAIN HERO — 3:2 PHOTOGRAPH
   ========================================================= */

.project-hero {
  margin-bottom: 75px;
}

.project-image-hero {
  aspect-ratio: 3 / 2;
}

.project-image-hero img {
  object-fit: contain;
}

/* =========================================================
   PROJECT STORY
   ========================================================= */

.project-story {
  display: grid;

  grid-template-columns:
    minmax(0, 0.85fr)
    minmax(0, 1.65fr);

  gap: clamp(35px, 7vw, 115px);
  padding: 0 18px;
  margin-bottom: 70px;
}

.project-story-label {
  padding-top: 4px;
}

.project-story-label h2 {
  max-width: 430px;
  margin: 0;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 3.7vw, 56px);
  font-weight: 400;
  line-height: 0.99;
  letter-spacing: -0.02em;

  color: var(--project-charcoal);
}

.project-story-content {
  max-width: 735px;
}

.project-story-content p {
  margin: 0 0 22px;

  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 2;

  color: var(--project-copy);
}

.project-story-content p:last-child {
  margin-bottom: 0;
}

.project-story-content .project-lead {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(25px, 2.25vw, 34px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;

  color: var(--project-charcoal);
}

/* =========================================================
   TWO-IMAGE GALLERIES
   ========================================================= */

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 84px;
}

.project-gallery .project-image-button {
  aspect-ratio: 3 / 2;
}

.project-gallery .project-image-button img {
  object-fit: contain;
}

.project-story-secondary {
  padding-top: 12px;
  margin-bottom: 67px;
}

/* =========================================================
   MISSING IMAGE FALLBACK
   ========================================================= */

.project-image-button.is-missing {
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    135deg,
    #eee7dd 0%,
    #f7f2eb 100%
  );

  cursor: default;
}

.project-image-button.is-missing::after {
  content: "PROJECT IMAGE — ADD RENDER";

  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-align: center;

  color: var(--project-copy);
}

.project-image-button.is-missing img,
.project-image-button.is-missing .project-zoom-label {
  display: none;
}

/* =========================================================
   PROJECT END
   ========================================================= */

.project-end {
  padding: 0 20px 10px;
  text-align: center;
}

.project-end-divider {
  height: 1px;
  width: 100%;
  margin-bottom: 72px;
  background: var(--project-line);
}

.project-end-eyebrow {
  margin: 0 0 12px;

  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;

  color: var(--project-brass);
}

.project-end h2 {
  margin: 0 0 15px;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 400;
  line-height: 1;

  color: var(--project-charcoal);
}

.project-end > p:not(.project-end-eyebrow) {
  max-width: 450px;
  margin: 0 auto 29px;

  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.9;

  color: var(--project-copy);
}

.project-return-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 7px;

  border-bottom: 1px solid rgba(168, 121, 42, 0.55);
  text-decoration: none;

  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;

  color: var(--project-charcoal);

  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.project-return-link span {
  color: var(--project-brass);
  transition: transform 0.25s ease;
}

.project-return-link:hover {
  color: var(--project-brass);
  border-color: var(--project-brass);
}

.project-return-link:hover span {
  transform: translateX(5px);
}

/* =========================================================
   PREVIOUS / NEXT PROJECT NAVIGATION
   ========================================================= */

.project-pagination {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(42px, 12vw, 180px);
  margin-top: 73px;

  border-top: 1px solid var(--project-line);
  border-bottom: 1px solid var(--project-line);
}

.project-pagination-link {
  display: flex;
  align-items: center;
  flex: 0 1 42%;
  min-width: 0;
  gap: 20px;
  padding: 31px 0;

  text-decoration: none;
  color: var(--project-charcoal);

  transition: color 0.25s ease;
}

.project-pagination-link:hover {
  color: var(--project-brass);
}

.project-pagination-link:focus-visible {
  outline: 2px solid var(--project-brass);
  outline-offset: 3px;
}

/* No vertical divider between the arrows. */
.project-pagination-next {
  justify-content: flex-end;
  text-align: right;
  margin-left: auto;
}

.project-pagination-arrow {
  flex: 0 0 auto;

  font-family: "Montserrat", sans-serif;
  font-size: 29px;
  font-weight: 300;
  line-height: 1;

  color: var(--project-brass);

  transition: transform 0.25s ease;
}

.project-pagination-previous:hover .project-pagination-arrow {
  transform: translateX(-5px);
}

.project-pagination-next:hover .project-pagination-arrow {
  transform: translateX(5px);
}

.project-pagination-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.project-pagination-eyebrow {
  font-family: "Montserrat", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: var(--project-brass);
}

.project-pagination-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

/* =========================================================
   IMAGE LIGHTBOX
   ========================================================= */

.project-lightbox[hidden],
.project-lightbox-nav[hidden] {
  display: none !important;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 70px 95px;
  background: rgba(18, 17, 16, 0.94);
}

.project-lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  max-width: 100%;
  max-height: 100%;
  min-width: 0;
}

.project-lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 165px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.project-lightbox-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  width: 100%;
  padding-top: 17px;

  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;

  color: rgba(255, 255, 255, 0.68);
}

.project-lightbox-bottom p {
  margin: 0;
  line-height: 1.6;
}

.project-lightbox-close,
.project-lightbox-nav {
  position: absolute;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 0;
  background: transparent;

  font-family: "Montserrat", sans-serif;
  font-weight: 300;

  color: #fff;
  cursor: pointer;

  transition: color 0.25s ease;
}

.project-lightbox-close:hover,
.project-lightbox-nav:hover {
  color: #c69b57;
}

.project-lightbox-close:focus-visible,
.project-lightbox-nav:focus-visible {
  outline: 2px solid #c69b57;
  outline-offset: 4px;
}

.project-lightbox-close {
  top: 20px;
  right: 30px;
  width: 45px;
  height: 45px;
  font-size: 36px;
}

.project-lightbox-nav {
  top: 50%;
  width: 55px;
  height: 65px;
  transform: translateY(-50%);
  font-size: 29px;
}

.project-lightbox-prev {
  left: 20px;
}

.project-lightbox-next {
  right: 20px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.portfolio-project-page .site-footer {
  position: relative;
  z-index: 5;
  background: var(--project-cream);
}

/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1500px) {

  .project-container {
    width: min(calc(100% - 150px), 1320px);
  }

  .project-main {
    padding-top: 175px;
  }

  .project-gallery {
    gap: 32px;
  }

}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

  .project-main {
    padding: 145px 0 85px;
  }

  .project-container {
    width: calc(100% - 70px);
  }

  .project-heading h1 {
    font-size: clamp(55px, 7vw, 77px);
  }

  .project-story {
    grid-template-columns:
      minmax(0, 0.85fr)
      minmax(0, 1.4fr);

    gap: 35px;
    padding: 0;
  }

  .project-gallery {
    gap: 20px;
  }

  .project-hero {
    margin-bottom: 60px;
  }

}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .project-main {
    padding: 125px 0 65px;
  }

  .project-container {
    width: calc(100% - 36px);
  }

  .project-heading {
    margin-bottom: 32px;
  }

  .project-back-link {
    margin-bottom: 31px;
  }

  .project-eyebrow {
    font-size: 9px;
  }

  .project-heading h1 {
    font-size: clamp(47px, 12vw, 67px);
    line-height: 0.95;
  }

  .project-heading-meta {
    gap: 7px 12px;
    font-size: 9px;
    letter-spacing: 0.07em;
  }

  .project-hero {
    margin-bottom: 45px;
  }

  .project-image-hero {
    aspect-ratio: 3 / 2;
  }

  .project-story {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 43px;
  }

  .project-story-label h2 {
    max-width: 550px;
    font-size: 43px;
  }

  .project-story-content p {
    font-size: 12px;
    line-height: 1.9;
  }

  .project-story-content .project-lead {
    font-size: 27px;
    line-height: 1.25;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    gap: 27px;
    margin-bottom: 55px;
  }

  .project-gallery .project-image-button {
    aspect-ratio: 3 / 2;
  }

  .project-zoom-label {
    display: none;
  }

  .project-story-secondary {
    padding-top: 0;
  }

  .project-end {
    padding: 0;
  }

  .project-end-divider {
    margin-bottom: 50px;
  }

  .project-end h2 {
    font-size: 50px;
  }

  .project-pagination {
    margin-top: 53px;
    gap: 22px;
  }

  .project-pagination-link {
    flex-basis: calc(50% - 11px);
    gap: 10px;
    padding: 23px 0;
  }

  .project-pagination-arrow {
    font-size: 24px;
  }

  .project-pagination-eyebrow {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .project-pagination-title {
    font-size: clamp(23px, 6vw, 30px);
  }

  .project-lightbox {
    padding: 70px 12px 90px;
  }

  .project-lightbox-content img {
    max-height: calc(100dvh - 190px);
  }

  .project-lightbox-close {
    top: 9px;
    right: 13px;
  }

  .project-lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
    width: 48px;
    height: 45px;
    font-size: 25px;
  }

  .project-lightbox-prev {
    left: 20px;
  }

  .project-lightbox-next {
    right: 20px;
  }

  .project-lightbox-bottom {
    padding-top: 13px;
    gap: 12px;
    font-size: 9px;
  }

}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .project-image-button img,
  .project-zoom-label,
  .project-back-link span,
  .project-return-link span,
  .project-pagination-arrow {
    transition: none;
  }

  .project-image-button:hover img {
    transform: none;
  }

}
