.em-parallax-showcase {
    position: relative;
    width: 100%;
}

.em-parallax-section {
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    
}

.em-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 105%; 
    background-attachment: scroll;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    
    -webkit-will-change: transform;
    will-change: transform;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    z-index: 0;
}

.em-parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.em-repeated-image .em-parallax-bg {
    
    -webkit-transition: transform 0.1s ease-out;
    transition: transform 0.1s ease-out;
}

.em-sticky-image {
    position: relative;
}

.em-sticky-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-attachment: scroll;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    
    -webkit-will-change: transform, position;
    will-change: transform, position;
    z-index: 0;
    
}

.em-repeated-content {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 3;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: auto;
    width: 100% !important;
}

.em-parallax-content:not(.em-repeated-content) {
    position: relative;
    z-index: 3;
    min-height: inherit;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.em-parallax-caption {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
}

.em-parallax-caption-content {
    max-width: 800px;
    margin: 0 auto;
}

.em-parallax-caption h3 {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.em-parallax-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    min-height: 50vh;
}

.em-parallax-placeholder-content {
    text-align: center;
    color: #6c757d;
}

.em-parallax-placeholder-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.em-parallax-placeholder-content p {
    font-size: 1.1rem;
    margin: 0;
}

@media (max-width: 768px) {
    
    .em-parallax-showcase:not(.mobile-parallax-enabled):not(.mobile-parallax-active) .em-parallax-bg {
        background-attachment: scroll;
        transform: none !important;
        top: 0;
        height: 100%;
        background-size: cover;
    }

    .em-parallax-showcase.mobile-parallax-enabled .em-parallax-bg,
    .em-parallax-showcase.mobile-parallax-active .em-parallax-bg {
        background-attachment: scroll;
        height: 105%;
        background-size: cover;
        
    }
    
    .em-parallax-caption h3 {
        font-size: 1.8rem;
    }
    
    .em-parallax-section {
        min-height: 40vh;
    }
    
    .em-parallax-content {
        padding: 15px;
    }
    
    .em-repeated-content {
        padding: 15px;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
}

@media (max-width: 1024px) {
    .em-parallax-bg {
        background-attachment: scroll;
        
        top: 0;
        height: 102%;
        background-size: cover;
    }
    
    .em-parallax-content {
        padding: 18px;
    }
    
    .em-repeated-content {
        padding: 18px;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
}

@media (min-width: 1920px) {
    .em-parallax-bg {
        
        top: 0;
        height: 107%;
        background-size: cover;
    }
}

@media (prefers-reduced-motion: reduce) {
    .em-parallax-bg {
        transform: none !important;
        background-attachment: scroll;
    }
}

.em-parallax-showcase * {
    
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}