.eventgallery { background-image: url('/images/mystical-blue.png'); background-size: cover; } 
/* 1. Establish the container as the reference point */
.fade-wrapper {
    position: relative !important;
    display: inline-block;
    line-height: 0; /* Removes extra bottom spacing often added by Joomla */
}

/* 2. Base image stays in the normal document flow */
.img-bottom {
    display: block;
    width: 100%;
    height: auto;
}

/* 3. Force the overlay EXACTLY on top of the base image */
.img-top-fade {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 10; /* Ensures it sits on top */
    opacity: 0;
    
    /* Smooth slow fade settings */
    animation: slowFadeIn 5s ease-in forwards;
}

/* 4. The animation logic */
@keyframes slowFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}