.image-with-text-overlay {
    position: relative;
    overflow: hidden;
    display: flex;
    background-size: cover;
    background-position: center;
}


.overlay-content {
    padding: 16px;
    position: absolute;
    z-index: 1;
}

.overlay-description,
.overlay-heading {
    margin: 0 0 8px;
}

.image-with-text-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.image-with-text-overlay .overlay-content {
    width: 100%;
}

.image-with-text-overlay.position-top-left {
    justify-content: flex-start;
    align-items: flex-start;
}

.image-with-text-overlay.position-top-center {
    justify-content: center;
    align-items: flex-start;
}

.image-with-text-overlay.position-top-right {
    justify-content: flex-end;
    align-items: flex-start;
}

.image-with-text-overlay.position-center-left {
    justify-content: flex-start;
    align-items: center;
}

.image-with-text-overlay.position-center-center {
    justify-content: center;
    align-items: center;
}

.image-with-text-overlay.position-center-right {
    justify-content: flex-end;
    align-items: center;
}

.image-with-text-overlay.position-bottom-left {
    justify-content: flex-start;
    align-items: flex-end;
}

.image-with-text-overlay.position-bottom-center {
    justify-content: center;
    align-items: flex-end;
}

.image-with-text-overlay.position-bottom-right {
    justify-content: flex-end;
    align-items: flex-end;
}
