/* The source styles and responsive DOM are retained in the other CSS files. */
.slick-track { opacity: 1; }
.slick-list { touch-action: pan-y; }
.slick-slide img { -webkit-user-drag: none; }
/* Set widths before the first ResizeObserver callback to avoid an initial flash. */
/* Each slider sets --slides inline; the track is (2 × slides + 1) slide widths. */
.slick-slider { --slides: 1; }
.slick-track { width: calc((2 * var(--slides) + 1) * 100%); }
.slick-slide { width: calc(100% / (2 * var(--slides) + 1)); }
.slick-slide:first-child { margin-left: calc(100% / (2 * var(--slides) + 1)); }
@media (prefers-reduced-motion: reduce) {
  .slick-track { transition: none !important; }
}
/* Four-phone mobile galleries (Katarzyna's Better Off): four tilted phones need ~1320px, so below 1400px
   they wrap into two rows of two, each row matching the source's two-phone gallery. */
@media (min-width: 768px) and (max-width: 1399.98px) {
  .cv-gallery-4 { flex-wrap: wrap; row-gap: 3.5rem; max-width: 680px; margin-inline: auto; }
  .cv-gallery-4 > :nth-child(3) { padding-top: 6rem; }
}
/* YouTube cards (Bartosz's expertise section): a local thumbnail replaces the runtime iframe. */
.cv-video .cv-video-play { position: absolute; inset: 0; width: 68px; height: 48px; margin: auto; pointer-events: none; transition: transform 300ms; }
.cv-video:hover .cv-video-play { transform: scale(1.1); }
