/* "Naše práce": full-width carousel. One large photo sits in the centre at full opacity,
   the others flank it smaller and fainter, and the row moves from right to left. */
#ajax-content-wrap .fl-work-title {
  text-align: center;
}

#ajax-content-wrap .fl-carousel {
  --fl-w: clamp(190px, 23vw, 360px);
  --fl-pitch: calc(var(--fl-w) * 1.08);
  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);
  height: calc(var(--fl-w) * 1.25 + 70px);
  overflow: hidden;
  -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-carousel .fl-slide {
  --d: 4;
  --s: .7;
  position: absolute !important;
  top: 50%;
  left: 50%;
  display: block !important;
  width: var(--fl-w) !important;
  height: calc(var(--fl-w) * 1.25) !important;
  max-width: none !important;
  margin: calc(var(--fl-w) * -.625) 0 0 calc(var(--fl-w) * -.5);
  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);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transform: translateX(calc(var(--d) * var(--fl-pitch))) scale(var(--s));
  transition: transform .9s cubic-bezier(.45, .05, .2, 1), opacity .9s ease;
  will-change: transform, opacity;
}

/* a slide that wraps from one end to the other must not sweep across the screen */
#ajax-content-wrap .fl-carousel .fl-slide.no-anim {
  transition: none;
}

#ajax-content-wrap .fl-carousel .fl-slide[data-d="0"] {
  --s: 1;
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
  cursor: default;
}

#ajax-content-wrap .fl-carousel .fl-slide[data-d="1"],
#ajax-content-wrap .fl-carousel .fl-slide[data-d="-1"] {
  --s: .84;
  opacity: .62;
  z-index: 2;
  pointer-events: auto;
}

#ajax-content-wrap .fl-carousel .fl-slide[data-d="2"],
#ajax-content-wrap .fl-carousel .fl-slide[data-d="-2"] {
  --s: .7;
  opacity: .34;
  z-index: 1;
  pointer-events: auto;
}

@media only screen and (max-width: 690px) {
  #ajax-content-wrap .fl-carousel {
    --fl-w: 58vw;
    --fl-pitch: calc(var(--fl-w) * 1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  #ajax-content-wrap .fl-carousel .fl-slide {
    transition: none;
  }
}
