/* Keep photos and their original credits together, including the standalone shortcode. */
.afaj-review-photos{display:block;width:100%;min-width:0;max-width:100%;margin:0}
.afaj-review-thumbs{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;width:100%;min-width:0}
.afaj-review-thumbs a{display:grid;place-items:center;min-width:0;max-width:100%;border-radius:10px;background:transparent;line-height:0;cursor:zoom-in}
.afaj-review-thumbs img{display:block;width:auto;height:auto;max-width:100%;max-height:min(58vh,420px);margin:0;object-fit:contain;border-radius:inherit}
.afaj-review-thumbs--multiple{grid-template-columns:repeat(2,minmax(0,1fr));max-width:404px;margin-inline:auto}
.afaj-review-thumbs--multiple img{width:100%;height:auto;max-height:none}
.afaj-review-thumbs a:focus-visible,.afaj-review-map:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.afaj-review-credit,.afaj-review-map{display:block;margin:.4rem 0 0;padding:0;color:#53616a;font:400 12px/1.4 system-ui,sans-serif;text-align:start}
.afaj-review-map{text-decoration:underline;text-underline-offset:.15em}
.afaj-review-contributions{margin:1rem auto 2rem;padding:0 clamp(1rem,3vw,2.4rem);max-width:74rem}
.afaj-review-contributions h2{font-size:clamp(1.4rem,3vw,2rem)}
.afaj-review-contribution-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:1rem}
.afaj-google-source .afaj-google-entry{display:flow-root;padding-block:1rem;border-top:1px solid #e1e5e5}
.afaj-google-source .afaj-review-photos{width:fit-content;max-width:100%;margin-top:.7rem}

/* Use the theme's actual cards and their existing controls, preserving links, ids and swipe. */
section.afl-google-reviews.afl-google-authentic{
 --af-review-ink:#18344a;--af-review-rule:#d7dfe0;
 position:relative;box-sizing:border-box;display:block;width:min(100%,1120px);min-width:0;
 max-width:1120px;margin:clamp(24px,4vw,64px) auto;padding:0;color:var(--af-review-ink)
}
.afl-google-authentic .afl-review-heading{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:5px 18px;max-width:none;margin:0 0 12px;padding:0 254px 0 0}
.afl-google-authentic .afl-review-heading .afl-google-brand{flex:0 0 100%;gap:7px;font:600 12px/1.4 system-ui,sans-serif;color:#53616a}
.afl-google-authentic .afl-review-heading .afl-google-g{width:17px;height:17px;margin:0}
.afl-google-authentic .afl-review-heading h2{margin:0;padding:0;color:var(--af-review-ink);font-size:clamp(26px,3.1vw,42px);line-height:1.1;text-wrap:balance}
.afl-google-authentic .afl-review-heading .afl-google-intro,.afl-google-authentic .afl-review-card>.afl-review-provider,.afl-google-authentic .afl-review-source>.afl-google-g{display:none}
.afl-google-authentic .afl-review-heading .afl-google-all{display:inline-flex;gap:5px;min-height:38px;margin:0;padding:0;color:var(--af-review-ink);font:550 13px/1.35 system-ui,sans-serif;text-decoration:underline;text-decoration-color:#a7b8bf;text-underline-offset:3px}
.afl-google-authentic .afl-review-heading .afl-google-all svg{width:15px;height:15px}
.afl-google-authentic .afl-review-slider{display:flex;flex-direction:column;position:static;min-width:0}
.afl-google-authentic .afl-review-slider .afl-review-controls{position:absolute;inset:16px 0 auto auto;margin:0;gap:6px;z-index:1}
.afl-google-authentic .afl-review-controls button{min-width:42px;min-height:42px;padding:8px;border-radius:50%;border:1px solid var(--af-review-rule);color:var(--af-review-ink);background:#fff}
.afl-google-authentic .afl-review-controls button[data-review-pause]{border:0;border-radius:6px;padding-inline:7px}
.afl-google-authentic .afl-review-controls .afl-review-counter{font:500 12px/1.3 system-ui,sans-serif;color:#53616a;min-width:38px;margin:0;text-align:center;font-variant-numeric:tabular-nums}
.afl-google-authentic .afl-review-slider .afl-review-track{display:flex;align-items:flex-start;min-height:0;height:var(--afaj-review-height,auto);overflow-y:hidden;overflow-x:auto;border:0;border-radius:14px;scroll-snap-type:x mandatory}
.afl-google-authentic .afl-review-track>.afl-review-card{
 box-sizing:border-box;flex:0 0 100%;width:100%;display:grid;grid-template-columns:minmax(0,1fr);align-self:flex-start;align-items:start;align-content:start;gap:9px;
 margin:0;min-height:0;height:auto;padding:clamp(16px,2.2vw,26px);
 border:1px solid var(--af-review-rule);border-radius:14px;background:#fafbf9;box-shadow:none
}
.afl-google-authentic .afl-review-card>.afl-review-source,.afl-google-authentic .afl-review-card>.afl-review-stars,
.afl-google-authentic .afl-review-card>.afaj-review-photos,.afl-google-authentic .afl-review-card>.afaj-review-map{margin:0;min-width:0}
.afl-google-authentic .afl-review-card>.afl-review-stars{align-items:center;gap:1px;color:#f4ae16}
.afl-google-authentic .afl-review-card>.afl-review-stars svg{width:16px;height:16px}
.afl-google-authentic .afl-review-person .afl-review-initials{width:37px;height:37px;flex:0 0 37px}
.afl-google-authentic .afl-review-track>.afl-review-card>blockquote,.afaj-google-source .afaj-google-entry>blockquote:not([hidden]){display:block;max-width:65ch;max-height:none;overflow:visible;margin:.3rem 0 .45rem;padding:0 0 0 .85rem;border:0;border-inline-start:3px solid #ae8751;color:#18344a;font:500 clamp(17px,1.35vw,20px)/1.55 AFLumiere,system-ui,sans-serif;overflow-wrap:anywhere}
.afaj-review-text-notice{font:400 14px/1.5 AFLumiere,system-ui,sans-serif;color:#475864;margin:0}.afaj-review-text-notice a{color:#234660;text-decoration:underline;text-underline-offset:.16em}
.afl-google-authentic .afl-review-card>figure{width:fit-content;max-width:100%;margin:0}
.afl-google-authentic .afl-review-card .afaj-review-credit{margin:.35rem 0 0}
/* A two-column editorial card on wider screens. The image spans the content;
   the last flexible row absorbs any residual height beneath the quote, never below the photo. */
@media(min-width:741px){
 .afl-google-authentic .afl-review-card:has(>.afaj-review-photos),.afl-google-authentic .afl-review-card.afaj-card-with-photo{
  grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);grid-template-rows:auto auto 1fr;column-gap:clamp(20px,3.6vw,54px)
 }
 .afl-google-authentic .afl-review-card.afaj-card-portrait{grid-template-columns:minmax(0,1fr) minmax(185px,.69fr)}
 .afl-google-authentic .afl-review-card:has(>figure)>:not(figure),.afl-google-authentic .afl-review-card.afaj-card-with-photo>:not(figure){grid-column:1}
 .afl-google-authentic .afl-review-card>figure.afaj-review-photos{grid-column:2;grid-row:1 / span 4;justify-self:center;align-self:start}
 .afl-google-authentic .afl-review-card:has(>figure)>.afl-review-source,.afl-google-authentic .afl-review-card.afaj-card-with-photo>.afl-review-source{grid-row:1}
 .afl-google-authentic .afl-review-card:has(>figure)>.afl-review-stars,.afl-google-authentic .afl-review-card.afaj-card-with-photo>.afl-review-stars{grid-row:2}
 .afl-google-authentic .afl-review-card:has(>figure)>blockquote,.afl-google-authentic .afl-review-card.afaj-card-with-photo>blockquote{grid-row:3}
}
@media(max-width:1200px){.af-product section.afl-google-reviews.afl-google-authentic{width:calc(100% - 40px)}}
@media(max-width:740px){
 section.afl-google-reviews.afl-google-authentic{margin-block:clamp(18px,5vw,32px)}
 .afl-google-authentic .afl-review-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;padding:0;margin:0 0 8px}
 .afl-google-authentic .afl-review-heading .afl-google-brand{grid-column:1/-1}
 .afl-google-authentic .afl-review-heading h2{font-size:clamp(23px,5.4vw,32px)}
 .afl-google-authentic .afl-review-heading .afl-google-all{min-height:32px;font-size:12px}
 .afl-google-authentic .afl-review-slider .afl-review-controls{position:static;order:-1;align-self:flex-end;margin:0 0 6px;gap:5px}
 .afl-google-authentic .afl-review-card>figure{justify-self:center;order:3}
 .afl-google-authentic .afl-review-card>.afl-review-source{order:0}
 .afl-google-authentic .afl-review-card>.afl-review-stars{order:1}
 .afl-google-authentic .afl-review-card>blockquote,.afl-google-authentic .afl-review-card>.afaj-review-text-notice{order:2}
 .afl-google-authentic .afl-review-card>.afaj-review-credit{order:2}
 .afl-google-authentic .afl-review-card>.afaj-review-map{order:4}
 .afaj-review-thumbs img{max-height:min(58vh,390px)}
 .afaj-review-thumbs--multiple img{max-height:none}
}
@media(max-width:390px){.afl-google-authentic .afl-review-heading{grid-template-columns:1fr}.afl-google-authentic .afl-review-heading .afl-google-all{justify-self:start}}
/* For reviews with no verified wording put identity, note and source above a centered photo. */
@media(min-width:741px){
 .afl-google-authentic .afl-review-track>.afl-review-card.afaj-card-photo-only,.afl-google-authentic .afl-review-track>.afl-review-card:has(>.afaj-review-photos):not(:has(>blockquote)){
  grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;gap:9px 15px;align-content:start;align-items:center
 }
 .afl-google-authentic .afl-review-card.afaj-card-photo-only>figure.afaj-review-photos,.afl-google-authentic .afl-review-card:has(>figure):not(:has(>blockquote))>figure.afaj-review-photos{grid-column:1/-1;grid-row:3;justify-self:center;display:grid;justify-items:center}
 .afl-google-authentic .afl-review-card.afaj-card-photo-only>.afl-review-source,.afl-google-authentic .afl-review-card:has(>figure):not(:has(>blockquote))>.afl-review-source{grid-column:1;grid-row:1}
 .afl-google-authentic .afl-review-card.afaj-card-photo-only>.afl-review-stars,.afl-google-authentic .afl-review-card:has(>figure):not(:has(>blockquote))>.afl-review-stars{grid-column:2;grid-row:1;align-self:center}
 .afl-google-authentic .afl-review-card.afaj-card-photo-only .afaj-review-thumbs img,.afl-google-authentic .afl-review-card:has(>figure):not(:has(>blockquote)) .afaj-review-thumbs img{max-height:min(59vh,430px)}
}

@media(min-width:741px){.afl-google-authentic .afl-review-card.afaj-card-photo-only>.afaj-review-text-notice,.afl-google-authentic .afl-review-card:has(>figure):not(:has(>blockquote))>.afaj-review-text-notice{grid-column:1/-1;grid-row:2}}

/* Keep the provenance of a translated excerpt visually attached to its text. */
@media(min-width:741px){
 .afl-google-authentic .afl-review-card.afaj-card-with-photo:has(>.afaj-reviewed-excerpt){grid-template-rows:auto auto auto 1fr}
 .afl-google-authentic .afl-review-card>.afaj-reviewed-excerpt{grid-column:1;grid-row:4;align-self:start;margin:0}
}

/* On phones each review occupies one complete, isolated horizontal stop.
   Its origin is the visible rail, including the first and last review. */
@media(max-width:740px){
 .afl-google-authentic .afl-review-slider{min-width:0;max-width:100%}
 .afl-google-authentic .afl-review-slider .afl-review-track{box-sizing:border-box;width:100%;max-width:100%;min-width:0;column-gap:0;padding-inline:0;scroll-padding-inline:0;overscroll-behavior-inline:contain}
 .afl-google-authentic .afl-review-track>.afl-review-card{min-width:0;max-width:100%;scroll-snap-align:start;scroll-snap-stop:always;scroll-margin-inline:0}
 .afl-google-authentic .afl-review-slider .afl-review-track.afaj-touch-ready{touch-action:pan-y pinch-zoom}
 .afl-google-authentic .afl-review-slider .afl-review-track.afaj-dragging{scroll-snap-type:none;scroll-behavior:auto;user-select:none}
}
