/* The wrapper provides the context and extra padding */
.wml-curtain-reveal-wrapper {
    width: 100%;
}

/* Show text in builder natively without scroll since scroll triggers don't always work there */
.wml-is-builder .wml-curtain-reveal-content {
    opacity: 1 !important;
    transform: none !important;
}

.wml-curtain-reveal-slide {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-left: 8%;
    background-color: #111;
    background-size: cover;
    background-position: center;
}

/* The Dark Gradient Overlay */
.wml-curtain-reveal-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 1;
}

.wml-curtain-reveal-content {
    position: relative;
    z-index: 10;
    /* Text starts slightly lower and invisible */
    transform: translateY(40px);
    opacity: 0;
    will-change: transform, opacity;
}

.wml-curtain-reveal-title {
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.wml-curtain-reveal-subtitle {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}