/* "Naše práce": full-width row of photos scrolling endlessly from left to right (gallery.js);
   visitors can drag / swipe it in both directions. */
#ajax-content-wrap .fl-work-title {
  text-align: center;
}

#ajax-content-wrap .fl-work-marquee {
  --fl-w: clamp(180px, 19vw, 300px);
  --fl-gap: clamp(10px, 1.2vw, 20px);
  position: relative;
  /* break out of the row padding to span the whole viewport */
  width: 100vw;
  max-width: 100vw;
  margin: clamp(24px, 3vw, 56px) 0 0 calc(50% - 50vw);
  padding: 18px 0 40px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

#ajax-content-wrap .fl-work-marquee::-webkit-scrollbar {
  display: none;
}

#ajax-content-wrap .fl-work-track {
  display: flex !important;
  width: max-content;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

#ajax-content-wrap .fl-work-track .fl-work-tile {
  /* every photo has the same height; its width follows its own proportions (portrait or landscape) */
  flex: 0 0 auto;
  width: auto;
  margin: 0 !important;
  padding: 0 var(--fl-gap) 0 0;
  list-style: none;
}

#ajax-content-wrap .fl-work-tile img {
  display: block !important;
  width: auto !important;
  height: calc(var(--fl-w) * 1.25) !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover;
  border-radius: clamp(12px, 1.4vw, 22px);
  box-shadow: 0 6px 14px rgba(45, 24, 84, .10), 0 24px 50px rgba(45, 24, 84, .20);
}

/* Animated state only exists once the script has cloned the photos for a seamless loop. */
/* Once gallery.js runs, it moves the row itself (requestAnimationFrame) so visitors can also
   drag / swipe it both ways; vertical page scrolling on touch screens still works (pan-y). */
#ajax-content-wrap .fl-work-marquee.fl-ready {
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

#ajax-content-wrap .fl-work-marquee.fl-ready.is-dragging {
  cursor: grabbing;
}

.fl-ready .fl-work-track {
  will-change: transform;
}

#ajax-content-wrap .fl-work-marquee img {
  -webkit-user-drag: none;
  pointer-events: none;
}

@media only screen and (max-width: 690px) {
  #ajax-content-wrap .fl-work-marquee {
    --fl-w: 46vw;
  }
}

