.nsci-slider { --nsci-accent: #f45518; width: 100%; min-width: 0; color: #252525; }
.nsci-slider *, .nsci-popup * { box-sizing: border-box; }
.nsci-slider svg { width: 24px; height: 24px; max-width: 24px; flex-shrink: 0; vertical-align: middle; fill: none; stroke: currentColor; }
.nsci-slider button { font: inherit; cursor: pointer; }
.nsci-slider button:focus-visible, .nsci-popup a:focus-visible, .nsci-slider__viewport:focus-visible { outline: 3px solid var(--nsci-accent); outline-offset: 4px; }
.nsci-slider__viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; direction: ltr !important; scroll-behavior: auto !important; overflow-anchor: none; overscroll-behavior-x: contain; touch-action: pan-y pinch-zoom; cursor: grab; }
.nsci-slider__viewport.is-dragging, .nsci-slider__viewport.is-dragging * { cursor: grabbing; user-select: none; }
.nsci-slider__viewport::-webkit-scrollbar { display: none; }
.nsci-slider__track { display: flex; gap: 16px; width: max-content; }
/* isolation and the transform make iOS Safari clip composited video layers to the rounded corners. */
.nsci-slide { position: relative; flex: 0 0 auto; width: calc(var(--nsci-card-height) * .5625); max-width: 85vw; height: var(--nsci-card-height); overflow: hidden; isolation: isolate; transform: translateZ(0); background: #252525; border-radius: 24px; }
.nsci-slide__preview, .nsci-slide__open { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; }
/* Media always fills the card (cropped, never letterboxed); the !important guards beat theme img/video sizing rules. */
.nsci-slider .nsci-slide__preview > img, .nsci-slider .nsci-slide__preview > video, .nsci-slider .nsci-slide__preview > iframe { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100% !important; height: 100% !important; min-width: 100%; min-height: 100%; max-width: none !important; max-height: none !important; margin: 0 !important; display: block; object-fit: cover !important; object-position: center; border: 0; pointer-events: none; }
/* The full-card trigger must stay transparent under Elementor kits and theme button rules. */
.nsci-slider .nsci-slide > button.nsci-slide__open,
.nsci-slider .nsci-slide > button.nsci-slide__open:hover,
.nsci-slider .nsci-slide > button.nsci-slide__open:focus,
.nsci-slider .nsci-slide > button.nsci-slide__open:active {
	appearance: none; display: block; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important;
	background: transparent !important; box-shadow: none !important; color: #fff !important; text-align: left; text-decoration: none;
	position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; min-height: 0; cursor: inherit;
}
.nsci-slider .nsci-slide > button.nsci-slide__open::before,
.nsci-slider .nsci-slide > button.nsci-slide__open::after { content: none !important; display: none !important; }
.nsci-slider .nsci-popup button::before, .nsci-slider .nsci-popup button::after { content: none !important; display: none !important; }
.nsci-slide__platform { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(15 19 19 / 75%); z-index: 1; }
.nsci-slide__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 18px; background: linear-gradient(transparent, rgb(0 0 0 / 30%) 30%, rgb(0 0 0 / 85%)); opacity: 0; transition: opacity .2s; }
.nsci-slide__open:hover .nsci-slide__overlay, .nsci-slide__open:focus-visible .nsci-slide__overlay { opacity: 1; }
.nsci-slide__caption { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.4; font-weight: 500; }
.nsci-social-stats { display: flex; gap: 18px; font-size: 14px; line-height: 1.5; }
.nsci-social-stats > span, .nsci-social-stats > a { display: inline-flex; align-items: center; gap: 7px; }
.nsci-slider .nsci-social-stats > a { color: inherit; text-decoration: none; }
.nsci-social-stats svg { width: 18px; height: 18px; }
.nsci-popup { position: fixed; inset: 0; width: min(460px, calc(100vw - 32px)); height: min(var(--nsci-popup-height), calc(100dvh - 40px)); max-height: calc(100vh - 40px); max-width: calc(100vw - 32px); margin: auto; padding: 0; border: 0; border-radius: 24px; background: #fff; color: #252525; box-shadow: 0 24px 80px rgb(0 0 0 / 30%); overflow: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; -webkit-overflow-scrolling: touch; }
.nsci-slider .nsci-popup { scrollbar-width: none; -ms-overflow-style: none; }
.nsci-slider .nsci-popup::-webkit-scrollbar { display: none; width: 0; height: 0; }
.nsci-popup::backdrop { background: rgb(0 0 0 / 72%); }
.nsci-slider .nsci-popup button.nsci-popup__close { position: sticky; float: right; top: 12px; right: 12px; z-index: 4; display: grid; place-items: center; width: 36px; height: 36px; padding: 0 !important; margin: 12px 12px -48px 0; border: 1px solid rgb(255 255 255 / 60%); border-radius: 50%; background: rgb(0 0 0 / 65%); color: #fff; font-size: 0 !important; line-height: 1; }
.nsci-popup__content { position: relative; display: flex; flex-direction: column; min-height: 100%; }
.nsci-popup__media { position: relative; flex: 0 0 auto; height: var(--nsci-media-height, min(480px, 58dvh)); min-height: 0; background: #111; overflow: hidden; transition: height .35s ease-in-out; }
.nsci-popup__media::after { content: ''; position: absolute; z-index: 0; right: 0; bottom: 0; left: 0; height: 100px; background: linear-gradient(transparent, rgb(0 0 0 / 55%)); pointer-events: none; }
.nsci-popup.is-full-media { overflow: hidden; }
.nsci-popup.is-dragging-details .nsci-popup__media { transition: none; }
.nsci-slider .nsci-popup__media > img, .nsci-slider .nsci-popup__media > video, .nsci-slider .nsci-popup__media > iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border: 0; }
.nsci-slider .nsci-popup__media > iframe { inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.nsci-popup__media video, .nsci-popup__media iframe { background: #111; }
.nsci-slider .nsci-popup button.nsci-popup__sound { position: absolute; right: 14px; bottom: 58px; z-index: 3; display: grid; place-items: center; width: 36px; height: 36px; padding: 0 !important; border: 1px solid rgb(255 255 255 / 60%); border-radius: 50%; background: rgb(0 0 0 / 65%); color: #fff; font-size: 0 !important; }
.nsci-popup__sound[aria-pressed="false"] .nsci-sound-on, .nsci-popup__sound[aria-pressed="true"] .nsci-sound-off { display: none; }
.nsci-slider .nsci-popup button.nsci-popup__toggle { position: absolute; inset: 0 0 54px; width: 100%; height: auto; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; z-index: 1; touch-action: pan-y pinch-zoom; }
.nsci-popup__controls { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 8px 14px; height: 54px; background: linear-gradient(transparent, rgb(0 0 0 / 70%)); }
.nsci-slider .nsci-popup button.nsci-popup__play { display: grid; place-items: center; width: 32px; height: 32px; padding: 0 !important; border: 0; border-radius: 50%; background: rgb(0 0 0 / 50%); color: #fff; }
.nsci-popup__timeline { flex: 1; min-width: 0; width: auto; accent-color: #fff; touch-action: pan-x; }
.nsci-slider .nsci-popup button.nsci-popup__details-toggle { position: absolute; z-index: 4; top: calc(var(--nsci-media-height) - 44px); left: 20%; width: 60%; height: 44px; display: grid; place-items: center; padding: 8px 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: #fff; box-shadow: none !important; touch-action: none; cursor: pointer; transition: top .35s ease-in-out, color .35s ease-in-out; }
.nsci-slider .nsci-popup button.nsci-popup__details-toggle:hover, .nsci-slider .nsci-popup button.nsci-popup__details-toggle:focus, .nsci-slider .nsci-popup button.nsci-popup__details-toggle:active { border: 0 !important; background: transparent !important; box-shadow: none !important; }
.nsci-slider .nsci-popup button.nsci-popup__details-toggle--video { top: calc(var(--nsci-media-height) - 98px); }
.nsci-slider .nsci-popup.is-details-open button.nsci-popup__details-toggle { top: var(--nsci-media-height); color: #111; }
.nsci-popup.is-dragging-details .nsci-popup__details-toggle { transition: none !important; }
.nsci-slider .nsci-popup__details-toggle svg { width: min(100%, 180px); max-width: 180px; height: 22px; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transform: rotate(var(--nsci-chevron-angle, 0deg)); transition: transform .35s ease-in-out; }
.nsci-popup.is-dragging-details .nsci-popup__details-toggle svg { transition: none; }
.nsci-popup__body[hidden] { display: none; }
.nsci-popup__body { flex: 0 0 auto; padding: 44px 22px 22px; }
.nsci-popup__account { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.nsci-popup__account strong { display: block; font-size: 18px; overflow-wrap: anywhere; }
.nsci-popup__account time { display: block; font-size: 13px; color: #767676; margin-top: 3px; }
.nsci-slider .nsci-popup__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nsci-popup__initial { display: grid; place-items: center; background: var(--nsci-accent); color: #fff; font-size: 24px; font-weight: 700; text-transform: uppercase; }
.nsci-popup__platform { margin-left: auto; color: #767676; }
.nsci-slider .nsci-popup a.nsci-popup__profile, .nsci-slider .nsci-popup a.nsci-popup__platform { color: inherit; text-decoration: none; }
.nsci-popup__description { white-space: pre-line; overflow-wrap: anywhere; font-size: 17px; line-height: 1.5; margin: 0 0 20px; }
.nsci-popup .nsci-social-stats { color: #767676; margin-bottom: 22px; }
.nsci-slider .nsci-popup a.nsci-popup__link { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 14px; border-radius: 28px; background: var(--nsci-accent); color: #fff; text-decoration: none; font-size: 16px; font-weight: 600; }
.nsci-slider .nsci-popup a.nsci-popup__link:hover, .nsci-slider .nsci-popup a.nsci-popup__link:focus { background: #d9430c; color: #fff; }
.nsci-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html.nsci-popup-open { overflow: hidden; }
/* Phones show one centered card with 10px gutters. The container width excludes the viewport padding. */
@media (max-width: 600px) {
	.nsci-slider__viewport { padding-left: 10px; padding-right: 10px; container-type: inline-size; }
	/* Each width and height has an earlier fallback for iOS versions without container query or svh units. */
	/* --nsci-mobile-card-height is set only by the mobile_height shortcode option. */
	.nsci-slide { width: calc(100vw - 20px); width: 100cqw; max-width: none; height: var(--nsci-mobile-card-height, calc(var(--nsci-card-height) * 1.2)); height: min(var(--nsci-mobile-card-height, calc(var(--nsci-card-height) * 1.2)), 90svh); }
}
@media (hover: none) { .nsci-slide__overlay { opacity: 1; background: linear-gradient(transparent 45%, rgb(0 0 0 / 75%)); } }
@media (prefers-reduced-motion: reduce) { .nsci-slide__overlay, .nsci-popup__details-toggle, .nsci-popup__details-toggle svg, .nsci-popup__media { transition: none !important; } }
