/* Bivate Slider - responsive image / video slider */
.bvs { --bvs-accent: #2a7ae2; --bvs-ratio: 21/9; --bvs-ratio-m: 4/5; position: relative; margin: 0 0 24px; border-radius: 10px; overflow: hidden; background: #0d1117; font-family: inherit; outline-offset: 2px; -webkit-tap-highlight-color: transparent; }
.bvs *, .bvs *::before, .bvs *::after { box-sizing: border-box; }

.bvs-viewport { position: relative; width: 100%; aspect-ratio: var(--bvs-ratio); overflow: hidden; touch-action: pan-y; }

.bvs-slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: transform .65s cubic-bezier(.65, 0, .35, 1), opacity .65s ease; will-change: transform, opacity; }
.bvs-slide.is-active { visibility: visible; opacity: 1; z-index: 2; }

.bvs[data-transition="slide"] .bvs-slide { opacity: 1; transform: translateX(100%); }
.bvs[data-transition="slide"] .bvs-slide.is-active { transform: none; }
.bvs[data-transition="slide"] .bvs-slide.from-left { transform: translateX(-100%); visibility: visible; transition: none; }
.bvs[data-transition="slide"] .bvs-slide.from-right { transform: translateX(100%); visibility: visible; transition: none; }
.bvs[data-transition="slide"] .bvs-slide.to-left { transform: translateX(-100%); visibility: visible; z-index: 1; }
.bvs[data-transition="slide"] .bvs-slide.to-right { transform: translateX(100%); visibility: visible; z-index: 1; }

.bvs-media, .bvs-media img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bvs-media img { object-fit: cover; }

/* Video layers sit above the cover image and fade in once they are really playing */
.bvs-video, .bvs-embed { position: absolute; z-index: 1; opacity: 0; transition: opacity .6s ease; border: 0; pointer-events: none; }
.bvs-video { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bvs-embed { top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: none; }
.bvs-slide.is-ready .bvs-video, .bvs-slide.is-ready .bvs-embed { opacity: 1; }
.bvs.is-poster-only .bvs-video, .bvs.is-poster-only .bvs-embed { display: none; }

.bvs-overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, .25) 70%, rgba(0, 0, 0, .05)); pointer-events: none; }
.bvs-align-center .bvs-overlay { background: radial-gradient(ellipse at center, rgba(0, 0, 0, .7), rgba(0, 0, 0, .15) 80%); }
.bvs-align-right .bvs-overlay { background: linear-gradient(270deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, .25) 70%, rgba(0, 0, 0, .05)); }
.bvs-theme-dark .bvs-overlay { background: linear-gradient(90deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .25) 70%, rgba(255, 255, 255, 0)); }
.bvs-theme-dark.bvs-align-right .bvs-overlay { background: linear-gradient(270deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .25) 70%, rgba(255, 255, 255, 0)); }
.bvs-theme-dark.bvs-align-center .bvs-overlay { background: radial-gradient(ellipse at center, rgba(255, 255, 255, .75), rgba(255, 255, 255, .15) 80%); }

.bvs-caption { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: min(560px, 86%); display: flex; flex-direction: column; gap: 12px; color: #fff; }
.bvs-theme-dark .bvs-caption { color: #111; }
.bvs-align-left .bvs-caption { left: 6%; align-items: flex-start; text-align: left; }
.bvs-align-right .bvs-caption { right: 6%; align-items: flex-end; text-align: right; }
.bvs-align-center .bvs-caption { left: 50%; transform: translate(-50%, -50%); align-items: center; text-align: center; }

.bvs-title { font-size: clamp(1.35rem, 3.6vw, 2.9rem); font-weight: 700; line-height: 1.15; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.bvs-theme-dark .bvs-title { text-shadow: none; }
.bvs-subtitle { font-size: clamp(.9rem, 1.7vw, 1.2rem); line-height: 1.45; opacity: .92; }

.bvs-btn { display: inline-block; margin-top: 4px; padding: 11px 26px; border-radius: 999px; background: var(--bvs-accent); color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .2s ease, filter .2s ease; }
.bvs-btn:hover, .bvs-btn:focus { color: #fff; filter: brightness(1.1); transform: translateY(-1px); text-decoration: none; }

.bvs-cover { position: absolute; inset: 0; z-index: 3; }

/* Caption entrance animation on the active slide */
.bvs-slide .bvs-caption > * { opacity: 0; transform: translateY(14px); }
.bvs-slide.is-active .bvs-caption > * { animation: bvs-rise .7s .25s ease forwards; }
.bvs-slide.is-active .bvs-caption > *:nth-child(2) { animation-delay: .4s; }
.bvs-slide.is-active .bvs-caption > *:nth-child(3) { animation-delay: .55s; }
@keyframes bvs-rise { to { opacity: 1; transform: none; } }

/* Controls */
.bvs-arrow { position: absolute; top: 50%; z-index: 6; width: 46px; height: 46px; margin-top: -23px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; opacity: 0; transition: opacity .25s ease, background .2s ease; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.bvs-prev { left: 14px; }
.bvs-next { right: 14px; }
.bvs:hover .bvs-arrow, .bvs:focus-within .bvs-arrow { opacity: 1; }
.bvs-arrow:hover { background: var(--bvs-accent); }
.bvs-arrow:disabled { opacity: 0 !important; pointer-events: none; }

.bvs-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px 6px; pointer-events: none; }
.bvs-controls > * { pointer-events: auto; }
.bvs-dots { display: flex; gap: 2px; }
.bvs-dot { position: relative; width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; }
.bvs-dot::before { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 999px; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); transition: width .3s ease, margin .3s ease, background .3s ease; }
.bvs-dot.is-active::before { width: 26px; margin-left: -13px; background: var(--bvs-accent); }

.bvs-toggle, .bvs-sound { position: absolute; bottom: 8px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; transition: background .2s ease; }
.bvs-toggle { right: 12px; }
.bvs-sound { right: 54px; }
.bvs-toggle:hover, .bvs-sound:hover { background: var(--bvs-accent); }
.bvs-ico-pause { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.bvs-toggle.is-paused .bvs-ico-pause { width: 0; height: 0; border: 0; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }

.bvs-tap { position: absolute; z-index: 5; top: 50%; left: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--bvs-accent); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); cursor: pointer; }

.bvs-progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; height: 3px; background: rgba(255, 255, 255, .15); pointer-events: none; }
.bvs-progress span { display: block; height: 100%; background: var(--bvs-accent); transform-origin: left; transform: scaleX(0); animation: bvs-prog var(--bvs-dur, 6000ms) linear forwards; }
.bvs.is-paused .bvs-progress span { animation-play-state: paused; }
.bvs.is-untimed .bvs-progress { opacity: 0; }
@keyframes bvs-prog { to { transform: scaleX(1); } }

.bvs:focus-visible { outline: 3px solid var(--bvs-accent); }

/* Tablet and phone */
@media (max-width: 767px) {
	.bvs { border-radius: 0; margin-bottom: 16px; }
	.bvs-viewport { aspect-ratio: var(--bvs-ratio-m); }
	.bvs-arrow { display: none; }
	.bvs-overlay, .bvs-align-right .bvs-overlay, .bvs-align-center .bvs-overlay { background: linear-gradient(0deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .1) 65%, rgba(0, 0, 0, 0)); }
	.bvs-theme-dark .bvs-overlay, .bvs-theme-dark.bvs-align-right .bvs-overlay, .bvs-theme-dark.bvs-align-center .bvs-overlay { background: linear-gradient(0deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .1) 65%, rgba(255, 255, 255, 0)); }
	.bvs-caption, .bvs-align-left .bvs-caption, .bvs-align-right .bvs-caption, .bvs-align-center .bvs-caption { top: auto; bottom: 46px; left: 5%; right: 5%; width: auto; transform: none; align-items: flex-start; text-align: left; gap: 8px; }
	.bvs-align-center .bvs-caption { align-items: center; text-align: center; }
	.bvs-align-right .bvs-caption { align-items: flex-end; text-align: right; }
	.bvs-btn { padding: 10px 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.bvs-slide, .bvs-video, .bvs-embed, .bvs-dot::before { transition-duration: .01ms !important; }
	.bvs-slide .bvs-caption > *, .bvs-slide.is-active .bvs-caption > * { animation: none; opacity: 1; transform: none; }
	.bvs-progress span { animation: none; }
}
