@charset "utf-8";

.p-slide {
  overflow: visible;

  .p-slide__wrapper {
    display: flex;
    width: max-content;
  }

  .p-slide__items {
    display: flex;
    align-items: start;
    animation: infinity-scroll 50s linear infinite both;
  }

  .p-slide-item {
    margin-right: 47px;

    @media (width < 768px) {
      margin-right: 12px;
    }

    img {
      width: 354px;
      aspect-ratio: 1;
      border-radius: 5px;
      object-fit: cover;

      @media (width < 768px) {
        width: 210px;
      }
    }

    p {
      margin-top: 22px;
      font-size: 18px;
      line-height: 1.11;
      letter-spacing: 0.08em;

      @media (width < 768px) {
        margin-top: 10px;
        font-size: 14px;
      }
    }
  }

  .p-slide-item:nth-of-type(even) {
    margin-top: 50px;
  }
}

@keyframes infinity-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.gjs-dashed *[data-highlightable] .p-slide {
  .p-slide__wrapper {
    width: 100%;
    flex-direction: column;
  }

  .p-slide__items {
    animation: none;
    flex-wrap: wrap;
  }

  .p-slide-item {
    width: 22%;
    height: auto;
    margin-right: 24px;
  }

  .p-slide-item.is-hidden {
    display: none;
  }
}
