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

.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;
}
/* TODO: Make the height of the overlay box a setting. */
.hover-box-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: 0.3s ease;
}

.hover-box-text:hover .hover-box-text-overlay {
    opacity: 0;
}

.hover-box-text-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: 0.3s ease;
}

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

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

.hover-box-text-meta a {
    color: white;
}

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

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

.hover-box-text-desc {
    display: block;
    width: 100%;
    opacity: 0;
    height: 0;
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    font-family: var(--fl-global-h1-font-family);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    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;
    }
}
