.CollectionThumbnail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  height: 100%;
  position: relative;

  .CollectionThumbnail--image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    width: 100%;

    img {
      transition: scale 1s var(--gygi-curve);
    }

    .CollectionThumbnail--overlay {
      position: absolute;
      z-index: 1;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: rgba(0, 0, 0, 0.3);
      transition: background-color 1s var(--gygi-curve);

      .CollectionThumbnail--overlay-text {
        color: var(--white);
        opacity: 0;
        transition: opacity 0.6s var(--gygi-curve);
        position: relative;

        &::after {
          content: "";
          display: block;
          position: absolute;
          top: 100%;
          width: 0;
          height: 1px;
          background-color: var(--white);
          transition: width 1s var(--gygi-curve);
        }
      }
    }

    &:hover {
      img {
        scale: 1.02;
      }

      .CollectionThumbnail--overlay {
        background-color: rgba(0, 0, 0, 0.45);
      }

      .CollectionThumbnail--overlay-text {
        opacity: 1;

        &::after {
          width: 100%;
        }
      }
    }
  }

  .CollectionThumbnail--infos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 1rem;
    z-index: 5;
    pointer-events: none;
  }

  .CollectionThumbnail--title {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--white);
    font-family: var(--title-font);
  }

  &:has(.CollectionThumbnail--title:hover) {
    .CollectionThumbnail--image {
      img {
        scale: 1.02;
      }

      .CollectionThumbnail--overlay {
        background-color: rgba(0, 0, 0, 0.45);
      }

      .CollectionThumbnail--overlay-text {
        opacity: 1;

        &::after {
          width: 100%;
        }
      }
    }
  }
}


.Main_Search_Section {
  .Search--title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  .Search_Results {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .Search_Result_Item {
    width: calc(25% - 3rem / 4);
  }

  .Pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    font-size: 1.2rem;

    a {
      color: var(--green);
    }
  }

  @media screen and (max-width: 768px) {
    .Search_Result_Item {
      width: 100%;
    }
  }
}
