.aoyea-component-project-showcase {
  position: relative;
  width: 100%;
  height: 796px;
  margin-top: 240px;
  overflow: hidden;
  background: var(--aoyea-color-page);
}

.aoyea-component-project-showcase .aoyea-project-showcase-intro {
  position: absolute;
  top: 233px;
  left: 50%;
  display: flex;
  width: min(var(--aoyea-content-width), calc(100% - 100px));
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  transform: translateX(-50%);
}

.aoyea-component-project-showcase .aoyea-project-showcase-intro p {
  width: 1081px;
  margin: 0;
  font-family: var(--aoyea-font-copy);
  font-size: 14px;
  line-height: 24px;
  text-align: justify;
}

.aoyea-component-project-showcase .aoyea-project-showcase-more {
  display: inline-flex;
  width: 118px;
  height: 46px;
  flex: 0 0 118px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-radius: 23px;
  background: var(--aoyea-color-brand);
  font-family: var(--aoyea-font-ui);
  font-size: 14px;
  font-weight: 500;
}

.aoyea-component-project-showcase .aoyea-project-showcase-more:hover img,
.aoyea-component-project-showcase .aoyea-project-showcase-more:focus-visible img {
  transform: rotate(45deg);
}

.aoyea-component-project-showcase .aoyea-project-showcase-more img {
  width: 9px;
  height: 9px;
  transition: transform 220ms ease;
}

.aoyea-component-project-showcase .aoyea-project-showcase-label {
  position: absolute;
  top: 367px;
  left: calc(50% - 329px);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.aoyea-component-project-showcase .aoyea-project-showcase-label h3,
.aoyea-component-project-showcase .aoyea-project-showcase-label p {
  margin: 0;
}

.aoyea-component-project-showcase .aoyea-project-showcase-label h3 {
  font-size: 36px;
  line-height: 52px;
}

.aoyea-component-project-showcase .aoyea-project-showcase-label p {
  color: var(--aoyea-color-muted);
  font-size: 20px;
}

.aoyea-component-project-showcase .aoyea-project-showcase-gallery {
  position: absolute;
  top: 419px;
  left: 0;
  width: 100%;
  height: 377px;
  overflow: hidden;
  touch-action: pan-y;
}

.aoyea-component-project-showcase .aoyea-project-showcase-track {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 2144px;
  height: 377px;
  grid-template-columns: repeat(3, 660px);
  gap: 82px;
  transform: translate3d(calc(50% - 1072px), 0, 0);
  transition: transform 650ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.aoyea-component-project-showcase .aoyea-project-showcase-slide {
  position: relative;
  width: 660px;
  height: 377px;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
}

.aoyea-component-project-showcase .aoyea-project-showcase-slide > img {
  width: 660px;
  height: 100%;
  object-fit: cover;
}

.aoyea-component-project-showcase .aoyea-project-showcase-slide--main > img {
  height: 440px;
  transform: translateY(-63px);
}

.aoyea-component-project-showcase .aoyea-project-showcase-slide figcaption {
  position: absolute;
  right: 20px;
  bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--aoyea-color-brand);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.aoyea-component-project-showcase .aoyea-project-showcase-slide figcaption strong {
  font-size: 52px;
  line-height: 55px;
}

.aoyea-component-project-showcase .aoyea-project-showcase-control {
  position: absolute;
  z-index: 2;
  top: auto;
  bottom: 135px;
  display: grid;
  width: 106px;
  height: 106px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 180ms ease;
}

.aoyea-component-project-showcase .aoyea-project-showcase-control:hover,
.aoyea-component-project-showcase .aoyea-project-showcase-control:focus-visible {
  transform: scale(1.06);
}

.aoyea-component-project-showcase .aoyea-project-showcase-control--prev {
  left: calc(50% - 380px);
}

.aoyea-component-project-showcase .aoyea-project-showcase-control--next {
  left: calc(50% + 278px);
}

.aoyea-component-project-showcase .aoyea-project-control-bg {
  position: absolute;
  inset: 0;
  width: 106px;
  height: 106px;
}

.aoyea-component-project-showcase .aoyea-project-control-arrow {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 27px;
}

.aoyea-component-project-showcase .aoyea-project-showcase-control--prev .aoyea-project-control-arrow {
  transform: scaleX(-1);
}

@media (max-width: 1024px) {
  .aoyea-component-project-showcase {
    height: auto;
    margin-top: 160px;
    padding-bottom: 20px;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-intro,
  .aoyea-component-project-showcase .aoyea-project-showcase-label,
  .aoyea-component-project-showcase .aoyea-project-showcase-gallery {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-intro {
    width: min(920px, calc(100% - 64px));
    margin: 72px auto 0;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-label {
    width: min(660px, calc(100% - 64px));
    margin: 42px auto 0;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-gallery {
    width: calc(100% + 260px);
    margin-top: 0;
    transform: translateX(-130px);
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-track {
    position: relative;
    left: auto;
    display: block;
    width: 100%;
    transform: none;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-slide {
    display: none;
    width: 100%;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-slide > img {
    width: 100%;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-slide.aoyea-project-showcase-slide--active {
    display: block;
  }
}

@media (max-width: 767px) {
  .aoyea-component-project-showcase {
    margin-top: 130px;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-intro {
    display: block;
    width: calc(100% - 40px);
    margin-top: 64px;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-intro p {
    width: 100%;
    text-align: left;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-more {
    margin-top: 22px;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-label {
    width: calc(100% - 40px);
    margin-top: 38px;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-label h3 {
    font-size: 30px;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-label p {
    font-size: 14px;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-gallery {
    width: calc(100% - 40px);
    height: 330px;
    display: block;
    margin: 0 auto;
    transform: none;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-track {
    height: 330px;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-slide {
    display: none;
    height: 330px;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-slide.aoyea-project-showcase-slide--active {
    display: block;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-slide--main > img {
    height: 385px;
    transform: translateY(-55px);
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-slide figcaption {
    right: 12px;
    font-size: 13px;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-slide figcaption strong {
    font-size: 34px;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-control {
    bottom: 112px;
    width: 62px;
    height: 62px;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-control--prev {
    left: -18px;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-control--next {
    right: -18px;
    left: auto;
  }

  .aoyea-component-project-showcase .aoyea-project-control-bg {
    width: 62px;
    height: 62px;
  }

  .aoyea-component-project-showcase .aoyea-project-control-arrow {
    width: 10px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aoyea-component-project-showcase .aoyea-project-showcase-more,
  .aoyea-component-project-showcase .aoyea-project-showcase-track {
    transition: none;
  }

  .aoyea-component-project-showcase .aoyea-project-showcase-control {
    transition: none;
  }
}
