@import url("/wp/wp-content/themes/ryukyugobyo_2025/styles/components/filter.css");

.testimonials {
  padding: 4rem 1.35rem 8rem;
}

.testimonials__intro {
  text-align: center;
  margin: 4rem auto 0;
}

.pager {
  margin-top: 4.5rem;
}

.page-title {
  padding: 0;
}

.letter {
  margin: 4.7rem auto 0.3rem;
}

.letter__wrapper {
  margin: 2rem auto 0;
  padding: 0 1.4rem;
  max-width: 93.6rem;
}

.letter__image {
  width: 100%;
  max-width: 36rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 1rem;
}

.card__image__wrap {
  position: relative;
  aspect-ratio: 295 / 197;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.card__image__wrap img {
  border-radius: 0.8rem;
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  max-width: 100%;
  object-fit: cover;
  transform: translateY(0%) translateX(-50%);
}

body .wp-pagenavi {
  display: flex;
  justify-content: center;
  /* padding-top: 20px; */
  margin-top: 4rem;
  padding-bottom: 100px;
  align-items: center;
}

body .wp-pagenavi span.current {
  background-color: #db6a50;
  color: #fff;
  display: flex;
  width: 30px;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

body .wp-pagenavi a, body .wp-pagenavi span {
  font-size: 1.6rem;
  margin-right: 10px;
  border-radius: 100px;
  /* border: solid 1px #707070; */
  /* background-color: #fff; */
  border: solid 1px #707070;
}

body .wp-pagenavi a, body .wp-pagenavi span.current {
  border: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
}

body .wp-pagenavi a.previouspostslink {
  position: relative;
  background-image: url(/wp/wp-content/themes/ryukyugobyo_2025/images/common/pager-arrow.svg);
  display: block;
  width: 15px;
  height: 15px;
  text-indent: 100000px;
}

body .wp-pagenavi a.nextpostslink {
  position: relative;
  background-image: url(/wp/wp-content/themes/ryukyugobyo_2025/images/common/pager-arrow.svg);
  display: block;
  width: 15px;
  height: 15px;
  transform: rotate(180deg);
  left: 10px;
  text-indent: 100000px;
}

@media (min-width: 768px) {
  .testimonials {
    padding: 8rem 2rem;
  }

  .pager {
    margin-top: 6.5rem;
  }

  .filter {
    margin-top: 8rem;
  }

  .letter {
    margin: 6.7rem auto 1.3rem;
  }

  .letter__wrapper {
    margin: 6rem auto 0;
    padding: 0 2rem;
    box-sizing: content-box;
    display: flex;
    gap: 4.8rem;
  }

  .letter__image {
    min-width: 36rem;
  }

  @media (max-width: 1000px) {
    .letter__image {
      min-width: min(36rem, 36vw);
      height: fit-content;
    }
  }
}