.hover-animation-container {
    position: relative;
    overflow: hidden;
    height: 300px; /* This will be overridden by the Content Height control */
}

.hover-animation-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hover-animation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
}

.hover-animation-content {
    width: 100%;
    padding: 20px;
    transition: transform 0.3s ease-in-out;
}

.hover-animation-divider {
    width: 50px;
    height: 2px;
    background-color: #fff;
    margin-bottom: 10px;
}

.hover-animation-title {
    margin: 0 0 15px;
    font-size: 24px;
    font-weight: bold;
    word-wrap: break-word;
    hyphens: auto;
}

.hover-animation-description {
    margin: 0;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    word-wrap: break-word;
    hyphens: auto;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hover-animation-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

.hover-animation-container:hover .hover-animation-content {
    transform: translateY(0) !important;
}

.hover-animation-container:hover .hover-animation-description,
.hover-animation-container:hover .hover-animation-image {
    opacity: 1;
    max-height: 1000px; /* Adjust this value based on your needs */
}

.hover-animation-image img {
    max-width: 100%;
    height: auto;
}

/* Size Indicator in Background */
.hover-animation-size-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
    z-index: 5;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: capitalize;
}

/* Whole Box Link */
.hover-animation-box-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hover-animation-box-link:hover {
    text-decoration: none;
    color: inherit;
}