.wml-magnetic-reveal-wrapper {
    --image-spacing: 40px;
    width: 100%;
    margin-top: 100px;
    /* customizable in settings */
    border-top: 1px solid #222;
    /* customizable */
}

/* The Row */
.wml-magnetic-row {
    display: flex;
    align-items: center;
    padding: 60px 80px;
    /* customizable */
    border-bottom: 1px solid #222;
    /* customizable */
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease;
}

/* Image Preview - Positioned to the left of the title */
.wml-magnetic-image {
    width: 0;
    /* Starts hidden */
    height: 250px;
    /* customizable */
    overflow: hidden;
    border-radius: 8px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    margin-right: 0;
    flex-shrink: 0;
    /* Fix for border-radius overflow on all sides */
    isolation: isolate;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

.wml-magnetic-image img {
    width: 350px;
    /* Matches hover width */
    height: 100%;
    object-fit: cover;
    /* transition is applied via JS for magnetic effect */
}



/* Hover State */
.wml-magnetic-row:hover .wml-magnetic-image,
.wml-magnetic-row.is-active .wml-magnetic-image {
    width: 350px;
    /* customizable via settings */
    opacity: 1;
    margin-right: var(--image-spacing);
    transform: translateX(0) scale(1);
}

.wml-magnetic-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}

.wml-magnetic-title {
    font-size: 4rem;
    font-weight: 600;
    margin: 0;
    transition: transform 0.4s ease;
    color: #ffffff;
}

.wml-magnetic-desc {
    max-width: 300px;
    font-size: 1rem;
    color: #777777;
    text-align: right;
    margin: 0;
}

/* Builder Mode Styles: Always show image */
.wml-is-builder .wml-magnetic-image {
    opacity: 1 !important;
    transform: none !important;
    width: 350px;
    /* customizable via settings */
    margin-right: var(--image-spacing);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .wml-magnetic-row {
        padding: 40px 30px;
        flex-direction: column;
        align-items: flex-start;
    }

    .wml-magnetic-content {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .wml-magnetic-desc {
        text-align: left;
        margin-top: 15px;
    }

    .wml-magnetic-image {
        height: 0;
        /* Before hover: takes 0 vertical space */
        width: 100%;
        margin: 0 !important;
        /* cancel all margins */
        padding: 0 !important;
        transform: scale(0.9);
        opacity: 0;
    }

    .wml-magnetic-row:hover .wml-magnetic-image,
    .wml-magnetic-row.is-active .wml-magnetic-image {
        width: 100%;
        height: 200px;
        margin: 0 0 var(--image-spacing) 0 !important;
        transform: scale(1);
        opacity: 1;
    }

    .wml-magnetic-image img {
        width: 100%;
    }

    /* Fallback builder mode for mobile */
    .wml-is-builder .wml-magnetic-image {
        width: 100% !important;
        height: 200px !important;
        margin-right: 0 !important;
        margin-bottom: var(--image-spacing) !important;
    }
}