/**Styling scrollable elements*/

.js-scroll {
  opacity: 0;
  transition: opacity 500ms;
}

.logged-in .js-scroll, .paged .js-scroll, .page-template-proposal .js-scroll, .single-crb_proposal .js-scroll {
	opacity: 1!important;
}

.js-scroll.scrolled {
  opacity: 1;
}

.scrolled.fade-in, .pre-load.fade-in {
  animation: fade-in 500ms ease-in-out both;
}

.scrolled.fade-in-bottom, .pre-load.fade-in-bottom {
  animation: fade-in-bottom 500ms ease-in-out both;
}

.scrolled.slide-left, .pre-load.slide-in-left {
  animation: slide-in-left 500ms ease-in-out both;
}

.scrolled.slide-right, .pre-load.slide-in-right {
  animation: slide-in-right 500ms ease-in-out both;
}

/* ----------------------------------------------
 * Generated by Animista on 2021-2-11 23:32:31
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

@keyframes slide-in-left {
  0% {
    -webkit-transform: translateX(-6.25rem);
    transform: translateX(-6.25rem);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-in-right {
  0% {
    -webkit-transform: translateX(6.25rem);
    transform: translateX(6.25rem);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-in-bottom {
  0% {
    -webkit-transform: translateY(3.125rem);
    transform: translateY(3.125rem);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Infinite Scroll */

@keyframes image-scroller {
  from {transform: translateX(0)}
  to {transform: translateX(-50%)}
}

.image-scroller-wrapper {
  width: 100%;
  overflow-x: hidden;
}

.image-scroller-container {
  display: flex;
  width: 100vw;
  animation-name: image-scroller;
  animation-duration: 10s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.image-scroller-item {
  white-space: nowrap;
}

/* Dynamic Sticky Sidebar */

@media screen and (min-width: 48rem) {

:root {
  --space: 2rem;
  --space-xs: calc(var(--space) / 3);
  --space-sm: calc(var(--space) / 2);
  --space-md: calc(var(--space) * 2);
}

article.sticky-article {
  flex-basis: 0;
  flex-grow: 999;
}

aside.sticky-aside {
  --offset: var(--space);
  flex-grow: 1;
  align-self: start;
  position: sticky;
  top: var(--offset);
}
	
}

/* WIPE ON SCROLL */
:root {
--wipe-in: inset(0 0 0 0);
--wipe-bottom: inset(100% 0 0 0);
--wipe-left: inset(0 100% 0 0);
--wipe-top: inset(0 0 100% 0);
--wipe-right: inset(0 0 0 100%);
}

[transition-style] {
    animation-delay: var(--transition__delay, 0);
    animation-duration: var(--transition__duration, 2.5s);
    animation-timing-function: var(--transition__easing, cubic-bezier(.25, 1, .3, 1));
    animation-fill-mode: both;
    will-change:clip-path
}

@media (prefers-reduced-motion: reduce), print {
    [transition-style] {
        animation-duration: 1ms !important;
        transition-duration: 1ms !important;
        animation-iteration-count:1 !important
    }
}

@keyframes wipe-in-top {
    0% {
        -webkit-clip-path: var(--wipe-top);
        clip-path:var(--wipe-top)
    }

    to {
        -webkit-clip-path: var(--wipe-in);
        clip-path: var(--wipe-in)
    }
}

[transition-style="in:wipe:down"], [transition-style="in:wipe:top"] {
    animation-name:wipe-in-top
}

@keyframes wipe-in-right {
    0% {
        -webkit-clip-path: var(--wipe-left);
        clip-path:var(--wipe-left)
    }

    to {
        -webkit-clip-path: var(--wipe-in);
        clip-path: var(--wipe-in)
    }
}

[transition-style="in:wipe:right"] {
    animation-name:wipe-in-right
}

@keyframes wipe-in-bottom {
    0% {
        -webkit-clip-path: var(--wipe-bottom);
        clip-path:var(--wipe-bottom)
    }

    to {
        -webkit-clip-path: var(--wipe-in);
        clip-path: var(--wipe-in)
    }
}

[transition-style="in:wipe:bottom"], [transition-style="in:wipe:up"] {
    animation-name:wipe-in-bottom
}

@keyframes wipe-in-left {
    0% {
        -webkit-clip-path: var(--wipe-right);
        clip-path:var(--wipe-right)
    }

    to {
        -webkit-clip-path: var(--wipe-in);
        clip-path: var(--wipe-in)
    }
}

[transition-style="in:wipe:left"] {
    animation-name:wipe-in-left
}

.scrolled.wipe-top {
	animation: wipe-in-top 1000ms ease-in-out both;
}

.scrolled.wipe-bottom {
	animation: wipe-in-bottom 1000ms ease-in-out both;
}

.scrolled.wipe-right {
	animation: wipe-in-right 1000ms ease-in-out both;
}

.scrolled.wipe-left {
	animation: wipe-in-left 1000ms ease-in-out both;
}

/* DELAY */

section .scrolled:nth-child(1), .transition-delay-400 {
	animation-delay: 200ms;
}

section .scrolled:nth-child(2), .transition-delay-400 {
	animation-delay: 400ms;
}

section .scrolled:nth-child(3), .transition-delay-600 {
	animation-delay: 600ms;
}

section .scrolled:nth-child(4), .transition-delay-800 {
	animation-delay: 800ms;
}

section .scrolled:nth-child(5), .transition-delay-1000 {
	animation-delay: 1000ms;
}

section .scrolled:nth-child(6), .transition-delay-1200 {
	animation-delay: 1200ms;
}
