/* Testimonial Slider. Inherits the site's fonts and text color; --tsl-* vars are set per block.
   Sizes are in px on purpose: some themes set html{font-size:10px}, which shrinks rem. */
.tsl{position:relative;--tsl-gap:48px;--tsl-accent:currentColor;margin-bottom:var(--tsl-after,40px);outline:none!important;box-shadow:none!important}
.tsl:focus,.tsl:focus-visible{outline:none!important;box-shadow:none!important}
.tsl-main{position:relative;box-sizing:border-box;max-width:var(--tsl-max,1200px);margin:0 auto}
.tsl-stage{overflow:hidden;touch-action:pan-y;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 14%,#000 86%,transparent 100%);mask-image:linear-gradient(to right,transparent 0,#000 14%,#000 86%,transparent 100%)}
.tsl-track{display:grid;grid-template-columns:min(800px,78%);justify-content:center;align-items:stretch}

/* Card: no background. Headshot left, quote + name right, the pair centered. */
.tsl-card{grid-area:1/1;margin:0;box-sizing:border-box;
	display:grid;grid-template-columns:360px minmax(0,1fr);grid-template-rows:1fr auto auto 1fr;column-gap:0;align-items:center;
	text-align:center;background:none;padding:0;overflow:hidden;
	border:1px solid var(--tsl-border,#004C97);border-radius:var(--wp--preset--border-radius--medium,20px);
	transition:transform .9s cubic-bezier(.45,.05,.2,1),opacity .9s ease;will-change:transform,opacity;user-select:none}
.tsl:not(.tsl-ready) .tsl-card:not(:first-child){display:none}
.tsl-card.tsl-active{user-select:text}
.tsl-card.tsl-side{cursor:pointer}
.tsl-card.tsl-jump{transition:none}
.tsl-photo-wrap{position:relative;grid-column:1;grid-row:1/5;align-self:stretch;width:100%;min-height:270px;overflow:hidden;margin:0;background:color-mix(in srgb,currentColor 10%,transparent)}
/* Photo fills a fixed slot (absolute) so a tall or square image is cropped, never allowed to set the card height. */
.tsl-photo{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 30%;border-radius:0}
/* Photo on the right instead: add class tsl-photo-right to the block (Advanced > Additional CSS class). */
.tsl-photo-right .tsl-card{grid-template-columns:minmax(0,1fr) 360px}
.tsl-photo-right .tsl-photo-wrap{grid-column:2}
.tsl-photo-right .tsl-quote,.tsl-photo-right .tsl-cite{grid-column:1}
.tsl-quote{grid-column:2;grid-row:2}
.tsl-cite{grid-column:2;grid-row:3}
.tsl-card:not(:has(.tsl-photo-wrap)){grid-template-columns:minmax(0,1fr)}
.tsl-card:not(:has(.tsl-photo-wrap)) .tsl-quote,.tsl-card:not(:has(.tsl-photo-wrap)) .tsl-cite{grid-column:1}

/* Arrows: same shape as the site's lightbox arrows. */
.tsl-arrow{all:unset;box-sizing:border-box;position:absolute;top:50%;margin-top:-24px;z-index:2;width:48px;height:48px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--tsl-accent);background:color-mix(in srgb,currentColor 10%,Canvas);transition:background .15s ease}
.tsl-arrow:hover{background:color-mix(in srgb,currentColor 20%,transparent)}
.tsl-arrow svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.tsl-prev{left:8px}
.tsl-next{right:8px}

.tsl-controls{display:flex;align-items:center;justify-content:center;margin-top:6px}
.tsl-dots{display:flex}
.tsl-dot{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;justify-content:center;width:24px;height:24px;color:var(--tsl-accent)}
.tsl-dot::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor;opacity:.3;transition:opacity .3s,transform .3s}
.tsl-dot[aria-current="true"]::before{opacity:1;transform:scale(1.25)}
.tsl-arrow:focus-visible,.tsl-dot:focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* Theme-proofing: themes often style blockquote/figcaption (italics, decorative quote marks, tiny captions). */
.tsl .tsl-quote{font-style:normal;font-weight:500;font-size:var(--tsl-quote,32px);line-height:1.3;margin:0;padding:28px 32px 0;border:0;background:none;text-indent:0;quotes:none;box-shadow:none;text-wrap:pretty;text-align:center;align-self:end}
.tsl .tsl-quote::before,.tsl .tsl-quote::after{content:none;display:none}
.tsl .tsl-quote p{font-style:normal;font-size:inherit;line-height:inherit;margin:0;padding:0;text-indent:0}
.tsl .tsl-quote p::before{content:"\201C"}
.tsl .tsl-quote p::after{content:"\201D"}
.tsl .tsl-cite{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:max(16px,calc(var(--tsl-quote,32px) * .56));font-style:normal;line-height:1.35;text-align:center;margin:0;padding:16px 32px 28px;align-self:start}
.tsl .tsl-name{font-size:1em;font-weight:700;font-style:normal;color:var(--tsl-accent)}
.tsl .tsl-title{font-size:.92em;font-style:normal;opacity:.75}

@media (max-width:760px){
	.tsl{--tsl-gap:24px}
	.tsl-main{padding:0 44px}
	.tsl-track{grid-template-columns:minmax(0,100%)}
	.tsl-stage{-webkit-mask-image:none;mask-image:none}
	.tsl-card{grid-template-columns:minmax(0,1fr);grid-template-rows:none;justify-items:stretch;text-align:center;align-content:start}
	/* Cards without a photo: center the quote + name top-to-bottom in the (equal-height) card. */
	.tsl-card:not(:has(.tsl-photo-wrap)){align-content:center}
	.tsl-photo-wrap,.tsl-photo-right .tsl-photo-wrap{grid-column:1;grid-row:auto;min-height:0;aspect-ratio:4/3}
	.tsl-photo-right .tsl-card{grid-template-columns:minmax(0,1fr)}
	.tsl-photo-right .tsl-quote,.tsl-photo-right .tsl-cite{grid-column:1}
	.tsl-quote,.tsl-cite{grid-column:1;grid-row:auto;align-self:auto}
	.tsl .tsl-quote{font-size:calc(var(--tsl-quote,32px) * .78);padding:20px 20px 0}
	.tsl .tsl-cite{align-items:center;text-align:center;padding:12px 20px 20px}
	.tsl-arrow{width:36px;height:36px;margin-top:-18px}
	.tsl-arrow svg{width:20px;height:20px}
	.tsl-prev{left:0}
	.tsl-next{right:0}
}
@media (prefers-reduced-motion:reduce){.tsl-card{transition:none}}

/* Theme-proofing for buttons: themes restyle button:hover/:focus/:active (colored borders, white text). Pin ours. */
.tsl button.tsl-arrow,.tsl button.tsl-arrow:hover,.tsl button.tsl-arrow:focus,.tsl button.tsl-arrow:active,
.tsl button.tsl-dot,.tsl button.tsl-dot:hover,.tsl button.tsl-dot:focus,.tsl button.tsl-dot:active{border:0!important;box-shadow:none!important;text-shadow:none!important;color:var(--tsl-accent)!important;transform:none}
.tsl button.tsl-arrow{background:color-mix(in srgb,currentColor 10%,Canvas)!important;outline:none}
.tsl button.tsl-arrow:hover,.tsl button.tsl-arrow:active{background:color-mix(in srgb,currentColor 20%,Canvas)!important}
.tsl button.tsl-dot,.tsl button.tsl-dot:hover,.tsl button.tsl-dot:focus,.tsl button.tsl-dot:active{background:none!important}
.tsl button.tsl-arrow svg,.tsl button.tsl-arrow:hover svg,.tsl button.tsl-arrow:focus svg{stroke:currentColor!important;fill:none!important}
.tsl button.tsl-arrow:focus-visible,.tsl button.tsl-dot:focus-visible{outline:2px solid currentColor!important;outline-offset:2px}
.tsl button.tsl-arrow:focus:not(:focus-visible),.tsl button.tsl-dot:focus:not(:focus-visible){outline:none!important}
