.ai-gallery {
  h2 {
    margin: 0 0 24px 0;
    color: #181818;
    font-size: 75px;
    font-style: normal;
    font-weight: 700;
    line-height: 90%;
    letter-spacing: -2.25px;

    @media (max-width: 1280px) {
      font-size: 40px;
      font-style: normal;
      font-weight: 700;
      line-height: 100%;
      letter-spacing: -1.2px;
    }
  }

  .text {
    margin: 0 60% 24px 0;
    line-height: 150%;
    letter-spacing: -0.36px;

    @media (max-width: 1280px) {
      margin: 0 0 24px 0;
    }
  }

  .ai-gallery-wrapper {
    .ai-gallery {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 32px;

      @media (max-width: 1280px) {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
      }

      > a {
        position: relative;
        overflow: hidden;
        border-radius: 5px;
        transition: box-shadow 0.3s ease;

        /* The outline sits above the image instead of being a border, so
           fading it out on hover leaves no light gap around the image. */
        &::after {
          content: "";
          position: absolute;
          inset: 0;
          z-index: 1;
          border: 1px solid var(--c-gray-900);
          border-radius: inherit;
          pointer-events: none;
          transition: opacity 0.3s ease;
        }

        &:hover {
          box-shadow:
            52.6425px 64.8282px 33.1453px rgba(0, 0, 0, 0.01),
            29.7332px 36.5573px 28.271px rgba(0, 0, 0, 0.03),
            13.1606px 16.0852px 20.9595px rgba(0, 0, 0, 0.04),
            3.41201px 3.89944px 11.6983px rgba(0, 0, 0, 0.05);

          &::after {
            opacity: 0;
          }
        }

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          transition: transform 0.4s ease;
        }

        @media (hover: hover) {
          &:hover img {
            transform: scale(1.08);
          }
        }

        @media (prefers-reduced-motion: reduce) {
          img {
            transition: none;
          }
        }
      }
    }
  }
}

.partners-action {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 48px;
  button {
    padding: 10px 18px !important;
    font-family: var(--ff-secondary);
    font-size: 18px !important;
    font-weight: 700;
    color: #181818;
  }
}
