/* SPS Sliders — front end. Matches the SPS Adventist hero; uses the theme's design tokens with fallbacks. */
.spsl { --spsl-navy: var(--color-navy, #142c46); --spsl-ease: var(--ease-sps, cubic-bezier(.22,.61,.36,1)); --spsl-head: var(--header-h, 6rem);
	position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; background: var(--color-navy-950, #0a1726); color: #fff; }
.spsl--full   { min-height: min(100svh, 980px); }
.spsl--large  { min-height: max(32rem, 75svh); }
.spsl--medium { min-height: max(28rem, 60svh); }
.spsl--small  { min-height: 24rem; }
.spsl-wrap { width: 100%; max-width: var(--container-wide, 1440px); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); box-sizing: border-box; }

.spsl-media { position: absolute; inset: 0; z-index: -2; }
.spsl-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--spsl-ease); }
.spsl-layer.is-active { opacity: 1; }
.spsl-img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transform-origin: 50% 50%; }
.spsl-pic { display: contents; }
.spsl-plain { position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% 10%, #1f3d5e 0%, #0f2338 55%, #0a1726 100%); }

.spsl-scrim { position: absolute; inset: 0; z-index: -1; }
.spsl-scrim::before, .spsl-scrim::after { content: ''; position: absolute; inset: 0; }
.spsl-scrim::after { background: linear-gradient(to right, rgb(10 23 38 / .55), transparent 55%); }
[dir="rtl"] .spsl-scrim::after { background: linear-gradient(to left, rgb(10 23 38 / .55), transparent 55%); }
.spsl--shade-light  .spsl-scrim::before { background: linear-gradient(to top, rgb(10 23 38 / .75), rgb(10 23 38 / .15) 60%, rgb(10 23 38 / .1)); }
.spsl--shade-medium .spsl-scrim::before { background: linear-gradient(to top, rgb(10 23 38 / .9), rgb(10 23 38 / .35), rgb(10 23 38 / .3)); }
.spsl--shade-strong .spsl-scrim::before { background: linear-gradient(to top, rgb(10 23 38 / .95), rgb(10 23 38 / .6), rgb(10 23 38 / .5)); }

.spsl-copy { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 4rem; padding-bottom: 3.5rem; }
.spsl.has-bar .spsl-copy { padding-bottom: 8rem; }
.spsl--top .spsl-copy { padding-top: calc(var(--spsl-head) + 4rem); }
@media (min-width: 768px) { .spsl.has-bar .spsl-copy { padding-bottom: 9rem; } }
.spsl-slide { max-width: 56rem; }

.spsl-eye { margin: 0 0 1.5rem; display: flex; align-items: center; gap: .75rem; font-family: var(--font-sans, system-ui, sans-serif); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgb(255 255 255 / .8); }
.spsl-eye span { display: inline-block; flex-shrink: 0; height: 1px; width: 2.5rem; background: rgb(255 255 255 / .6); }
[lang="ur"] .spsl-eye, [lang="ko"] .spsl-eye { letter-spacing: 0; text-transform: none; font-size: .875rem; }
.spsl-title { margin: 0; font-family: var(--font-serif, Georgia, serif); font-weight: 400; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; color: #fff; }
.spsl--full .spsl-title  { font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5.75rem); }
.spsl--large .spsl-title { font-size: clamp(2.5rem, 1.5rem + 3.8vw, 4.75rem); }
.spsl--medium .spsl-title, .spsl--small .spsl-title { font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.75rem); }
[lang="ur"] .spsl-title { letter-spacing: 0; line-height: 1.6; }
.spsl-sub { margin: 1.5rem 0 0; max-width: 42rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.3125rem); line-height: 1.6; color: rgb(255 255 255 / .82); text-wrap: pretty; }
.spsl-ctas { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.spsl-btn1, .spsl-btn2 { display: inline-flex; align-items: center; gap: .5rem; height: 3rem; padding: 0 1.75rem; border-radius: 9999px; font-family: var(--font-sans, system-ui, sans-serif); font-size: .9375rem; font-weight: 500; text-decoration: none; transition: background .2s, border-color .2s; }
.spsl-btn1 { background: #fff; color: var(--spsl-navy); } .spsl-btn1:hover { background: var(--color-ivory, #f8f5ee); color: var(--spsl-navy); }
.spsl-btn1 .spsl-i { width: 1rem; height: 1rem; transition: transform .3s; } .spsl-btn1:hover .spsl-i { transform: translateX(2px); }
[dir="rtl"] .spsl-btn1 .spsl-i { transform: scaleX(-1); } [dir="rtl"] .spsl-btn1:hover .spsl-i { transform: scaleX(-1) translateX(2px); }
.spsl-btn2 { border: 1px solid rgb(255 255 255 / .4); color: #fff; } .spsl-btn2:hover { border-color: #fff; background: rgb(255 255 255 / .1); color: #fff; }

.spsl-bar { position: absolute; inset-inline: 0; bottom: 0; border-top: 1px solid rgb(255 255 255 / .1); background: rgb(10 23 38 / .3); backdrop-filter: blur(2px); }
.spsl-bar-in { display: flex; height: 5rem; align-items: center; gap: 1.5rem; }
.spsl-count { margin: 0; font-family: var(--font-sans, system-ui, sans-serif); font-size: .875rem; font-variant-numeric: tabular-nums; color: rgb(255 255 255 / .7); }
.spsl-count span { color: #fff; }
.spsl-tabs { flex: 1; display: flex; gap: .5rem; }
.spsl-tab { position: relative; height: 2rem; flex: 1; max-width: 7rem; border: 0; padding: 0; background: transparent; cursor: pointer; }
.spsl-track { position: absolute; inset-inline: 0; top: 50%; height: 2px; transform: translateY(-50%); overflow: hidden; border-radius: 2px; background: rgb(255 255 255 / .25); }
.spsl-fill { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .spsl-fill { transform-origin: right; }
.spsl-tab.is-done .spsl-fill, .spsl-tab.is-current .spsl-fill { transform: scaleX(1); }
.spsl.is-playing .spsl-tab.is-current .spsl-fill { transform: scaleX(0); animation: spsl-progress var(--spsl-dur, 7s) linear forwards; }
.spsl.is-playing.is-hover .spsl-tab.is-current .spsl-fill { animation-play-state: paused; }
@keyframes spsl-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.spsl-ctrls { display: flex; align-items: center; gap: .25rem; }
.spsl-ctrl { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border-radius: 9999px; border: 1px solid rgb(255 255 255 / .25); background: transparent; color: #fff; cursor: pointer; }
.spsl-ctrl--plain { border-color: transparent; color: rgb(255 255 255 / .8); }
.spsl-ctrl:hover { background: rgb(255 255 255 / .1); color: #fff; }
.spsl-ctrl:focus-visible, .spsl-tab:focus-visible, .spsl-btn1:focus-visible, .spsl-btn2:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.spsl-ctrl .spsl-i { width: 1rem; height: 1rem; }
[dir="rtl"] .spsl-dir .spsl-i { transform: scaleX(-1); }
/* pause / play icons: see "Pause / play button" below */
.spsl [hidden] { display: none !important; }
@media (max-width: 639px) { .spsl-count { display: none; } .spsl-bar-in { gap: 1rem; } }
@media (prefers-reduced-motion: reduce) { .spsl-layer, .spsl-img { transition: none !important; transform: none !important; animation: none !important; } }

/* A slider placed inside page content gets breathing room and rounded corners */
.entry-content .spsl, .prose-sps .spsl, .blocks .spsl { margin-block: 2.5rem; border-radius: var(--radius-lg, 1rem); }
.entry-content .spsl--top, .prose-sps .spsl--top { border-radius: 0; }
/* A slider replacing the page title banner sits under the see-through header */
body.spsl-has-top main.page-main { padding-top: 0; }

/* Centred text option */
.spsl-slide--center { margin-inline: auto; text-align: center; }
.spsl-slide--center .spsl-eye, .spsl-slide--center .spsl-ctas { justify-content: center; }
.spsl-slide--center .spsl-sub { margin-inline: auto; }
/* Admin preview */
.spsl-preview-note { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding: .875rem clamp(1rem, 4vw, 2.5rem); background: #fcf0d0; color: #3c2a00; font-family: var(--font-sans, system-ui, sans-serif); font-size: .875rem; }
.spsl-preview-note a { margin-inline-start: auto; color: inherit; font-weight: 600; }
.spsl-preview-tag { display: inline-block; margin: 0 0 1rem; padding: .25rem .75rem; border-radius: 9999px; background: #fcf0d0; color: #3c2a00; font-family: var(--font-sans, system-ui, sans-serif); font-size: .75rem; font-weight: 600; }
.spsl-preview-empty { padding: 4rem 1rem; text-align: center; }

/* ═════════ Controls: bullets, thumbnails, side arrows ═════════ */
.spsl-bar-in > .spsl-ctrls { margin-inline-start: auto; }
.spsl-dots { display: flex; align-items: center; gap: .5rem; }
.spsl-bar-in > .spsl-dots:first-child { flex: 1; }
.spsl-dot { width: .625rem; height: .625rem; padding: 0; border: 0; border-radius: 9999px; background: rgb(255 255 255 / .4); cursor: pointer; transition: width .3s var(--spsl-ease), background .3s; }
.spsl-dot:hover { background: rgb(255 255 255 / .7); }
.spsl-dot.is-current { width: 1.75rem; background: #fff; }
.spsl-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.spsl.has-thumbs .spsl-bar-in { height: auto; min-height: 5rem; padding-block: .75rem; }
.spsl.has-thumbs.has-bar .spsl-copy { padding-bottom: 10rem; }
@media (min-width: 768px) { .spsl.has-thumbs.has-bar .spsl-copy { padding-bottom: 11rem; } }
.spsl-thumbs { flex: 1; min-width: 0; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.spsl-thumbs::-webkit-scrollbar { display: none; }
.spsl-tabs + .spsl-thumbs { flex: 2; }
.spsl-thumb { position: relative; flex: 0 0 auto; width: 6rem; height: 3.375rem; padding: 0; border: 0; border-radius: .375rem; overflow: hidden; background: #0f2338; cursor: pointer; opacity: .55; transition: opacity .3s; }
.spsl-thumb:hover { opacity: .85; }
.spsl-thumb.is-current { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.spsl-thumb:focus-visible { outline: 2px solid #fff; outline-offset: 2px; opacity: 1; }
.spsl-thumb-img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.spsl-thumb-img--plain { display: grid; place-items: center; background: radial-gradient(120% 90% at 85% 10%, #1f3d5e, #0a1726); font-family: var(--font-sans, system-ui, sans-serif); font-size: .875rem; color: rgb(255 255 255 / .8); }
.spsl-thumb-bar { position: absolute; inset-inline: 0; bottom: 0; height: 3px; overflow: hidden; background: rgb(0 0 0 / .35); }
.spsl-thumb .spsl-fill { transform: scaleX(0); }
.spsl-thumb.is-current .spsl-fill { transform: scaleX(1); }
.spsl.is-playing .spsl-thumb.is-current .spsl-fill { transform: scaleX(0); animation: spsl-progress var(--spsl-dur, 7s) linear forwards; }
.spsl.is-playing.is-hover .spsl-thumb.is-current .spsl-fill { animation-play-state: paused; }
@media (max-width: 639px) { .spsl-thumb { width: 4.5rem; height: 2.625rem; } .spsl-tabs + .spsl-thumbs { display: none; } }

.spsl-side { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; margin-top: -1.5rem; border: 1px solid rgb(255 255 255 / .3); border-radius: 9999px; background: rgb(10 23 38 / .35); color: #fff; cursor: pointer; backdrop-filter: blur(4px); transition: background .2s, border-color .2s; }
.spsl-side:hover { background: rgb(10 23 38 / .6); border-color: #fff; }
.spsl-side:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.spsl-side .spsl-i { width: 1.25rem; height: 1.25rem; }
.spsl-side--prev { inset-inline-start: clamp(.5rem, 2vw, 1.5rem); }
.spsl-side--next { inset-inline-end: clamp(.5rem, 2vw, 1.5rem); }
.spsl--top .spsl-side { top: calc(50% + var(--spsl-head) / 2); }
.spsl.has-side-arrows .spsl-copy { padding-inline: clamp(4rem, 7vw, 6rem); }
@media (max-width: 639px) { .spsl-side { width: 2.5rem; height: 2.5rem; margin-top: -1.25rem; } .spsl.has-side-arrows .spsl-copy { padding-inline: 3.25rem; } }

/* ═════════ Shadows ═════════ */
.spsl--ts-soft .spsl-title, .spsl--ts-soft .spsl-sub, .spsl--ts-soft .spsl-eye { text-shadow: 0 1px 2px rgb(0 0 0 / .35), 0 2px 12px rgb(0 0 0 / .25); }
.spsl--ts-strong .spsl-title, .spsl--ts-strong .spsl-sub, .spsl--ts-strong .spsl-eye { text-shadow: 0 2px 4px rgb(0 0 0 / .55), 0 4px 24px rgb(0 0 0 / .45); }
.spsl--bs-soft { box-shadow: 0 10px 30px -10px rgb(10 23 38 / .35), 0 2px 6px rgb(10 23 38 / .12); }
.spsl--bs-strong { box-shadow: 0 24px 60px -12px rgb(10 23 38 / .6), 0 6px 16px rgb(10 23 38 / .25); }
.spsl--bs-soft, .spsl--bs-strong { z-index: 1; }

/* Urdu: use the Nastaliq typeface everywhere in the slider (the theme only applies it to h1–h3) */
[lang="ur"] .spsl-title, [lang="ur"] .spsl-eye, [lang="ur"] .spsl-btn1, [lang="ur"] .spsl-btn2 { font-family: var(--font-urdu, "Noto Nastaliq Urdu"), serif; }
[lang="ur"] .spsl-title { line-height: 1.75; }

/* ═════════ Video and external-media slides ═════════ */
/* Background videos (file or YouTube / Vimeo) cover the slide like a photo */
.spsl-layer { container-type: size; }
.spsl-bgvideo { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.spsl-embed-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .8s .4s; }
.spsl-embed-bg iframe { position: absolute; top: 50%; left: 50%; width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); transform: translate(-50%, -50%); border: 0; }
.spsl-layer.is-video-on .spsl-bgvideo, .spsl-layer.is-video-on .spsl-embed-bg { opacity: 1; }
.spsl-player-bg { position: absolute; inset: 0; background: rgb(10 23 38 / .35); backdrop-filter: blur(6px); }

/* Video player next to the text */
.spsl-slide.has-player { max-width: none; display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 960px) { .spsl-slide.has-player { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 4vw, 4rem); } }
.spsl-slide.has-player .spsl-text { max-width: 40rem; }
.spsl-player { position: relative; overflow: hidden; border-radius: var(--radius-lg, 1rem); background: #000; box-shadow: 0 24px 60px -16px rgb(0 0 0 / .6); }
.spsl-player iframe, .spsl-player video { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.spsl-player--wide { width: min(100%, 40rem); aspect-ratio: 16 / 9; }
.spsl-player--tall { height: min(30rem, 58svh); width: auto; max-width: 100%; aspect-ratio: 9 / 16; }
@media (min-width: 960px) { .spsl-player--wide { width: min(46vw, 40rem); } }
@media (max-width: 959px) { .spsl-player--tall { justify-self: center; } }
.spsl-slide--center.has-player { text-align: start; }

/* Thumbnails: play badge on video slides */
.spsl-thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; pointer-events: none; }
.spsl-thumb-play .spsl-i { width: 1.25rem; height: 1.25rem; padding: .25rem; border-radius: 9999px; background: rgb(0 0 0 / .45); box-sizing: content-box; }

/* Pause / play button (also pauses background videos) */
[data-spsl-toggle] .when-paused { display: inline-flex; } [data-spsl-toggle] .when-playing { display: none; }
[data-spsl-toggle].is-moving .when-paused { display: none; } [data-spsl-toggle].is-moving .when-playing { display: inline-flex; }
@media (prefers-reduced-motion: reduce) { .spsl-bgvideo, .spsl-embed-bg { transition: none; } }

/* Hidden main heading (when the first slide has no headline) */
.spsl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ═════════ Photo movement: zoom in / zoom out / pan ═════════ */
.spsl { --kb-s: 1.08; }
.spsl--kb-normal { --kb-s: 1.15; }
.spsl--kb-strong { --kb-s: 1.25; }
/* how far a pan may travel without showing an edge of the photo */
.spsl { --kb-p: calc((var(--kb-s) - 1) / (2 * var(--kb-s)) * 90%); }
@media (prefers-reduced-motion: no-preference) {
	.spsl-layer:is(.is-active, .is-leaving) .spsl-img { animation-duration: var(--kb-dur, 9s); animation-timing-function: linear; animation-fill-mode: both; }
	.spsl-kb-zoom-in:is(.is-active, .is-leaving) .spsl-img   { animation-name: spsl-kb-in; }
	.spsl-kb-zoom-out:is(.is-active, .is-leaving) .spsl-img  { animation-name: spsl-kb-out; }
	.spsl-kb-pan-left:is(.is-active, .is-leaving) .spsl-img  { animation-name: spsl-kb-left; }
	.spsl-kb-pan-right:is(.is-active, .is-leaving) .spsl-img { animation-name: spsl-kb-right; }
	.spsl-kb-pan-up:is(.is-active, .is-leaving) .spsl-img    { animation-name: spsl-kb-up; }
	.spsl-kb-pan-down:is(.is-active, .is-leaving) .spsl-img  { animation-name: spsl-kb-down; }
	.spsl.is-still .spsl-img { animation-play-state: paused; }
}
@keyframes spsl-kb-in    { from { transform: scale(1); } to { transform: scale(var(--kb-s)); } }
@keyframes spsl-kb-out   { from { transform: scale(var(--kb-s)); } to { transform: scale(1); } }
@keyframes spsl-kb-left  { from { transform: scale(var(--kb-s)) translateX(var(--kb-p)); } to { transform: scale(var(--kb-s)) translateX(calc(-1 * var(--kb-p))); } }
@keyframes spsl-kb-right { from { transform: scale(var(--kb-s)) translateX(calc(-1 * var(--kb-p))); } to { transform: scale(var(--kb-s)) translateX(var(--kb-p)); } }
@keyframes spsl-kb-up    { from { transform: scale(var(--kb-s)) translateY(var(--kb-p)); } to { transform: scale(var(--kb-s)) translateY(calc(-1 * var(--kb-p))); } }
@keyframes spsl-kb-down  { from { transform: scale(var(--kb-s)) translateY(calc(-1 * var(--kb-p))); } to { transform: scale(var(--kb-s)) translateY(var(--kb-p)); } }

/* ═════════ Slide change: fade (default) / slide across / fade and zoom ═════════ */
.spsl-layer.is-leaving { z-index: 0; }
.spsl-layer.is-active { z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
	.spsl--tr-slide .spsl-layer { opacity: 1; visibility: hidden; transform: translateX(100%); transition: transform 1.1s var(--spsl-ease); }
	.spsl--tr-slide .spsl-layer:is(.is-active, .is-leaving) { visibility: visible; }
	.spsl--tr-slide .spsl-layer.is-active { transform: none; }
	.spsl--tr-zoom .spsl-layer { transform: scale(1.12); transition: opacity 1.3s var(--spsl-ease), transform 1.6s var(--spsl-ease); }
	.spsl--tr-zoom .spsl-layer:is(.is-active, .is-leaving) { transform: none; }
	.spsl--tr-zoom .spsl-layer.is-leaving { opacity: 0; }
}

/* ═════════ Text entrance: each line comes in a moment after the one before ═════════ */
@media (prefers-reduced-motion: no-preference) {
	.spsl-slide.is-active .spsl-text > *, .spsl-slide.is-active .spsl-player { animation: .8s var(--spsl-ease) both; }
	.spsl-slide.is-active .spsl-text > :nth-child(2) { animation-delay: .1s; }
	.spsl-slide.is-active .spsl-text > :nth-child(3) { animation-delay: .2s; }
	.spsl-slide.is-active .spsl-text > :nth-child(4) { animation-delay: .3s; }
	.spsl-slide.is-active .spsl-text > :nth-child(n+5) { animation-delay: .4s; }
	.spsl-slide.is-active .spsl-player { animation-delay: .25s; }
	.spsl--ta-rise .spsl-slide.is-active :is(.spsl-text > *, .spsl-player) { animation-name: spsl-t-rise; }
	.spsl--ta-fade .spsl-slide.is-active :is(.spsl-text > *, .spsl-player) { animation-name: spsl-t-fade; animation-duration: 1s; }
	.spsl--ta-zoom .spsl-slide.is-active :is(.spsl-text > *, .spsl-player) { animation-name: spsl-t-zoom; }
	.spsl--ta-side .spsl-slide.is-active :is(.spsl-text > *, .spsl-player) { animation-name: spsl-t-side; }
	[dir="rtl"] .spsl--ta-side .spsl-slide.is-active :is(.spsl-text > *, .spsl-player) { animation-name: spsl-t-side-rtl; }
	.spsl--ta-none .spsl-slide.is-active :is(.spsl-text > *, .spsl-player) { animation: none; }
}
@keyframes spsl-t-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes spsl-t-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spsl-t-zoom { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes spsl-t-side { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes spsl-t-side-rtl { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

/* ═════════ Height on phones ═════════ */
@media (max-width: 767px) {
	.spsl.spsl--mh-full   { min-height: 100svh; }
	.spsl.spsl--mh-large  { min-height: max(30rem, 75svh); }
	.spsl.spsl--mh-medium { min-height: max(26rem, 60svh); }
	.spsl.spsl--mh-small  { min-height: 22rem; }
}

/* Arrows at the first / last slide when the slider does not start again */
.spsl-ctrl:disabled, .spsl-side:disabled { opacity: .35; cursor: default; pointer-events: none; }

/* Photo fit: "Show the whole photo on wide screens" — when the slide is wider than about 16:10, fit the photo in
   (below the site header on the top slider) and fill the sides with a blurred copy. Narrower slides (phones, tablets) keep filling the slide. */
.spsl-fitbg { display: none; }
@container (min-aspect-ratio: 8 / 5) {
	.spsl-fitbg { display: block; position: absolute; inset: -3rem; background-size: cover; background-position: center; filter: blur(28px) saturate(1.1) brightness(.75); transform: scale(1.1); }
	.spsl-img--whole, .spsl-layer picture:has(.spsl-img--whole) { position: relative; z-index: 1; }
	.spsl-img--whole { box-sizing: border-box; object-fit: contain; object-position: 50% 50% !important; }
	.spsl--top .spsl-img--whole { padding-top: var(--spsl-head, 0px); }
}

/* Photo fit: "Poster or flyer" — the whole picture on every screen (below the header and above the control bar),
   blurred copy behind, no dark shade; the slide's text is for screen readers, its first button shows on phones. */
.spsl-layer:has(.spsl-img--poster) .spsl-fitbg { display: block; position: absolute; inset: -3rem; background-size: cover; background-position: center; filter: blur(28px) saturate(1.1) brightness(.7); transform: scale(1.1); }
.spsl-img--poster { position: relative; z-index: 1; box-sizing: border-box; object-fit: contain; object-position: 50% 50% !important; padding: 1rem; animation: none !important; transform: none !important; }
.spsl--top .spsl-img--poster { padding-top: calc(var(--spsl-head, 0px) + .75rem); }
.spsl.has-bar .spsl-img--poster { padding-bottom: 5.5rem; }
.spsl:has(.spsl-layer.is-active .spsl-img--poster) .spsl-scrim { opacity: 0; }
.spsl-scrim { transition: opacity .8s var(--spsl-ease); }
.spsl-slide--poster :is(.spsl-eye, .spsl-title, .spsl-sub) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spsl-slide--poster .spsl-btn2 { display: none; }
@media (min-width: 768px) { .spsl-slide--poster .spsl-ctas { display: none; } }
/* computers: as large as possible — full height between the site header and the control bar */
@media (min-width: 768px) {
	.spsl-img--poster { padding: .5rem 0 !important; }
	.spsl--top .spsl-img--poster { padding-top: var(--spsl-head, 0px) !important; }
	.spsl.has-bar .spsl-img--poster { padding-bottom: 4.25rem !important; }
}
@media (max-width: 767px) {
	.spsl-slide--poster { align-self: stretch; }
	.spsl-slide--poster .spsl-text { display: flex; justify-content: center; width: 100%; max-width: none; }
	.spsl-slide--poster .spsl-ctas { justify-content: center; margin-inline: auto; }
}

/* Photo fit: "Wide banner" — a designed banner with its own text: always whole, as large as possible, no dark shade. */
.spsl-layer:has(.spsl-img--banner) .spsl-fitbg { display: block; position: absolute; inset: -3rem; background-size: cover; background-position: center; filter: blur(28px) saturate(1.1) brightness(.7); transform: scale(1.1); }
.spsl-img--banner { position: relative; z-index: 1; box-sizing: border-box; animation: none !important; transform: none !important; }
.spsl:has(.spsl-layer.is-active .spsl-img--banner) .spsl-scrim { opacity: 0; }
@media (min-width: 768px) {
	/* the whole banner, as large as fits between the site header and the control bar (the header is see-through,
	   so a banner placed under it would have the logo and menu over its own text and faces) */
	.spsl-img--banner { object-fit: contain; object-position: 50% 50% !important; padding: .5rem 0; }
	.spsl--top .spsl-img--banner { padding-top: var(--spsl-head, 0px); }
	.spsl.has-bar .spsl-img--banner { padding-bottom: 4.25rem; }
}
@media (max-width: 767px) {
	.spsl-img--banner { object-fit: contain; object-position: 50% 50% !important; padding: 1rem; }
	.spsl--top .spsl-img--banner { padding-top: calc(var(--spsl-head, 0px) + .75rem); }
	.spsl.has-bar .spsl-img--banner { padding-bottom: 5.5rem; }
}

/* ═════════ Text position: across (left / centre / right) and up / down (top … bottom) ═════════ */
.spsl-slide--end { margin-inline-start: auto; text-align: end; }
.spsl-slide--end .spsl-eye, .spsl-slide--end .spsl-ctas { justify-content: flex-end; }
.spsl-slide--end .spsl-sub { margin-inline-start: auto; }
/* two flexible spacers around the text; their weights set how high it sits (bottom = the old behaviour) */
.spsl-copy::before, .spsl-copy::after { content: ''; flex: 0 0 0; }
.spsl-copy:has(> .spsl-slide.is-active.spsl-v-bottom)::before { flex-grow: 1; }
.spsl-copy:has(> .spsl-slide.is-active.spsl-v-top)::after { flex-grow: 1; }
.spsl-copy:has(> .spsl-slide.is-active.spsl-v-middle)::before, .spsl-copy:has(> .spsl-slide.is-active.spsl-v-middle)::after { flex-grow: 1; }
.spsl-copy:has(> .spsl-slide.is-active.spsl-v-upper)::before { flex-grow: 1; } .spsl-copy:has(> .spsl-slide.is-active.spsl-v-upper)::after { flex-grow: 3; }
.spsl-copy:has(> .spsl-slide.is-active.spsl-v-lower)::before { flex-grow: 3; } .spsl-copy:has(> .spsl-slide.is-active.spsl-v-lower)::after { flex-grow: 1; }

/* ═════════ Picture zoom (per slide): scales around the focus point; zoomed out shows a blurred copy behind ═════════ */
.spsl-layer.is-zoom-in .spsl-img, .spsl-layer.is-zoom-out .spsl-img { scale: var(--spsl-zoom, 1); }
.spsl-layer.is-zoom-out .spsl-fitbg { display: block; position: absolute; inset: -3rem; background-size: cover; background-position: center; filter: blur(28px) saturate(1.1) brightness(.75); transform: scale(1.1); }
.spsl-layer.is-zoom-out .spsl-img, .spsl-layer.is-zoom-out .spsl-pic { position: relative; z-index: 1; }

/* Headline font choice and per-line text size */
.spsl-title.spsl-ff-sans { font-family: var(--font-sans, system-ui, sans-serif); font-weight: 700; letter-spacing: -.01em; }
.spsl-fs { display: block; } /* its own line box, so line spacing follows the chosen size */

/* Button colours chosen per slide (fill --sb-bg, text --sb-fg) */
.spsl-btn1[data-col] { background: var(--sb-bg, #fff); color: var(--sb-fg, var(--spsl-navy)); }
.spsl-btn2[data-col] { background: var(--sb-bg, transparent); color: var(--sb-fg, #fff); border-color: var(--sb-bg, var(--sb-fg, rgb(255 255 255 / .4))); }
.spsl-btn1[data-col]:hover, .spsl-btn2[data-col]:hover { background: var(--sb-bg, rgb(255 255 255 / .1)); color: var(--sb-fg, inherit); filter: brightness(1.1); }
