

:root {
    --fade-out-distance: 100%;
    --fade-in-distance: 100%;

    --img-pad-lg: 5%;
    --img-pad-md: 10%;
    --img-pad-sm: 30%;
}

.slide-loading-indicator { 
    display: block;
    position: fixed;
    z-index: 15;
    top: calc(50% - 25px);
    margin-left: calc(50% - 25px);
}
.slide-loading-indicator > img {
    width: 50px;
    height: 50px;
}

.slides-hint {
    display: none;
    cursor: pointer;
}
@media only screen and (min-width: 950px) {
    .slides-hint {
        height: 0px;
        width: 200px;
        display: block;
        position: fixed;
        z-index: 5;
        top: calc(100% - 250px);
        margin-left: calc(100% - 250px);
    }

    .slides-hint-content > img {
        width: 100%;
    }
}

.section-slides {
    position: relative;
    width: 100vw;
    max-width: 100%;
    min-height: 100vh;

    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--color-bg-slides);
}

.block-slide {
    width: 100%;
    height: 100vh;
    margin: auto;
    overflow: hidden;
    display: flex;
}

.section-clone {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 11;
}

.block-slide-content {
    height: 100%;
    max-height: 100%;
    width: 100%;
    max-width: 90%;
    margin: auto;
    
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    padding: 0rem;
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: 0.5px;
    text-align: justify;
    color: var(--color-font-slides);
}
.block-slide-content > .block-image {
    width: fit-content;
}
.block-slide-content img {
    max-width: 100%;
    max-height: 90vh;
}


.img-full img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.img-lg img {
    width: calc(100% - 2*var(--img-pad-lg));
    max-height: calc(100% - 2*var(--img-pad-lg));
    object-fit: contain;
}
.img-md img {
    width: calc(100% - 2*var(--img-pad-md));
    max-height: calc(100% - 2*var(--img-pad-md));
    object-fit: contain;
}
.img-sm img {
    width: calc(100% - 2*var(--img-pad-sm));
    max-height: calc(100% - 2*var(--img-pad-sm));
    object-fit: contain;
}

.copy-bg, .copy-bg *, .clone-content, .clone-content * {
    backface-visibility: hidden;
}

.clone-content > div, .clone-content * {
    min-height: 300vh !important;
    height: 300vh !important;
    max-height: 300vh !important;
    min-width: 300vw !important;
    width: 300vw !important;
    max-width: 300vw !important;
}
.copy-bg {
    z-index: 5;
    filter: blur(0px);

    min-height: 300vh !important;
    height: 300vh !important;
    max-height: 300vh !important;
    min-width: 300vw !important;
    width: 300vw !important;
    max-width: 300vw !important;
}
.copy-bg img {
    min-height: 300vh !important;
    height: 300vh !important;
    max-height: 300vh !important;
    min-width: 300vw !important;
    width: 300vw !important;
    max-width: 300vw !important;
}

/**
 * Animations scroll down
 */

@keyframes fadeOutDown {
    0% {
        z-index: 10;
        opacity: 1;
        transform: translateY(0px);
    }

    50% {
        opacity: 0;
    }
    
    100% {
        opacity: 0;
        transform: translateY(calc(-1 * var(--fade-out-distance)));
    }
}

@keyframes fadeOutDownBg {
    0% {
        opacity: 0.0;
        transform: translate(calc(-1 * var(--fade-out-distance)), calc(-0.15 * var(--fade-out-distance)));
    }

    50% {
        opacity: 0.5;
    }
    
    100% {
        opacity: 0.0;
        transform: translate(calc(1 * var(--fade-out-distance)), calc(0.15 * var(--fade-out-distance)));
    }
}

@keyframes fadeInDown {
    0% {
        z-index: 15;
        opacity: 0;
        transform: translateY(var(--fade-in-distance)) scale(0.9);
    }
    
    50% {
        opacity: 0.4;
    }
    
    100% {
        opacity: 1;
        transform: translateY(0) scale(1.0);
    }
}

/**
 * Animations scroll up
 */

@keyframes fadeOutUp {
    0% {
        z-index: 10;
        opacity: 1;
        transform: translateY(0px);
    }

    50% {
        opacity: 0;
    }
    
    100% {
        opacity: 0;
        transform: translateY(var(--fade-out-distance));
    }
}

@keyframes fadeOutUpBg {
    0% {
        opacity: 0.0;
        transform: translate(calc(1 * var(--fade-out-distance)), calc(0.15 * var(--fade-out-distance)));
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 0.0;
        transform: translate(calc(-1 * var(--fade-out-distance)), calc(-0.15 * var(--fade-out-distance)));
    }
}

@keyframes fadeInUp {
    0% {
        z-index: 15;
        opacity: 0;
        transform: translateY(calc(-1 * var(--fade-in-distance))) scale(0.9);
    }

    50% {
        opacity: 0.4;
    }
    
    100% {
        opacity: 1;
        transform: translateY(0) scale(1.0);
    }
}