/* ==========================================================================
   Residential / Testimonials: "Real Stories from Clean Air Zone Members." (Framer "Testimonials")
   One root with the shared heading and one Framer Carousel per breakpoint:
     .nf-res-testimonials__car--d  desktop  640px hover cards (Elodie / Antoine / Rene - ID Eng - Desktop)
     .nf-res-testimonials__car--t  tablet   image link + black quote panel, pill opens the video popup
     .nf-res-testimonials__car--p  phone    whole card is the link
   Sizes, gaps, paddings, radii and overflow copied from the Framer CSS and checked against live boxes.
   ========================================================================== */

/* Inter 500 (latin), same file the live site serves; used by the tablet and phone quotes */
@font-face { font-family: Inter; src: url("../../../assets/fonts/inter-500-latin.woff2") format("woff2"); font-display: swap; font-style: normal; font-weight: 500; unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Shared (all breakpoints) ---------- */
.nf-res-testimonials {
  /* Framer appear springs, sampled per frame on live (opacity and y use the same progress):
     a: titles, quotes, pill labels (~0.45s); b: names (~0.52s); c: pills (~0.82s, 1.5% overshoot on y) */
  --nf-rt-ease-a: linear(0, 0.016 3.6%, 0.068 7.1%, 0.145 10.9%, 0.235 14.4%, 0.334 18.4%, 0.418 21.8%, 0.503 25.6%, 0.6 30.7%, 0.666 34%, 0.793 42.2%, 0.852 47.8%, 0.909 55.3%, 0.947 62.7%, 0.971 70.2%, 0.985 77.6%, 0.994 84.9%, 0.998 92.2%, 1);
  --nf-rt-ease-b: linear(0, 0.007 2.9%, 0.124 10%, 0.163 11.7%, 0.236 14.8%, 0.317 18.3%, 0.393 21.3%, 0.465 24.4%, 0.541 27.7%, 0.611 31.5%, 0.713 37.3%, 0.801 43.8%, 0.866 50.2%, 0.912 56.7%, 0.944 62.9%, 0.966 69.4%, 0.981 76.2%, 0.99 82.3%, 0.996 88.7%, 1);
  --nf-rt-ease-c: linear(0, 0.007 1.8%, 0.042 3.7%, 0.094 5.7%, 0.158 7.7%, 0.249 10.1%, 0.315 11.8%, 0.391 13.8%, 0.47 15.9%, 0.54 17.8%, 0.613 19.9%, 0.73 23.9%, 0.822 28.3%, 0.891 32.1%, 0.946 36.6%, 0.975 40.4%, 0.987 42.3%, 0.999 45.5%, 1.0077 48.4%, 1.0134 52.4%, 1.0151 56.5%, 1.0145 60.5%, 1.0127 64.6%, 1.0104 68.7%, 1.008 72.7%, 1.0058 76.8%, 1.0041 80.7%, 1.0025 85.6%, 1.0012 91.1%, 1.0006 95.1%, 1);
  /* Carousel arrow show/hide (opacity spring, ~0.72s) */
  --nf-rt-ease-arrow: linear(0, 0.0137 0.8%, 0.092 3.2%, 0.203 5.6%, 0.314 7.9%, 0.41 10.1%, 0.5 12.4%, 0.572 14.7%, 0.639 17.1%, 0.695 19.4%, 0.743 21.7%, 0.781 24%, 0.815 26.4%, 0.844 28.7%, 0.867 31%, 0.888 33.3%, 0.904 35.6%, 0.919 37.9%, 0.932 40.3%, 0.942 42.6%, 0.951 44.7%, 0.958 47.1%, 0.965 49.4%, 0.97 51.8%, 0.975 54.2%, 0.979 56.4%, 0.982 58.8%, 0.985 61%, 0.987 63.2%, 0.989 65.6%, 0.991 68.1%, 0.992 70.1%, 0.993 72.8%, 0.994 74.7%, 0.995 77.2%, 0.996 79.3%, 0.997 84.2%, 0.998 88.6%, 0.9989 93.3%, 1);
  --nf-rt-font-medium: "SF Pro Display Medium", "SF Pro Display Medium Placeholder", sans-serif;
  --nf-rt-font-regular: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", sans-serif;
  --nf-rt-font-sfns-medium: SFProText-Medium, "SF Pro Text", "Nafas Inter", sans-serif;

  position: relative; display: flex; flex-flow: column; justify-content: center; align-items: flex-start; gap: 40px;
  flex: 0 0 auto; width: 100%; height: min-content; padding: 80px 0; overflow: visible;
  background-color: var(--nf-white);
}

/* Heading */
.nf-res-testimonials__head {
  position: relative; display: flex; flex-flow: row; justify-content: center; align-items: center; gap: 10px;
  flex: 0 0 auto; width: 100%; max-width: 100%; height: min-content; padding: 0 0 0 60px; overflow: clip;
}
.nf-res-testimonials__title-box { position: relative; flex: 1 0 0; width: 1px; max-width: 100%; height: auto; }
.nf-res-testimonials__title {
  font-family: var(--nf-font-sfns-text); font-size: 52px; font-weight: 400; line-height: 1.2em; letter-spacing: normal;
  color: var(--nf-black); text-align: left; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
}

/* Framer appear effects: [data-nf-rt-appear] fades in once >= 50% of its height is in the viewport and it
   overlaps the carousel horizontally; "replay" ones fade out again below that (js/40-testimonials.js). */
[data-nf-rt-appear] { opacity: 0; transition: opacity var(--nf-rt-d, 450ms) var(--nf-rt-e, var(--nf-rt-ease-a)), transform var(--nf-rt-d, 450ms) var(--nf-rt-e, var(--nf-rt-ease-a)); }
[data-nf-rt-appear][data-nf-rt-y="8"] { transform: translateY(8px); }
[data-nf-rt-appear][data-nf-rt-y="-8"] { transform: translateY(-8px); }
[data-nf-rt-appear].is-in { opacity: 1; transform: none; }
[data-nf-rt-ease="a"] { --nf-rt-d: 450ms; --nf-rt-e: var(--nf-rt-ease-a); }
[data-nf-rt-ease="b"] { --nf-rt-d: 520ms; --nf-rt-e: var(--nf-rt-ease-b); }
[data-nf-rt-ease="c"] { --nf-rt-d: 820ms; --nf-rt-e: var(--nf-rt-ease-c); }
@keyframes nf-rt-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nf-rt-in-y8 { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes nf-rt-in-ym8 { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Carousel (Framer Carousel: native scroll-snap scroller + arrows + dots) */
.nf-res-testimonials__car { position: relative; z-index: 0; flex: 0 0 auto; width: 100%; height: 457px; }
.nf-res-testimonials__frame {
  position: relative; display: flex; width: 100%; height: 100%; padding: 0 0 32px 0; overflow: hidden;
}
.nf-res-testimonials__track {
  position: relative; display: flex; flex-direction: row; align-items: center; gap: 24px;
  flex: 1 1 100%; width: 100%; height: 100%; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; border-radius: 0;
}
@media (pointer: fine) {
  .nf-res-testimonials__track { scrollbar-width: none; }
  .nf-res-testimonials__track::-webkit-scrollbar { display: none; width: 0; height: 0; }
}
.nf-res-testimonials__slide { flex-shrink: 0; scroll-snap-align: center; }
.nf-res-testimonials__controls {
  position: absolute; inset: 0; display: flex; flex-direction: row; justify-content: space-between; align-items: center;
  min-width: 0; margin: 0; padding: 20px; border: 0; pointer-events: none;
}
.nf-res-testimonials__arrow {
  display: block; width: 40px; height: 40px; margin: 0; padding: 0; border-radius: 40px; overflow: hidden;
  background-color: rgba(0, 0, 0, 0.2); border: 0 none var(--nf-black); cursor: pointer; pointer-events: auto; opacity: 1;
  transition: opacity 0.72s var(--nf-rt-ease-arrow);
}
.nf-res-testimonials__arrow img { display: block; width: 40px; height: 40px; }
.nf-res-testimonials__arrow.is-hidden { opacity: 0; pointer-events: none; cursor: default; }
.nf-res-testimonials__dots {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  display: flex; flex-direction: row; justify-content: center; align-items: center; overflow: hidden;
  border-radius: 186px; background-color: rgba(0, 0, 0, 0); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); pointer-events: auto;
}
.nf-res-testimonials__dot { display: flex; justify-content: center; align-items: center; overflow: hidden; margin: 0; padding: 0 5px; background: transparent; cursor: pointer; }
.nf-res-testimonials__dot:first-child { padding: 0 5px 0 0; }
.nf-res-testimonials__dot:last-child { padding: 0 0 0 5px; }
.nf-res-testimonials__dot-mark { display: block; width: 8px; height: 8px; border-radius: 50%; background-color: var(--nf-grey-9e); opacity: 0.5; }
.nf-res-testimonials__dot.is-active .nf-res-testimonials__dot-mark { opacity: 1; }
.nf-res-testimonials__car.is-static .nf-res-testimonials__dots { display: none; }
/* invisible (0px) border colour as computed on live, so the compare matches */
.nf-res-testimonials__car.is-static .nf-res-testimonials__arrow--next { border-color: rgba(16, 16, 16, 0.3); }

/* "Watch Video" pill (all breakpoints) */
.nf-res-testimonials__pill {
  position: relative; z-index: 10; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 8px;
  flex: 0 0 auto; width: min-content; height: min-content; padding: 4px 8px; overflow: clip;
  border-radius: 99px; background-color: var(--nf-white); cursor: pointer;
}
.nf-res-testimonials__pill-icon { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.nf-res-testimonials__pill-icon svg { display: block; width: 100%; height: 100%; }
.nf-res-testimonials__pill-box { position: relative; flex: 0 0 auto; width: auto; height: auto; white-space: pre; }
.nf-res-testimonials__pill-text {
  font-family: var(--nf-rt-font-sfns-medium); font-size: 16px; font-weight: 500; line-height: 1.2em; letter-spacing: normal;
  color: var(--nf-black); text-align: left; white-space: pre;
}

/* Keyboard focus rings (not on live, added for accessibility) */
.nf-res-testimonials a:focus-visible,
.nf-res-testimonials__arrow:focus-visible,
.nf-res-testimonials__dot:focus-visible,
.nf-res-testimonials__pill:focus-visible { outline: 2px solid var(--nf-green); outline-offset: 2px; }

/* Tablet and desktop: the pill at the testimonial pages' "Watch Video" size (Danny 2026-10-30, not like live; live's
   was too small on desktop): 8px 16px padding, 20px icon, 20 / 24 SF Pro Text Medium with -0.6px tracking = 175 x 40. */
@media (min-width: 810px) {
  .nf-res-testimonials__pill { padding: 8px 16px; }
  .nf-res-testimonials__pill-icon { width: 20px; height: 20px; }
  .nf-res-testimonials__pill-text { font-size: 20px; line-height: 24px; letter-spacing: -0.6px; }
}

/* ---------- Desktop cards (>= 1440) ---------- */
.nf-res-testimonials__dpad {
  position: relative; display: flex; flex-flow: row; justify-content: center; align-items: center; gap: 10px;
  width: min-content; height: 399px; padding: 0; overflow: clip;
}
.nf-res-testimonials__dpad--l { padding: 0 0 0 60px; }
.nf-res-testimonials__dpad--r { width: 700px; padding: 0 60px 0 0; }
.nf-res-testimonials__dcard {
  position: relative; display: flex; flex-flow: row; justify-content: center; align-items: center; gap: 10px;
  flex: 0 0 auto; width: 640px; height: min-content; padding: 0; overflow: visible; cursor: pointer; text-decoration: none;
  color: rgb(0, 0, 238); /* Framer leaves the UA link colour on the card (only seen as currentColor) */
}
.nf-res-testimonials__dpad--r .nf-res-testimonials__dcard { flex: 1 0 0; width: 1px; }
/* Regions without Rene (qa-en, ae-en): Antoine's card is the last one, so it takes the end gutter (60 / 40 / 16px) */
.nf-res-testimonials__car--d .nf-res-testimonials__track > li:last-child:not([data-region-key]) { padding-right: 60px; }
.nf-res-testimonials__car--t .nf-res-testimonials__track > li:last-child:not([data-region-key]) { padding-right: 40px; }
.nf-res-testimonials__car--p .nf-res-testimonials__track > li:last-child:not([data-region-key]) { padding-right: 16px; }
.nf-res-testimonials__dbox {
  position: relative; display: flex; flex-flow: row; justify-content: center; align-items: center; gap: 10px;
  flex: 1 0 0; width: 1px; height: min-content; padding: 0; border-radius: 20px;
}
.nf-res-testimonials__dface {
  position: relative; display: flex; flex-flow: column; justify-content: flex-end; align-items: flex-start; gap: 10px;
  flex: 1 0 0; width: 1px; height: 399px; padding: 32px; border-radius: 20px;
}
.nf-res-testimonials__dimg { position: absolute; inset: 0; border-radius: 20px; }
.nf-res-testimonials__dimg img { display: block; width: 100%; height: 100%; border-radius: 20px; object-fit: cover; object-position: 100% 50%; }
.nf-res-testimonials__dtext {
  position: relative; display: flex; flex-flow: column; justify-content: center; align-items: flex-start; gap: 10px;
  flex: 0 0 auto; width: 100%; height: min-content;
}
.nf-res-testimonials__dtitle-box { position: relative; flex: 0 0 auto; width: 100%; height: auto; }
.nf-res-testimonials__dtitle-box--pre { width: auto; }
.nf-res-testimonials__dtitle {
  font-family: var(--nf-rt-font-medium); font-size: 44px; font-weight: 500; line-height: 1.2em; letter-spacing: -0.04em;
  color: var(--nf-white); text-align: left; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
}
.nf-res-testimonials__dtitle--pre { white-space: pre; }
.nf-res-testimonials__ddesc-wrap {
  position: relative; display: flex; flex-flow: column; justify-content: center; align-items: center; gap: 10px;
  flex: 0 0 auto; width: 100%; height: min-content;
}
.nf-res-testimonials__ddesc-box, .nf-res-testimonials__dname-box { position: relative; flex: 0 0 auto; width: 100%; height: auto; }
.nf-res-testimonials__ddesc {
  font-family: var(--nf-rt-font-medium); font-size: 30px; font-weight: 500; line-height: 1.2em; letter-spacing: normal;
  color: var(--nf-white); text-align: left; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
}
.nf-res-testimonials__drow {
  position: relative; z-index: 10; display: flex; flex-flow: row; justify-content: space-between; align-items: center;
  flex: 0 0 auto; width: 100%; height: min-content;
}
.nf-res-testimonials__drow .nf-res-testimonials__dname-box { flex: 1 0 0; width: 1px; }
.nf-res-testimonials__dquote { position: relative; flex: 0 0 auto; width: 100%; height: auto; }
.nf-res-testimonials__dquote-text {
  font-family: var(--nf-rt-font-regular); font-size: 24px; font-weight: 400; line-height: 1.25em; letter-spacing: 0.01em;
  color: var(--nf-white); text-align: left; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
}
.nf-res-testimonials__hover-only { display: none; }

/* Hover (Framer "hover" variant, switches instantly): image goes, card turns black, quote at the top,
   name + "Watch Video" pill at the bottom; the new layers play their appear springs on mount. */
@media (hover: hover) {
  .nf-res-testimonials__dcard:hover .nf-res-testimonials__dimg,
  .nf-res-testimonials__dcard:hover .nf-res-testimonials__rest-only { display: none; }
  .nf-res-testimonials__dcard:hover .nf-res-testimonials__dface { justify-content: space-between; gap: 0; background-color: var(--nf-black); }
  .nf-res-testimonials__dcard:hover .nf-res-testimonials__dquote { display: block; }
  .nf-res-testimonials__dcard:hover .nf-res-testimonials__drow { display: flex; }
}
[data-nf-rt-mount="a"] { animation: nf-rt-in 450ms var(--nf-rt-ease-a); }
[data-nf-rt-mount="a8"] { animation: nf-rt-in-y8 450ms var(--nf-rt-ease-a); }
[data-nf-rt-mount="b"] { animation: nf-rt-in 520ms var(--nf-rt-ease-b); }
[data-nf-rt-mount="c8"] { animation: nf-rt-in-ym8 820ms var(--nf-rt-ease-c); }
/* After a hover ends Framer remounts the rest layers, so they play their appear again */
.nf-res-testimonials__dcard.is-left [data-nf-rt-remount="a"].is-in { animation: nf-rt-in 450ms var(--nf-rt-ease-a); }
.nf-res-testimonials__dcard.is-left [data-nf-rt-remount="b"].is-in { animation: nf-rt-in 520ms var(--nf-rt-ease-b); }

/* ---------- Tablet cards (810 to 1439) ---------- */
.nf-res-testimonials__tcol {
  position: relative; display: flex; flex-flow: column; justify-content: center; align-items: center; gap: 0;
  height: min-content; padding: 0; overflow: clip;
}
.nf-res-testimonials__tcol--l { width: 385px; padding: 0 0 0 40px; }
.nf-res-testimonials__tcol--m { width: 345px; height: 476px; }
.nf-res-testimonials__tcol--r { width: 385px; height: 476px; padding: 0 40px 0 0; }
.nf-res-testimonials__tcard {
  position: relative; display: flex; flex-flow: column; justify-content: center; align-items: center; gap: 0;
  flex: 0 0 auto; width: 100%; height: 286px; padding: 0; text-decoration: none; color: rgb(0, 0, 238);
}
.nf-res-testimonials__timg {
  position: relative; z-index: 0; display: flex; flex-flow: column; justify-content: flex-start; align-items: flex-start; gap: 0;
  flex: 0 0 auto; width: 100%; height: min-content; padding: 0; overflow: clip; border-radius: 20px 20px 0 0;
}
.nf-res-testimonials__tface {
  position: relative; display: flex; flex-flow: column; justify-content: flex-end; align-items: flex-start; gap: 10px;
  flex: 0 0 auto; width: 100%; height: 286px; padding: 24px; border-radius: 20px 20px 0 0;
}
.nf-res-testimonials__tpic, .nf-res-testimonials__ppic { position: absolute; inset: 0; border-radius: inherit; }
.nf-res-testimonials__tpic img, .nf-res-testimonials__ppic img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: 50% 50%; }
.nf-res-testimonials__ttext, .nf-res-testimonials__ptext {
  position: relative; display: flex; flex-flow: column; justify-content: center; align-items: center; gap: 10px;
  flex: 0 0 auto; width: 100%; height: min-content; padding: 0;
}
.nf-res-testimonials__tbox { position: relative; flex: 0 0 auto; width: 100%; height: auto; }
.nf-res-testimonials__ttitle, .nf-res-testimonials__ptitle {
  font-family: var(--nf-rt-font-medium); font-size: 31px; font-weight: 500; line-height: 1.1em; letter-spacing: normal;
  color: var(--nf-white); text-align: left; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
}
.nf-res-testimonials__tdesc {
  font-family: var(--nf-rt-font-medium); font-size: 24px; font-weight: 500; line-height: 1.25em; letter-spacing: normal;
  color: var(--nf-white); text-align: left; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
}
.nf-res-testimonials__tpanel, .nf-res-testimonials__ppanel {
  position: relative; display: flex; flex-flow: column; justify-content: flex-start; align-items: flex-start; gap: 32px;
  flex: 0 0 auto; width: 100%; height: min-content; padding: 24px; overflow: visible;
  background-color: var(--nf-black); border-radius: 0 0 32px 32px;
}
.nf-res-testimonials__tpanel--fill { z-index: 10; flex: 1 0 0; height: 1px; }
.nf-res-testimonials__tquote-wrap {
  position: relative; display: flex; flex-flow: column; justify-content: center; align-items: center; gap: 10px;
  flex: 0 0 auto; width: 100%; height: min-content; padding: 0;
}
.nf-res-testimonials__tbox--fill { flex: 1 0 0; height: 1px; }
.nf-res-testimonials__quote {
  font-family: Inter, "Inter Placeholder", sans-serif; font-size: 16px; font-weight: 500; line-height: 1.3em; letter-spacing: -0.03em;
  color: var(--nf-white); text-align: left; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
}

/* ---------- Phone cards (<= 809) ---------- */
.nf-res-testimonials__pcard {
  position: relative; display: flex; flex-flow: column; justify-content: flex-start; align-items: flex-start; gap: 0;
  flex: 0 0 auto; width: 304px; height: min-content; padding: 0; border-radius: 20px 20px 0 0; cursor: pointer; text-decoration: none; color: rgb(0, 0, 238);
}
.nf-res-testimonials__pcard--l { width: 320px; padding: 0 0 0 16px; overflow: clip; }
.nf-res-testimonials__pcard--r { width: 320px; height: 445px; padding: 0 16px 0 0; overflow: clip; }
.nf-res-testimonials__pface {
  position: relative; display: flex; flex-flow: column; justify-content: flex-end; align-items: flex-start; gap: 10px;
  flex: 0 0 auto; width: 100%; height: 255px; padding: 24px;
}
.nf-res-testimonials__pface--round { border-radius: 20px 20px 0 0; }
.nf-res-testimonials__pface--tall { height: 256px; }
.nf-res-testimonials__ptext--fixed { height: 113px; }
.nf-res-testimonials__ptitle--s { font-size: 26px; }
.nf-res-testimonials__ptitle--sfns { font-family: var(--nf-rt-font-sfns-medium); line-height: 1.2em; }
.nf-res-testimonials__tdesc--sfns { font-family: var(--nf-font-sfns-text); font-weight: 400; line-height: 1.2em; }
.nf-res-testimonials__ppanel { z-index: 10; }
.nf-res-testimonials__ppanel--r20 { border-radius: 0 0 20px 20px; }

/* ---------- Video popup (tablet pills), portalled to <body> like Framer's overlay ---------- */
.nf-res-testimonials-modal__overlay { position: fixed; inset: 0; z-index: 10; background-color: rgba(0, 0, 0, 0.8); user-select: none; }
.nf-res-testimonials-modal__box {
  position: fixed; top: 50%; left: 50%; z-index: 10; transform: translate(-50%, -50%);
  width: 700px; height: auto; aspect-ratio: 1.78547 / 1;
}
.nf-res-testimonials-modal__box video { display: block; width: 100%; height: 100%; border-radius: 32px; object-fit: cover; cursor: auto; }

/* ==========================================================================
   Tablet: 810px to 1439.98px
   ========================================================================== */
@media (min-width: 810px) and (max-width: 1439.98px) {
  .nf-res-testimonials { padding: 60px 0; }
  .nf-res-testimonials__head { padding: 0 0 0 40px; }
  .nf-res-testimonials__title { font-size: 38px; }
  .nf-res-testimonials__car { height: 519px; }
  /* Two stories (regions without Rene, e.g. qa-en / ae-en): live shows a centred, level row: both 345px cards 24px
     apart, no 40px scroll gutter, the second card not raised */
  .nf-res-testimonials__track:not(:has(> li:nth-child(3))) { justify-content: center; }
  .nf-res-testimonials__track:not(:has(> li:nth-child(3))) .nf-res-testimonials__tcol--l { width: 345px; padding: 0; }
  .nf-res-testimonials__track:not(:has(> li:nth-child(3))) .nf-res-testimonials__tcol--m { height: 455.594px; }   /* = first column, so both sit level */
}

/* ==========================================================================
   Phone: <= 809.98px
   ========================================================================== */
@media (max-width: 809.98px) {
  .nf-res-testimonials { height: 672px; padding: 32px 0; }
  .nf-res-testimonials__head { padding: 0 16px; }
  .nf-res-testimonials__title { font-size: 28px; }
  .nf-res-testimonials__car { height: auto; }
  .nf-res-testimonials__track { gap: 20px; }
}

/* ---------- Fit the film player to the screen (Danny, 2026-10-19) ----------
   Phone: the full screen width minus a 16px margin each side. Every size: never taller than the visible screen (a
   short window or a phone held sideways still shows the whole film). Desktop / tablet keep their size when it fits.
   The vh line is the fallback for browsers without dvh. */
.nf-res-testimonials-modal__box { width: min(700px, calc(100vw - 32px), calc((100vh - 32px) * 1.78547)); width: min(700px, calc(100vw - 32px), calc((100dvh - 32px) * 1.78547)); height: auto; aspect-ratio: 1.78547 / 1; }
@media (min-width: 810px) and (max-width: 1439.98px) { .nf-res-testimonials-modal__box { width: min(700px, calc(100vw - 32px), calc((100vh - 32px) * 1.78547)); width: min(700px, calc(100vw - 32px), calc((100dvh - 32px) * 1.78547)); } }
@media (max-width: 809.98px) { .nf-res-testimonials-modal__box { width: min(calc(100vw - 32px), calc((100vh - 32px) * 1.78547)); width: min(calc(100vw - 32px), calc((100dvh - 32px) * 1.78547)); aspect-ratio: 1.78547 / 1; } }

/* ---------- Phone: Ayoub and Antoine cards match Elodie (Danny, 2026-11-03) ----------
   On iPhone the bottom edge of these two cards was cut off: their photo was 1px taller than Elodie's, so the card
   overflowed the carousel, which trims anything below its height. They now have Elodie's photo height and her 32px
   bottom corners (Rene gets the same corners too). The carousel also hides the grey scroll line iPhone drew across the bottom of the card. */
@media (max-width: 809.98px) {
  .nf-res-testimonials__pcard--m .nf-res-testimonials__pface--tall { height: 255px; }
  .nf-res-testimonials__car--p .nf-res-testimonials__ppanel--r20 { border-radius: 0 0 32px 32px; }   /* Ayoub, Antoine and Rene */
  .nf-res-testimonials__car--p .nf-res-testimonials__track { scrollbar-width: none; }
  .nf-res-testimonials__car--p .nf-res-testimonials__track::-webkit-scrollbar { display: none; width: 0; height: 0; }
}
