/**
 * Content Fade Reveal On Scroll Widget Styles
 */

/* Ancestor-proof: let sticky work even inside overflow:hidden cards/themes */
.e-con:has(.reboot-content-fade-reveal),
.elementor-widget-reboot-content-fade-reveal,
.reboot-content-fade-reveal,
.reboot-content-fade-reveal__inner {
    overflow: visible !important;
    transform: none !important;
    filter: none !important;
    contain: none !important;
}

.reboot-content-fade-reveal {
    --reboot-cfr-bg: #2C3531;
    background: var(--reboot-cfr-bg);
    transition: background-color 0.45s ease;
    overflow: visible;
}

.reboot-content-fade-reveal__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
    overflow: visible;
}

.reboot-content-fade-reveal--image-right .reboot-content-fade-reveal__media {
    order: 2;
}

.reboot-content-fade-reveal--image-right .reboot-content-fade-reveal__content {
    order: 1;
}

.reboot-content-fade-reveal__media {
    position: relative;
    width: 100%;
    min-width: 0;
    /* Stretch to the text column's full height so the sticky child has a
     * scroll range.  `align-self: start` made this column only 100vh tall,
     * causing the image to release immediately. */
    align-self: stretch;
}

.reboot-content-fade-reveal__content {
    align-self: start;
}

.reboot-content-fade-reveal__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* JS fallback pins the image with a transform when sticky can't work */
.reboot-content-fade-reveal--sticky-fallback .reboot-content-fade-reveal__sticky {
    position: relative;
    will-change: transform;
}

.reboot-content-fade-reveal__image-stage {
    position: relative;
    width: 100%;
    height: min(660px, calc(100vh - 48px));
}

.reboot-content-fade-reveal__image {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    visibility: hidden;
    will-change: opacity;
}

.reboot-content-fade-reveal__image.is-active {
    opacity: 1;
    visibility: visible;
}

.reboot-content-fade-reveal__item {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 56px;
}

.reboot-content-fade-reveal__copy {
    width: 100%;
}

.reboot-content-fade-reveal__mobile-image {
    display: none;
    width: 100%;
    height: 340px;
    margin: 0 0 32px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.reboot-content-fade-reveal__title {
    margin: 0 0 18px;
    color: #ffffff;
}

.reboot-content-fade-reveal__text {
    color: #ffffff;
}

.reboot-content-fade-reveal__text p {
    margin: 0 0 22px;
}

.reboot-content-fade-reveal__button {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 24px;
    color: #494949;
    background: #ffffff;
    border: 0 solid transparent;
    border-radius: 10px;
    text-decoration: none;
    text-transform: uppercase;
    font-family: Roboto, sans-serif;
    font-size: 18px;
    font-weight: 400;
    transition-property: color, background, border-color, box-shadow, transform, opacity;
    transition-duration: 0.25s;
    transition-timing-function: ease;
}

@media (max-width: 767px) {
    .reboot-content-fade-reveal__inner {
        display: block;
        max-width: 100%;
    }

    .reboot-content-fade-reveal__media {
        display: none;
    }

    .reboot-content-fade-reveal__item {
        min-height: 620px;
        display: block;
        padding: 32px 20px 64px;
    }

    .reboot-content-fade-reveal__mobile-image {
        display: block;
    }
}
