.hover-box-text {
    position: relative;
    display: inline-block;
    overflow: hidden;
    min-height: 375px;
    object-fit: cover;
   /* border-radius: 10px; */
}

.hover-box-text-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

img.hover-box-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 375px;
}

.hover-box-text-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    min-height: 375px;
}

.hover-box-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    opacity: 1;
    transition: 0.3s ease;
    /* Background color or gradient is applied inline from PHP render method */
}

.hover-box-text-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: 0.3s ease;
    /* Background color or gradient is applied inline from PHP render method */
}

.hover-box-text-meta {
    position: absolute;
    display: block;
    width: 100%;
    bottom: 0;
    left: 0;
    padding: 30px;
    text-align: left;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hover-box-text:hover .hover-box-text-meta {
    transform: translateY(-20px);
}

.hover-box-text-heading {
    font-size:  clamp(1.75rem, 2vw, 2.5rem);
    font-weight: 700 !important;
    height: auto;
    color: #fff;
}

.hover-box-text-desc {
    display: block;
    width: 100%;
    opacity: 0;
    height: 0;
    font-size: clamp(0.875rem, 1vw, 1rem);
    color: #fff;
    margin-bottom: 0;
}

.hover-box-text:hover .hover-box-text-hover {
    opacity: 1;
}

.hover-box-text:hover .hover-box-text-desc {
    height: auto;
    opacity: 1;
}

@media screen and (max-width: 1024px) {
    .hover-box-text,
    .hover-box-image-text img {
        width: 100%;
        min-height: 300px;
    }
}
