/* Homepage testimonial phone composition. Desktop and tablet retain their existing layout. */
.world-testimonial__art picture,
.world-testimonial__foreground-picture {
  display: contents;
}

.world-testimonial__mobile-count,
.world-testimonial__mobile-controls,
.world-testimonial__mobile-world,
.world-testimonial__mobile-botanical,
.world-testimonial__mobile-ornament,
.world-testimonial__mobile-eyebrow,
.world-testimonial__mobile-title,
.world-testimonial__mobile-epigraph {
  display: none;
}

.world-testimonial__title > .world-testimonial__desktop-title {
  color: inherit;
  font-weight: inherit;
}

@media (min-width: 48.001rem) and (max-width: 64rem) {
  #testimonials {
    padding-top: 7rem;
    scroll-margin-top: 6.25rem;
  }
}

@media (max-width: 48rem) {
  #testimonials {
    min-height: 0;
    padding: 3.5rem 0 2.6rem;
    scroll-margin-top: 5.5rem;
  }

  #testimonials .world-testimonial__inner {
    width: calc(100% - 2rem);
  }

  #testimonials .world-testimonial__mobile-world,
  #testimonials .world-testimonial__mobile-botanical {
    display: block;
    position: absolute;
    z-index: 0;
    max-width: none;
    height: auto;
    pointer-events: none;
    user-select: none;
  }

  #testimonials .world-testimonial__mobile-world {
    top: -5rem;
    right: -13.5rem;
    width: clamp(24rem, 105vw, 31rem);
    opacity: .21;
    filter: grayscale(.78);
  }

  #testimonials .world-testimonial__mobile-botanical {
    bottom: -1.2rem;
    left: -3.8rem;
    width: clamp(11rem, 44vw, 15rem);
    opacity: .54;
    filter: grayscale(.72);
  }

  #testimonials .world-testimonial__mobile-ornament {
    display: flex;
    width: min(13rem, 58vw);
    margin: 0 0 .5rem .65rem;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1;
    align-items: center;
    gap: 1rem;
  }

  #testimonials .world-testimonial__mobile-ornament::before,
  #testimonials .world-testimonial__mobile-ornament::after {
    height: 1px;
    background: var(--gold);
    content: "";
    flex: 1;
  }

  #testimonials .world-testimonial__mobile-eyebrow {
    display: block;
    margin: 0 0 1.15rem .65rem;
    color: var(--charcoal);
    font-family: var(--font-interface);
    font-size: clamp(.65rem, 1.8vw, .76rem);
    font-weight: 600;
    letter-spacing: .25em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  #testimonials .world-testimonial__desktop-title {
    display: none;
  }

  #testimonials .world-testimonial__mobile-title {
    display: block;
    color: var(--green-deep);
    font-weight: 400;
  }

  #testimonials .world-testimonial__title {
    max-width: 40rem;
    margin: 0 .4rem 1.15rem;
    color: var(--green-deep);
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 8.1vw, 3.15rem);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: 1.06;
    text-align: left;
    text-transform: none;
  }

  #testimonials .world-testimonial__title::before,
  #testimonials .world-testimonial__title::after {
    display: none;
  }

  #testimonials .world-testimonial__art,
  #testimonials .world-testimonial__foreground,
  #testimonials .world-testimonial__atmosphere {
    display: none;
  }

  #testimonials .world-testimonial__composition {
    --testimonial-stage-min-height: 27rem;
    display: block;
    min-height: 0;
    padding-top: 1.9rem;
  }

  #testimonials .world-testimonial__slides {
    display: flex;
    min-height: var(--testimonial-stage-min-height);
    flex-direction: column;
    justify-content: center;
  }

  #testimonials .world-testimonial__slide {
    display: none;
    position: relative;
    width: calc(100% - 1.5rem);
    max-width: 37rem;
    min-height: 17rem;
    margin: 0 auto;
    padding: 2.65rem 2rem 2.2rem;
    opacity: 1;
    visibility: visible;
    isolation: isolate;
    transition: none;
  }

  #testimonials .world-testimonial__slide.is-active {
    display: block;
  }

  #testimonials .world-testimonial__slide::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 2rem solid transparent;
    border-image-source: url("../img/testimonials/testimonial-parchment.webp");
    border-image-slice: 28% 28% fill;
    border-image-repeat: stretch;
    content: "";
    pointer-events: none;
  }

  #testimonials .world-testimonial__quote-side {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    color: var(--charcoal);
    font-size: clamp(1.03rem, 1.5vw + .73rem, 1.16rem);
    line-height: 1.51;
  }

  #testimonials .world-testimonial__quote-side + .world-testimonial__quote-side {
    margin-top: .8rem;
  }

  #testimonials .world-testimonial__quote-side::after,
  #testimonials .world-testimonial__quote-side::before {
    display: none;
  }

  #testimonials .world-testimonial__slide[data-testimonial-layout="pair"] .world-testimonial__quote-side:not(.is-mobile-review) {
    display: none;
  }

  #testimonials .world-testimonial__quote-side footer {
    margin-top: 1.1rem;
  }

  #testimonials .world-testimonial__mobile-count {
    display: block;
    position: absolute;
    z-index: 6;
    top: 0;
    right: 1rem;
    margin: 0;
    color: var(--green-deep);
    font-family: var(--font-interface);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .16em;
  }

  #testimonials .world-testimonial__mobile-controls {
    display: contents;
  }

  #testimonials .world-testimonial__mobile-controls button {
    position: absolute;
    z-index: 8;
    top: calc(1.9rem + (var(--testimonial-stage-min-height) / 2));
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1.5px solid var(--green-deep);
    border-radius: 50%;
    background: color-mix(in srgb, var(--paper-pale) 94%, transparent);
    box-shadow: inset 0 0 0 1px rgba(255, 248, 222, .44), 0 .18rem .5rem rgba(42, 36, 29, .12);
    color: var(--green-deep);
    font-family: var(--font-interface);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    place-items: center;
  }

  #testimonials .world-testimonial__mobile-controls button:first-child { left: 0; }
  #testimonials .world-testimonial__mobile-controls button:last-child { right: 0; }

  #testimonials .world-testimonial__mobile-controls button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
  }

  #testimonials .world-testimonial__controls {
    display: none;
  }

  #testimonials .world-testimonial__mobile-epigraph {
    display: block;
    position: relative;
    width: min(58%, 17rem);
    margin: 1.2rem .45rem 0 auto;
    padding: 0 0 .65rem;
    color: var(--charcoal);
    text-align: right;
  }

  #testimonials .world-testimonial__mobile-epigraph p {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(.93rem, 3.3vw, 1.18rem);
    font-style: italic;
    line-height: 1.4;
  }

  #testimonials .world-testimonial__mobile-epigraph footer {
    margin-top: .8rem;
    font-family: var(--font-interface);
    font-size: .59rem;
    font-weight: 600;
    letter-spacing: .2em;
    line-height: 1.5;
  }

  #testimonials .world-testimonial__mobile-epigraph::after {
    display: block;
    width: 3rem;
    height: 1px;
    margin: .85rem 1rem 0 auto;
    background: var(--gold);
    content: "";
  }
}

@media (max-width: 25rem) {
  #testimonials .world-testimonial__composition {
    --testimonial-stage-min-height: 28rem;
  }
}

@media (max-width: 23rem) {
  #testimonials {
    padding-top: 2.8rem;
  }
  #testimonials .world-testimonial__mobile-world {
    top: -5rem;
    right: -14rem;
    opacity: .15;
  }
  #testimonials .world-testimonial__mobile-botanical {
    left: -4.8rem;
    opacity: .43;
  }
  #testimonials .world-testimonial__mobile-epigraph {
    width: 60%;
  }
  #testimonials .world-testimonial__composition {
    --testimonial-stage-min-height: 29rem;
  }
  #testimonials .world-testimonial__slide {
    width: calc(100% - 1rem);
    padding-inline: 1.55rem;
  }

  #testimonials .world-testimonial__mobile-controls button:first-child { left: -1rem; }
  #testimonials .world-testimonial__mobile-controls button:last-child { right: -1rem; }
}
