:root {
  --project-page-max-width: 1200px;
  --project-page-target-width: 80%;
}

h1 {
  font-family: "Kalnia-Bold", serif;
  color: var(--stylised-text-dark);
  letter-spacing: 0.2rem;
  font-size: 2.5rem;
  max-width: var(--project-page-target-width);
} 

h4 {
  font-family: "Kalnia", serif;
  color: var(--stylised-text-dark);
  letter-spacing: 0.1rem;
  font-size: 1.5rem;
  margin: 0;
} 

.project-image-text {
  max-width: var(--project-page-max-width);
  width: var(--project-page-target-width);
  display: grid;
  grid-template-columns: 70% 30%;
  place-items: center;
  padding: 0.5rem;
}

.project-image-text-even {
  grid-template-columns: 50% 50%;
}

@media(width <= 1200px) {
  .project-image-text {
    grid-template-columns: 50% 50%;
  }
}

@media(width <= 750px) {
  .project-image-text {
    grid-template-columns: 100%;
  }
}

.project-image-text img {
  width: 0;
  height:0;
  min-height: 100%;
  min-width: 100%;
  object-fit: cover;
  object-position: bottom left;
  justify-self: end;
}

@media(width <= 750px) {
  .project-image-text img {
    height: auto;
    min-height: auto;
    width: 100%;
  }
}

.project-text {
  width: 90%;
  justify-self: start;
}

@media(width <= 750px) {
  .project-text {
    width: 100%;
  }
}

.project-image {
  max-width: var(--project-page-max-width);
  width: var(--project-page-target-width);
  display: grid;
  place-items: center;

  padding: 0.5rem;
}

.project-image img {
  width: 100%;
}

