/* Splendido — conditional visual effects */

.spl-hero__bg {
  opacity: var(--spl-hero-bg-opacity, 0.3);
}

/* Marquee speed */
.spl-fx-marquee_animation .spl-marquee__track {
  animation-duration: var(--spl-marquee-speed, 40s);
}

body:not(.spl-fx-marquee_animation) .spl-marquee__track {
  animation: none;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
}

/* Gallery */
body:not(.spl-fx-gallery_hover_zoom) .spl-gallery__item:hover img {
  transform: none;
}

body:not(.spl-fx-gallery_captions) .spl-gallery__caption {
  display: none;
}

/* Map */
.spl-map iframe {
  filter: grayscale(0.8) contrast(1.05) brightness(0.85);
}

.spl-map--color iframe {
  filter: none;
}

body:not(.spl-fx-map_grayscale) .spl-map iframe {
  filter: none;
}

/* Header */
body:not(.spl-fx-sticky_header_blur) .spl-header {
  backdrop-filter: none;
  background: var(--background);
}

.spl-header--static {
  position: relative;
}

/* Links */
body:not(.spl-fx-link_underline_hover) .spl-link-underline {
  transition: none;
}

/* Fade-in */
body.spl-fx-section_fade_in .spl-reveal {
  opacity: 0;
  transform: translateY(var(--spl-fade-distance, 40px));
  transition: opacity 0.7s ease, transform 0.7s ease;
}

body.spl-fx-section_fade_in .spl-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero overlay */
body:not(.spl-fx-hero_fade_overlay) .spl-hero__gradient {
  display: none;
}

/* Smooth scroll */
html {
  scroll-behavior: auto;
}

body.spl-fx-gsap_split_text .spl-split-text {
  overflow: hidden;
}

body.spl-fx-gsap_split_text .spl-split-text .line,
body.spl-fx-gsap_split_text .spl-split-text .char,
body.spl-fx-gsap_split_text .spl-split-text .word {
  display: inline-block;
  will-change: transform, opacity;
}

body.spl-fx-smooth_scroll {
  scroll-behavior: smooth;
}

html:has(body.spl-fx-smooth_scroll) {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  body.spl-fx-section_fade_in .spl-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .spl-marquee__track {
    animation: none !important;
  }
}
