#reviews .cq-review:has(img.is-portrait) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 48%);
  grid-template-areas: "mark ." "quote photo" "more photo" "details photo";
  grid-template-rows: auto auto auto 1fr;
  column-gap: clamp(14px, 2vw, 26px);
}
#reviews .cq-review > .cq-quote-mark { grid-area: mark; }
#reviews .cq-review > blockquote { grid-area: quote; min-width: 0; }
#reviews .cq-review > .tt-review-read-more { grid-area: more; }
#reviews .cq-review > .cq-metadata { grid-area: details; }
#reviews .cq-review:has(img.is-portrait) > figure {
  grid-area: photo;
  align-self: start;
  margin: 0;
}
#reviews .cq-review:has(img.is-portrait) > figure button {
  height: auto;
  background: transparent;
}
#reviews .cq-review:has(img.is-portrait) > figure img {
  height: auto;
  max-height: 380px;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 14px;
}
#reviews .cq-review > .tt-review-photo img {
  border-radius: 14px;
  outline: 1px solid #b5b7b9;
  outline-offset: -1px;
}
@media (max-width: 650px) {
  #reviews .cq-review:has(img.is-portrait) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "mark" "quote" "more" "photo" "details";
    row-gap: 8px;
  }
  #reviews .cq-review:has(img.is-portrait) > figure {
    width: min(100%, 240px);
    justify-self: center;
  }
  #reviews .cq-review:has(img.is-portrait) > figure button {
    aspect-ratio: auto;
  }
  #reviews .cq-review:has(img.is-portrait) > figure img {
    max-height: 300px;
  }
  #reviews .cq-review:has(img.is-portrait) > .cq-metadata {
    align-self: center;
    margin: 0;
    flex-wrap: wrap;
  }
}

/* The excerpt and its action occupy the same space on every slide. */
#reviews .cq-review > blockquote {
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.65;
  min-block-size: 5lh;
}
#reviews .cq-review > .tt-review-read-more {
  min-block-size: 32px;
}
#review-text-dialog {
  background: linear-gradient(145deg, #56585a, #414345 34%, #292b2d 78%, #303234);
  color: #fff8ee;
  border: 1px solid #65686a;
  border-radius: 24px;
  padding: clamp(20px, 4vw, 40px);
}
#review-text-dialog .tt-review {
  background: transparent;
  color: inherit;
}
#review-text-dialog :is(h2,h3,.tt-review-body) {
  color: #fff8ee;
}
#review-text-dialog :is(time,.tt-review-service) {
  color: #e7d7c9;
}
#review-text-dialog .review-close {
  color: #fff8ee;
  background: #333537;
  border: 1px solid #87898a;
  border-radius: 50%;
}
#review-text-dialog .tt-review-photo button {
  border-radius: 14px;
}
#reviews .cq-review .tt-review-body.is-preview {
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.65;
  -webkit-line-clamp: 5;
  line-clamp: 5;
}
#reviews .cq-review[inert] .tt-review-read-more {
  opacity: 0;
}
#review-text-dialog .review-close {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  line-height: 1;
}
#review-text-dialog[open] {
  display: grid;
  grid-template: auto minmax(0, 1fr) / minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  height: min(720px, calc(100dvh - 24px));
  overflow: hidden;
}
#review-text-dialog h2 { grid-area: 1 / 1; margin: 0; }
#review-text-dialog .review-close { grid-area: 1 / 2; }
#review-text-content { grid-column: 1 / -1; height: 100%; min-height: 0; }
#review-text-content .tt-review {
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
}
#review-text-content .tt-review:has(figure) {
  grid-template-rows: minmax(0, 1fr) 45%;
}
#review-text-content .tt-review-copy {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
#review-text-content .tt-review-body {
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
}
#review-text-content .tt-review-photo,
#review-text-content .tt-review-photo button {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  background: transparent;
}
#review-text-content .tt-review-photo button {
  display: flex;
  align-items: center;
  justify-content: center;
}
#review-text-content .tt-review-photo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
  outline: 1px solid #b5b7b9;
  outline-offset: -1px;
}
@media (min-width: 651px) {
  #review-text-content .tt-review:has(img.is-portrait) {
    grid-template: minmax(0, 1fr) / minmax(0, 1fr) minmax(0, 48%);
  }
}

#review-text-content .tt-review-body {
  scrollbar-color: #ec775d #343638;
  scrollbar-width: auto;
}
#review-text-content .tt-review-body::-webkit-scrollbar { width: 9px; }
#review-text-content .tt-review-body::-webkit-scrollbar-track { background: #343638; }
#review-text-content .tt-review-body::-webkit-scrollbar-thumb { background: #ec775d; border-radius: 10px; }
.review-scroll-hint { flex: none; color: #fff8ee; font-size: 14px; padding-block-start: 6px; }
