.overlay-down-image-box {
    --animation-time: 0.4s;
    --animation-short: 0.05s  ;
  }
.overlay-down-wrapper {
    height: 100%;
    padding-bottom: 15%;
    overflow: hidden;
    border-radius:  35px;
}

.class {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.overlay-down-image-box {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 35px;
    transition: transform var(--animation-short, 0.3s) ease;
}

.overlay-down-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--animation-short, 0.3s) ease;
    transition-delay:var(--animation-short, 0.3s);
    border-radius: 35px;
}

.overlay-down-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(0, 0, 0, 0.4); 
    display: flex;
    align-items: flex-end; 
    justify-content: center;
    transition: height var(--animation-short, 0.3s) ease; 
    overflow: hidden;
    transition: all linear var(--animation-time, 0.5s);
    transition: height 0.3s ease-in-out, transform 0.3s ease-in-out;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 0px 0px 35px 35px;
}

.overlay-down-text {
    position: absolute;
    padding: 10px;
    background-color: transparent;
    color: #fff;
    text-align: center;
    z-index: 1;
    pointer-events: none;
    top: calc(50% - 1em);
    left: 50%;
    transform: translate(-50%, 0);
    transition: top var(--animation-time, 0.5s) linear; 
    transition-delay: 0.1s ;
}
.overlay-down-sub-text {
    opacity: 0,8;
}
.overlay-down-image-box .overlay-down-sub-text {
    opacity: 1;
    transition: all 0.1s ease;
    transition-delay: var(--animation-time, 0.5s);
}
.overlay-down-image-box .overlay-down-overlay {
    height: 100%;
    transition: all ease calc( var(--animation-time, 0.5s) + var(--animation-time, 0.5s) );
}

.overlay-down-image-box:hover .overlay-down-overlay {
    height: 100%;
    transform: translate(0%, 100%);
}

.overlay-down-image-box:hover img {
    transform: scale(1.1); 
}

.overlay-down-image-box:hover .overlay-down-text {
    top: calc(105%);
}

.overlay-down-image-box:hover .overlay-down-sub-text {
    opacity: 0;
    transition-delay: 0;
}