.rei-container-efaf9b7a {
    position: relative;
    overflow: hidden;
    display: inline-block; /* Change from flex to inline-block to shrink wrap the image */
    background-color: transparent;
    line-height: 0; /* Remove extra space below image */
}

.rei-base-image-efaf9b7a {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0; /* Hide original image, it's just for sizing the container */
    pointer-events: none;
}

/* Ensure canvas also respects container's border-radius by setting parent overflow */
.rei-canvas-wrapper-efaf9b7a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    border-radius: inherit; /* inherit from container */
}

.rei-canvas-wrapper-efaf9b7a canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.rei-content-efaf9b7a {
    position: absolute; /* Position absolute to overlay the image */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 2;
    text-align: center;
    pointer-events: none;
    line-height: normal; /* Reset line height for text */
}

.rei-title-efaf9b7a {
    margin: 0 0 10px 0;
    padding: 0;
}

.rei-subtitle-efaf9b7a {
    margin: 0;
    padding: 0;
}