/* Screen carousel — swipeable row of app screens (Smart Mobility, Neuroon).
   Recreates the old portfolio's gallery: native touch swipe + scroll-snap,
   mouse drag and arrow buttons on desktop. Markup: [data-carousel] > .sc-track > .sc-slide > img */
/* The row runs to the window edges; the first and last screen line up with the 1040px text column. */
.sc { --sc-pad: clamp(16px, 5vw, 40px); --sc-out: max(var(--sc-pad), calc((100vw - 1040px) / 2)); --sc-h: clamp(380px, 52vw, 580px); position: relative; margin-inline: calc(50% - 50vw); }
.sc-track {
  display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden;
  padding: 2px var(--sc-out); scroll-padding-inline: var(--sc-out);
  scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.sc-track::-webkit-scrollbar { display: none; }
.sc-track:focus-visible { outline: 2px solid var(--color-neutral-900); outline-offset: 4px; border-radius: var(--radius-lg); }
.sc-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.sc-track.is-dragging .sc-slide { pointer-events: none; }
.sc-slide { flex: none; margin: 0; scroll-snap-align: start; }
.sc-slide img {
  display: block; height: var(--sc-h); width: auto; aspect-ratio: var(--sc-ar, 9 / 16);
  border-radius: var(--radius-lg); border: 1px solid var(--color-neutral-200);
  background: var(--color-neutral-200); -webkit-user-drag: none;
}
.sc-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-inline: var(--sc-out); }
.sc-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--color-neutral-300); border-radius: 999px; background: transparent;
  color: var(--color-neutral-800); cursor: pointer;
}
.sc-btn svg { width: 18px; height: 18px; position: relative; z-index: 1; }
.sc-btn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.sc + .sc { margin-top: 56px; }
@media (hover: none) { .sc-track { cursor: auto; } }
/* Mouse and trackpad: no snapping at all, the row stops where it's left (arrows still align). */
@media (hover: hover) and (pointer: fine) { .sc-track { scroll-snap-type: none; } }
