/* =====================================================
   VINCITORE DESIGN -- PROJECT PAGE STYLES
   ===================================================== */

.project-header {
  padding: calc(var(--nav-height) + 3rem) 0 2.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--light-grey);
}

.breadcrumb {
  display: flex; align-items: center; gap: .6rem;
  font-size: .68rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 2rem;
}
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--text-dark); }

.project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.project-category {
  font-size: .68rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: .5rem;
}

.project-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 300; color: var(--text-dark);
  line-height: 1.1; margin-bottom: 1.25rem;
}

.project-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  font-size: .62rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); background: var(--light-grey);
  padding: .35rem .85rem; border-radius: 100px;
}

.project-details {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
  min-width: 260px; flex-shrink: 0;
}
.project-details dt {
  font-size: .62rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: .2rem;
}
.project-details dd { font-size: .85rem; color: var(--text-body); }


/* ==========================================================
   HERO IMAGE
   ----------------------------------------------------------
   ADJUSTING THE HERO HEIGHT -- change ONE value below:
     40vh  = short / banner-like
     50vh  = medium-short (good for landscape images)
     60vh  = default -- comfortable and balanced
     75vh  = tall / more dramatic
     500px = fixed pixel height (ignores screen size)

   The full image is always shown -- no cropping ever.
   The neutral background fills any empty space around it.
   ========================================================== */
.project-hero-image {
  width: 100%;
  background: #e8e7e4;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 60vh;             /* <-- CHANGE THIS to resize the hero */
  overflow: hidden;
}
.project-hero-image img {
  width: 100%;
  height: auto;
  max-height: 60vh;             /* <-- match the value above          */
  object-fit: contain;          /* full image shown, zero cropping     */
  display: block;
}
.img-fallback {
  width: 100%;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  background: var(--light-grey);
  color: var(--text-muted); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; text-align: center;
}


/* Body / overview */
.project-body {
  padding: 5rem 0;
  border-bottom: 1px solid var(--light-grey);
}
/* Explicit padding guard -- fixes Safari edge-to-edge text rendering */
.project-body .container,
.project-outcome .container,
.project-images .container,
.project-nav .container {
  padding-inline: var(--pad);
}
.project-body-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 5rem;
  align-items: start;
}
.project-section-label {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
}
.project-lead {
  font-size: 1.15rem; font-weight: 300;
  color: var(--text-dark); line-height: 1.7;
  margin-bottom: 1.25rem;
}
.project-overview p {
  font-size: .95rem; color: var(--text-body);
  line-height: 1.8; margin-bottom: 1rem;
}
.project-overview p:last-child { margin-bottom: 0; }

.project-pullquote {
  font-size: 1rem; font-style: italic; font-weight: 300;
  color: var(--text-dark); line-height: 1.65;
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
  position: sticky; top: calc(var(--nav-height) + 2rem);
}


/* ==========================================================
   PROJECT IMAGES SECTION
   ----------------------------------------------------------
   Full-width figures use object-fit: contain so the whole
   image is always visible -- same no-crop treatment as hero.

   ADJUSTING IMAGE HEIGHT -- change max-height below:
     50vh  = shorter
     70vh  = default (balanced for landscape images)
     90vh  = tall / nearly full screen
     600px = fixed pixel height

   Side-by-side pairs (project-figures-row) intentionally
   use object-fit: cover with a fixed aspect ratio so both
   images align neatly regardless of source dimensions.
   ========================================================== */
.project-images { padding: 0 0 5rem; }
.project-figure { margin-bottom: 2rem; }
.project-figure--full { width: 100%; }

.figure-img-wrap {
  background: #e8e7e4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 70vh;             /* <-- CHANGE THIS to control image height */
}
.figure-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 70vh;             /* <-- match the value above               */
  object-fit: contain;          /* full image, no cropping                 */
  display: block;
  transition: transform .6s var(--ease);
}
.project-figure:hover .figure-img-wrap img { transform: scale(1.02); }

/* Side-by-side pair -- aspect-ratio crop is fine here */
.project-figures-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; margin-bottom: 2rem;
}
.project-figures-row .figure-img-wrap {
  aspect-ratio: 4 / 3;
  max-height: none;             /* let aspect-ratio control height */
}
.project-figures-row .figure-img-wrap img {
  height: 100%;
  object-fit: cover;            /* intentional crop for paired images */
  max-height: none;
}

figcaption {
  font-size: .75rem; color: var(--text-muted);
  margin-top: .6rem; letter-spacing: .04em;
}


/* Outcome */
.project-outcome {
  padding: 4rem 0;
  background: var(--off-white);
  border-top: 1px solid var(--light-grey);
}
.project-outcome-text {
  font-size: .95rem; color: var(--text-body);
  line-height: 1.8; max-width: 680px;
}

/* Prev / Next nav */
.project-nav {
  padding: 3rem 0;
  border-top: 1px solid var(--light-grey);
  background: var(--white);
}
.project-nav .container {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.project-nav-link {
  display: flex; flex-direction: column; gap: .25rem;
}
.pnl-dir {
  font-size: .62rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted);
}
.pnl-name {
  font-size: .88rem; color: var(--text-dark);
  transition: color .2s;
}
.project-nav-link:hover .pnl-name { color: var(--gold); }
.project-nav-link--next { text-align: right; }
.project-nav-all {
  font-size: .68rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 1px solid var(--mid-grey);
  padding-bottom: 2px; transition: color .2s, border-color .2s;
}
.project-nav-all:hover { color: var(--text-dark); border-color: var(--text-dark); }

/* Responsive */
@media (max-width: 768px) {
  .project-body-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .project-pullquote  { position: static; }
  .project-figures-row { grid-template-columns: 1fr; }
  .project-details { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .project-meta-row { flex-direction: column; }
  .project-nav .container { flex-direction: column; align-items: center; text-align: center; }
  .project-nav-link--next { text-align: center; }
}