.eguitars-hero {
  background: color-mix(in srgb, var(--page-background), black 80%);
  padding-top: calc(var(--header-size) + 2rem);
  padding-bottom: 3rem;
  gap: 2rem;

  .__hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 26rem;
    object-fit: contain;
  }

  .__intro {
    display: grid;
    gap: 1.5rem;
    max-width: 90ch;
    margin-inline: auto;
    line-height: var(--line-height);
  }

  .__copy {
    display: grid;
    gap: 1rem;
    font-size: 1.125rem;

    @media (max-width: 640px) {
      font-size: 1rem;
    }
  }

  a {
    white-space: normal;
    text-decoration: underline;
    text-underline-offset: 0.25em;
  }
}

.eguitars-hero h1, .eguitars-history h2 {
  position: relative;
  padding-bottom: 1.25rem;

  &::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 4rem;
    height: 3px;
    border-radius: 1.5px;
    background: color-mix(in srgb, currentColor, transparent 50%);
  }
}

section.eguitars-models {
  min-height: 0;
  padding-bottom: 3rem;

  > .guitar-list--entry {
    min-width: 0;
  }

  > header {
    margin-bottom: 0;
    scroll-margin-top: var(--header-size);

    h2 img {
      display: block;
      width: 10rem;
      height: auto;
    }

    p {
      max-width: 90ch;
    }
  }
}

.eguitars-story {
  padding: 0;
  gap: 0;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--page-background), black 80%), var(--page-background));
}

.eguitars-history {
  display: grid;
  position: relative;
  padding: 2rem var(--page-padding);
  scroll-margin-top: var(--header-size);
  gap: 2rem;
  line-height: var(--line-height);

  &#eguitars-history + & {
    padding-top: 5rem;
  }

  &:has(.__workshop) {
    padding-bottom: 0;
  }

  &#eguitars-history {
    padding: 0;
    gap: 0;
    overflow: clip;

    h2 {
      position: absolute;
      z-index: 1;
      top: 6rem;
      left: var(--page-padding);
      right: var(--page-padding);
      text-shadow: 0 1px 4px black;
      pointer-events: none;
    }
  }

  h2, h3 {
    margin: 0;
  }

  video {
    display: block;
    position: static;
    z-index: auto;
    width: 100%;
    height: auto;
    min-height: 18rem;
    aspect-ratio: 3077/1080;
    object-fit: cover;
    border-radius: 0;
    background: black;
  }

  .__chapter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;

    > img {
      align-self: stretch;
      height: 0;
      min-height: 100%;
      object-fit: cover;
    }

    &:has(.__drawing) {
      align-items: start;
    }

    @media (max-width: 800px) {
      grid-template-columns: 1fr;
      gap: 1.5rem;

      > img {
        height: auto;
        min-height: 0;
      }
    }
  }

  img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
  }

  .__drawing {
    display: block;
    position: relative;
    justify-self: start;
    width: min(100%, 22rem);
    aspect-ratio: 822/1200;

    @media (max-width: 800px) {
      width: min(100%, 16rem);
    }

    img {
      position: absolute;
      left: 50%;
      top: 50%;
      width: calc(100% * 1200 / 822);
      transform: translate(-50%, -50%) rotate(-90deg);
    }

    &.--headstock {
      width: 100%;
      aspect-ratio: auto;

      img {
        position: static;
        width: 100%;
        transform: none;
      }
    }
  }

  .__text {
    display: grid;
    gap: 1.5rem;
    max-width: 65ch;
    font-size: 1.125rem;
    --line-height: 1.75;

    h3 {
      font-size: 1.5rem;
      line-height: 1.3;
    }

    > div {
      display: grid;
      gap: 1.25rem;
    }

    .__quote {
      border-left: 2px solid var(--c1);
      padding-left: 1.5rem;
    }

    @media (max-width: 640px) {
      font-size: 1rem;
    }
  }

  .__workshop {
    display: grid;
    grid-template-columns: 2fr 1fr;
    margin-top: 2rem;
    margin-inline: calc(-1 * var(--page-padding));

    img {
      height: 100%;
      object-fit: cover;
      border-radius: 0;
    }
  }
}
