:root {
  --width: 1000px;
  --grid-layout: calc(var(--width) / 9 * 4) calc(var(--width) / 9) calc(var(--width) / 9 * 4);
  
  --head-img-height: 32vw;
  --font-size: 1em;

  --screen-mobile-width: 800px;
}

.about-container {
  background-color: #D8FFF3;
  width: 100%;
  padding-bottom: 30px;
}

.about-container .header {
  width: 100%;
  height: var(--head-img-height);
  background-color:black;
}
.about-container .header img {
  width: 100%;
  position: absolute;
  display: block;
  z-index: 1;
  height: inherit;
  opacity:.75;
}
.about-container .header:not(.loaded) h3 {
  position: relative;
  line-height: 1;
  margin: 0;
  z-index: 2;
  color: white;

  text-align: center;
  vertical-align: middle;
  font-size: 10vw;

  padding-top: calc(-1 * var(--head-img-height) - 10vw );
  opacity: 0;
}
.about-container .header:is(.loaded) h3 {
  position: relative;
  line-height: 1;
  margin: 0;
  z-index: 2;
  color: white;

  text-align: center;
  vertical-align: middle;
  padding-top: 9.2vw;
  font-size: 10vw;
  transition: .5s ease-in-out;
  opacity: 1;
}

.about {
  display: grid;
  width: var(--width);
  grid-template-columns: var(--grid-layout);
  gap: 20px 0px;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
}
#about-header {
  grid-column: 1 / span 3;
  margin: 30px 0;
  padding: 0;
  line-height: 1;

  font-size: 60px;
  font-weight: 300;
}
.about p {
  font-size: var(--font-size);
  text-align: left;
  margin: auto 0;
  grid-column: span 2;
  z-index: 2;
}
.about img {
  max-width: 80%;
  display: block;
  margin: 0 auto;

  border-radius: 10px;
}
.about span.end {
  grid-column: 1 / span 3;
  font-size: var(--font-size);
  width: fit-content;
  margin: 0 auto;
}
.about p, .about span {
  padding: 20px;
  background-color: #b5ffe8;
  border-radius: 10px;
}

@media only screen and (min-width: 701px) {
  .about img {
    grid-column: 1;
    z-index: 1;
  }
  .about img:not(.oddball) {
    margin-top: -30px;
  }
  #fats {
    margin-top: -60px;
  }
  #lye {
    grid-column: 3;
    grid-row: 2;
    margin-bottom: -50px;
    transform: translate(0, 20px);
  }
  #color {
    grid-column: 3;
    grid-row: 4;
    transform: translate(0, 200px);
  }
  #cutting {
    grid-column: 3;
    grid-row: 6;
    margin-bottom: -100px;
    transform: translate(0, 210px);
  }
}

@media only screen and (max-width: 1100px) and (min-width: 701px) {
  :root {
    --width: 95%; 
    --grid-layout: calc(var(--width) * .475) calc(var(--width) * .05) calc(var(--width) * .475);
  }

  .about {
    grid-template-columns: var(--grid-layout);
    column-gap: -30px;
  }
  .about img {
    grid-column: 3;
    z-index: 1;
    margin: auto;
    padding: auto 0;
    line-height: 1;
  }

  .about img:not(.oddball) {
    margin-top: 0;
    margin-left: -10px;
  }
  .about img.oddball {
    margin-right: -10px;
  }
  #fats {
    margin-top: 0;
  }
  #lye {
    grid-column: 1;
    grid-row: 3;
    margin-bottom: 0;
    transform: translate(0);
  }
  #color {
    grid-column: 1;
    grid-row: 5;
    transform: translate(0);
  }
  #cutting {
    grid-column: 1;
    grid-row: 7;
    margin-bottom: 0;
    transform: translate(0);
  }
  #curing {
    margin-top: 8%;
    margin-bottom: 0;
  }
}

@media only screen and (max-width: 700px) {
  :root {
    --width: 95%; 
    --grid-layout: var(--width);

    --font-size: 1.2em;
  }

  .about {
    grid-template-columns: var(--grid-layout);
    gap: 0;
  }
  #about-header {
    grid-column: 1;
    margin-bottom: 0;
  }
  .about p {
    grid-column: span 1;
    margin: 40px 0 0;
    padding: 10px;
  }
  .about img {
    margin: 0px auto 0;
    width: 93%;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    padding: 0;
    transform: translate(0, -10px);
  }
  .about span.end {
    grid-column: 1;
    padding: 10px;
    margin-top: 40px;
  }
}