.image-trail-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 12px;
    cursor: none;
    touch-action: none;
    user-select: none;
    height: unset !important;
    padding: 200px 0;
}

.image-trail-wrapper .image-trail-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.image-trail-wrapper .image-trail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #999;
    font-size: 14px;
    text-align: center;
}

.image-trail-img {
    width: 195px;
    aspect-ratio: 1.1;
    border-radius: 15px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    will-change: transform, filter;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.image-trail-content {
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
    z-index: 10;
    pointer-events: auto;
}

.image-trail-heading {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    color: #333333;
    line-height: 1.3;
}

.image-trail-description {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
}

.image-trail-button {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background-color: #0073aa;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-trail-button:hover {
    background-color: #005177;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.4);
}

.elementor-editor-active .image-trail-wrapper {
    cursor: default;
}

.image-trail-wrapper:hover .image-trail-img {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .image-trail-wrapper {
        cursor: default;
    }

    .image-trail-img {
        display: none !important;
    }

    .image-trail-wrapper::after {
        content: 'Image Trail: Mouse interaction only on desktop';
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        color: #666;
        font-size: 12px;
        text-align: center;
        padding: 20px;
    }

    .image-trail-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .image-trail-heading {
        font-size: 22px;
    }

    .image-trail-description {
        font-size: 14px;
    }

    .image-trail-button {
        padding: 10px 24px;
        font-size: 14px;
    }
}

.image-trail-wrapper.is-idle .image-trail-img {
    opacity: 0 !important;
}

.image-trail-wrapper.is-moving .image-trail-img {
    opacity: 1 !important;
}

.elementor-section .image-trail-wrapper {
    margin: 0 auto;
}
