inner-wrapper {
  padding-block: var(--sp-80-40);
}

@media only screen and (width < 34.375rem) {
  .three-column-list .body-nav{
    padding: var(--sp-16) var(--sp-20);
    width: fit-content;
    height: fit-content;
    background-color: var(--main-tint-30);
    border-radius: var(--sp-4);
  }
}

.hero {
  container: hero / inline-size;
  position: relative;
  height: 100svh;
  color: var(--white);
  place-content: end;

  picture {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  inner-wrapper {
    padding-block: var(--sp-40);

    hgroup {
      max-width: var(--sp-913);
    }

    p {
      margin-block-start: var(--sp-12);
    }
  }
}

.about-us {
  container: about-us / inline-size;

  inner-wrapper {
    display: grid;
    grid-template-columns: 1fr var(--sp-680);
    grid-template-areas:
      "h2 h2"
      "h3 p"
      ". a"
      "video video";

    h2 {
      grid-area: h2;
    }

    h3 {
      grid-area: h3;
    }

    p {
      grid-area: p;
    }

    a {
      grid-area: a;
      max-width: var(--sp-447);
      margin-block-start: var(--sp-40);
    }

    video-wrapper {
      display: block;
      grid-area: video;
      position: relative;
      margin-block-start: var(--sp-60-40);

      iframe {
        width: 100%;
        aspect-ratio: 16 / 9;
        border: none;
        border-radius: var(--sp-12);
      }

      button {
        border: none;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 1;
        transition: 
          display var(--anime-func) calc(2 * var(--anime-time)) allow-discrete,
          opacity var(--anime-func) calc(2 * var(--anime-time));
        border-radius: var(--sp-12);

        img {
          border-radius: var(--sp-12);
        }

        &.hidden {
          display: none;
          opacity: 0;
        }
      }
    }

    @container (inline-size < 64rem) {
      grid-template-columns: 1fr;
      grid-template-areas:
        "h2"
        "h3"
        "p"
        "a"
        "video";

      h3 {
        margin-block-end: var(--sp-20);
      }

      video-wrapper {
        margin-block-start: var(--sp-40);
      }
    }
  }
}

.our-programs {
  container: our-programs / inline-size;

  inner-wrapper {
    >ul {
      li {
        img {
          grid-area: left
        }

        box-wrapper {
          grid-area: center;
        }

        a {
          grid-area: right;
          align-self: end;
        }
      }
    }
  }
}

.our-impact {
  container: out-impact / inline-size;

  ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
      "one two three ."
      ". four five six";
    gap: var(--sp-20);

    li {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: var(--sp-20);
      height: var(--sp-330);
      border-radius: var(--sp-8);

      &:nth-of-type(1),
      &:nth-of-type(3),
      &:nth-of-type(4),
      &:nth-of-type(6) {
        border: var(--border);
      }

      &:nth-of-type(1) {
        grid-area: one;
      }

      &:nth-of-type(2) {
        grid-area: two;
        background-color: var(--main-tint-8);
      }

      &:nth-of-type(3) {
        grid-area: three;
      }

      &:nth-of-type(4) {
        grid-area: four;
      }

      &:nth-of-type(5) {
        grid-area: five;
        background-color: var(--main-tint-30);
      }

      &:nth-of-type(6) {
        grid-area: six;
      }
    }

    @container (inline-size < 43.75rem) {
      grid-template-columns: 1fr;
      grid-template-areas:
        "one"
        "two"
        "three"
        "four"
        "five"
        "six";

      li {
        height: fit-content;

        data {
          margin-block-end: var(--sp-20);
        }

        &:nth-of-type(2),
        &:nth-of-type(5) {
          display: none;
        }
      }
    }
  }

  iframe {
    margin-block-start: var(--sp-40);
  }
}

.get-involved {
  container: get-involved / inline-size;

  inner-wrapper {
    hgroup {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--sp-20);
    }
  }
}

.meet-our-buddies {
  container: meet-our-buddies / inline-size;

  content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "h3 p1"
      ". p2";
    
    h3 {
      grid-area: h3;
      margin-block-end: var(--sp-20);
    }

    p {
      &:nth-of-type(1) {
        grid-area: p1;
      }

      &:nth-of-type(2) {
        grid-area: p2;
      }

      +p {
        margin-block-start: var(--sp-20);
      }
    }

    @container (inline-size < 56.25rem) {
      grid-template-columns: 1fr;
      grid-template-areas:
        "h3"
        "p1"
        "p2"
        "a";
    }
  }

  .right-arrow {
    margin-inline-start: auto;
    width: fit-content;
  }

  inner-wrapper > menu {
    display: flex;
    flex-direction: row;
    margin-block-start: var(--sp-60-40);
    gap: var(--sp-12);

    button {
      background-color: var(--white-shade-5);

      &.active {
        background-color: var(--main-tint-8);
        cursor: not-allowed;
      }
    }
  }

  testimonial-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "testimonial";
    margin-block-start: var(--sp-20);

    at-carousel {
      z-index: -1;
      transition: clip-path var(--anime-func) calc(2 * var(--anime-time));

      &:nth-of-type(1),
      &:nth-of-type(2) {
        grid-area: testimonial;
      }

      &:nth-of-type(1) {
        clip-path: inset(0 0 0 100%);
      }

      &:nth-of-type(2) {
        clip-path: inset(0 100% 0 0);
      }

      &.active {
        z-index: 0;
        clip-path: inset(0 0 0 0);
      }
    }
  }
}

.donate {
  container: donate / inline-size;

  content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "h3 p1"
      ". p2"
      ". p3"
      ". a";
    
    h3 {
      grid-area: h3;
      margin-block-end: var(--sp-20);
    }

    p {
      &:nth-of-type(1) {
        grid-area: p1;
      }

      &:nth-of-type(2) {
        grid-area: p2;
      }

      &:nth-of-type(3) {
        grid-area: p3;
      }
      +p {
        margin-block-start: var(--sp-20);
      }
    }
    
    a {
      grid-area: a;
      margin-block-start: var(--sp-40);
    }

    @container (inline-size < 56.25rem) {
      grid-template-columns: 1fr;
      grid-template-areas: 
        "h3"
        "p1"
        "p2"
        "p3"
        "a";
    }
  }
}

.our-partners {
  h2 {
    margin-block-end: var(--sp-20);
  }

  h3 {
    max-width: var(--sp-800);
  }
}