.project-page{
  max-width: 980px;
  margin: 0 auto;
  padding-top: clamp(14px, 2vw, 22px);
}

.project-hero,
.project-body{
  border: 2px solid #000;
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  box-shadow: 10px 10px 0 rgba(0,0,0,.10);
  padding: clamp(16px, 2.2vw, 22px);
}

.project-hero{
  margin-bottom: clamp(14px, 2vw, 22px);
}

.project-hero__title{
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.project-hero__lead{
  margin-top: 8px;
  line-height: 1.5;
  opacity: 0.9;
}

.project-body{
  line-height: 1.65;
}

.project-body h2, .project-body h3{
  margin-top: 1.2em;
}

.project-body img{
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 2px solid #000;
}

/* Back button section */
.project-back{
  margin-top: clamp(18px, 3vw, 28px); /* creates clear separation */
  display: flex;
  justify-content: flex-end;          /* move button to the right */
}

/* Make sure button doesn't collapse into content */
.project-back .btn{
  white-space: nowrap;
}

/* Cover image on project page (contained, no overflow) */
.project-hero__cover{
  margin-top: 14px;

  border: 2px solid #000;
  border-radius: 14px;
  overflow: hidden;

  /* keep it reasonable on big photos */
  max-height: 340px;
}

.project-hero__coverimg{
  width: 100%;
  height: 340px;      /* matches max-height */
  object-fit: cover;  /* crop instead of overflow */
  display: block;
}
