/* Project pages (pages/*.html) and the shared page title used by 404.html */

.project__inner {
  position: relative;
  min-height: 685px;
  padding-top: 14px;
  padding-bottom: 40px;
}

.project__title {
  margin-left: 20px;
  font-size: 36px;
  line-height: 1.4;
}

.project__bar {
  --title-bar-width: 115px;
  margin: -9px 0 0 21px;
}

.project__body {
  display: grid;
  grid-template-columns: 410px 476px;
  column-gap: 57px;
  align-items: start;
  margin: 27px 0 0 20px;
}

/* Rendered line spacing of the original: 16 px by default, 24 px where Wix set 1.7em */
.project__text {
  --line: 1.23;
  font: 13px/var(--line) var(--font-mono);
  color: var(--color-dark);
}

.project__text--loose,
.project__para--loose {
  --line: 1.85;
}

.project__text p {
  margin-bottom: calc(var(--line) * 1em);
  line-height: var(--line);
}

.project__back {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 24px;
}

@media (min-width: 1340px) {
  .project__back {
    position: absolute;
    top: 87px;
    left: 981px;
    margin: 0;
  }
}

@media (max-width: 1019px) {
  .project__inner {
    min-height: 0;
  }

  .project__title,
  .project__body {
    margin-left: 0;
  }

  .project__bar {
    margin-left: 1px;
  }

  .project__body {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
  }

  .project__text {
    max-width: 640px;
  }

  .slideshow {
    width: 100%;
    max-width: 640px;
    height: auto;
    aspect-ratio: var(--slideshow-ratio, 476 / 378);
  }
}

@media (max-width: 599px) {
  .project__title {
    font-size: 26px;
  }

  .project__bar {
    margin-top: -6px;
  }
}
