.review-track--rail {
  display: flex;
  align-items: stretch;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.review-track--rail > .review-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 72px) / 4);
  scroll-snap-align: start;
}

.review-track--rail .review-card__image {
  flex: 0 0 354px;
  width: 100%;
  height: 354px;
}

.review-track--rail .review-card__image img {
  position: absolute;
  inset: 0;
}

.review-track--rail .review-card--text {
  padding: 0;
  text-align: left;
  cursor: default;
}

.review-track--rail .project-testimonial__frame {
  box-sizing: border-box;
  height: 354px;
  flex: 0 0 354px;
  padding: 24px;
  overflow-y: auto;
  background: rgb(255 255 255 / 0.07);
  scrollbar-width: thin;
}

.review-track--rail .review-card__name,
.review-track--rail .project-testimonial cite {
  display: block;
  position: relative;
  z-index: 1;
  margin: -13px 10px 0;
  font-family: "Suisse Int", Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.review-navigation {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
.review-navigation[hidden] { display: none; }
.review-navigation button { width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; color: #fff; transition: background 180ms ease-out, color 180ms ease-out, opacity 180ms ease-out; }
.review-navigation button:disabled { opacity: .3; cursor: default; }
.review-navigation button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.review-navigation svg { width: 16px; height: 16px; }
.review-navigation [data-review-prev] svg { transform: rotate(180deg); }
@media (hover: hover) {
  .review-navigation button:not(:disabled):hover { background: #fff; color: var(--black); }
}
@media (max-width: 1100px) {
  .review-track--rail > .review-card { flex-basis: calc((100% - 48px) / 3); }
}
@media (max-width: 767px) {
  .review-track--rail { gap: 16px; }
  .review-track--rail > .review-card { flex-basis: 76vw; }
}

.review-track--rail .project-testimonial {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0;
  padding: 0;
  color: inherit;
}

.review-track--rail .project-testimonial__quote {
  display: block;
  width: 18px;
  height: 24px;
  flex-shrink: 0;
  margin-bottom: 20px;
  background: currentColor;
  font-size: 0;
  -webkit-mask: url(../icons/quote-reviews.svg) center / contain no-repeat;
  mask: url(../icons/quote-reviews.svg) center / contain no-repeat;
}

.review-track--rail .project-testimonial__body {
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.review-track--rail .project-testimonial__body p + p {
  margin-top: 16px;
}

.review-track--rail .project-testimonial__text {
  overflow: hidden;
}

.review-track--rail .project-testimonial__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 6px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.review-track--rail .project-testimonial__toggle span {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(255 255 255 / 0.4);
  transition: text-decoration-color 180ms ease-out;
}

.review-track--rail .project-testimonial__toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 240ms ease-out;
}

.review-track--rail .project-testimonial__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

@media (hover: hover) {
  .review-track--rail .project-testimonial__toggle:hover span {
    text-decoration-color: currentColor;
  }
}

.review-track--rail .project-testimonial__toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.review-track--rail .project-testimonial footer {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.4;
}

.review-track--rail .project-testimonial cite {
  font-style: normal;
  font-weight: 500;
}

.review-track--rail .project-testimonial footer span {
  display: block;
  margin-top: 10px;
  color: var(--mid-green);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .review-track--rail .project-testimonial__toggle svg,
  .review-track--rail .project-testimonial__toggle span {
    transition: none;
  }
}
