/* ============================================================
   PROJECT PAGE STYLES
   ============================================================ */

   @import url('main.css');
    @import url('style.css');

/* ---------- shared variables for the project page ---------- */
:root {
  --project-max-width: 1600px;
  --project-padding-x: 5rem;
  --project-section-gap: 4rem;
  --project-image-radius: 5px;
}

/* the article wraps everything below the hero */
.project {
  padding-bottom: 6rem;
}

/* ---------- nav variant: floats over the hero image ---------- */
.site-nav.is-overlay {
  position: fixed;
  top: -5px;
  left: 0;
  right: 0;
  z-index: 50;
}

/* ---------- HERO ---------- */
.project-hero {
  position: relative;
  width: 100%;
  height: calc(100vh + 4rem);
  margin-top: -3.5rem;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  padding: 20px;
  
  overflow: hidden;
}

.project-hero img {
  border-radius: 5px;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- INFO BLOCK: two-column grid ---------- */
.project-info {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr;
  gap: 5rem;
  max-width: var(--project-max-width);
  margin: 0 auto;
  padding: 5rem var(--project-padding-x) var(--project-section-gap);
}

.project-info__meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* the tag row at the top of the meta column */
.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* the .tag style might already be in your main.css. these rules will
   merge with whatever you have -- adjust or remove if they conflict */
.project-tags .tag {
  display: inline-flex;
  align-items: center;
  font-family:"pp_moriregular";
  font-size:0.83rem;
  font-weight: 400;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(10, 10, 10, 0.35);
  border-radius: 999px;
  white-space: nowrap;
  color: #1a1a1a;
  background: transparent;
}

/* the large serif project title */
.project-title {
  font-weight: 400;
  font-size: clamp(2.5rem, 5.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #0a0a0a;
  margin: 0;
  margin-bottom:20px;
}

/* meta list: Year / Project Type style sub-headings */
.project-meta {
  
  display: flex;
  gap: 4rem;
  margin: 0;
}

.project-meta__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.project-meta dt {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.5);
}

.project-meta dd {
  
  font-size: 0.95rem;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.45;
}

/* the right-side body paragraph */
.project-info__body {
  padding-top: 5.5rem;
}

.project-info__body p {
  font-family: "pp_moriregular";
  max-width: 520px;
  margin-left: auto;
  font-size: 1rem;
  line-height: 1.5;
  color: #1a1a1a; 
  margin-bottom: 1rem;
}

/* ---------- IMAGE BLOCKS ---------- */
.project-image {
  margin: 0 auto var(--project-section-gap);
  max-width: var(--project-max-width);
  padding: 0 var(--project-padding-x);
  box-sizing: border-box;
}

.project-image img,
.project-image video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--project-image-radius);
  background: #e0e0dc;
}

/* a wider image variant that still respects the page max-width */
/* .project-image--wide { */
  /* same as base -- kept as its own class in case you want to extend
     it later (e.g. full-bleed, breakout) */

/* two-up image row */
.project-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: var(--project-max-width);
  margin: 0 auto var(--project-section-gap);
  padding: 0 var(--project-padding-x);
  box-sizing: border-box;
}

.project-image-row .project-image {
  margin: 0;
  padding: 0;
  max-width: none;
}


.project-image-row--three {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- VIDEO EMBED ---------- */
.project-video {
  position: relative;
}

.project-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: none;
  border-radius: var(--project-image-radius);
}

/* ---------- TEXT BLOCKS BETWEEN IMAGES ---------- */
.project-text {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr;
  gap: 5rem;
  max-width: var(--project-max-width);
  margin: 0 auto var(--project-section-gap);
  padding: 0 var(--project-padding-x);
}

.project-text__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 575px;
  margin-left: auto;
}

.project-text__body--single {
  grid-template-columns: 1fr;
  max-width: none;
  margin-left: 0;
}

.project-text p {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.project-text p a {

  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  
}

.project-text p a:hover {
    text-decoration: underline;
  color: #0d00ff;
}






/* ---------- NEXT PROJECT NAV ---------- */
.project-next {
  max-width: var(--project-max-width);
  margin: 6rem auto 0;
  padding: 3rem var(--project-padding-x) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-to-top--inline {
  position: static;
  transform: none;
}

.project-next__link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.project-next__link--next {
  text-align: right;
}

.project-next__link:hover {
  opacity: 0.5;
}

.project-next__label {

  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.5);
}

.project-next__title {

  font-size: clamp(1.5rem, 4vw, 0.8rem);
  line-height: 1;
  color: #0a0a0a;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  :root {
    --project-padding-x: 1.25rem;
    --project-section-gap: 2.5rem;
  }

  .project-hero {
    height: 70vh;
  }

  .project-info,
  .project-text {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 3rem;
  }

  .project-meta {
    gap: 2rem;
  }

  /* on mobile the right-aligned text just sits in column 1 */
  .project-text--right p {
    grid-column: 1;
  }

  .project-image-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .project-image-row .project-image img {
    aspect-ratio: 4 / 3;
  }
}