.prefix-image-overlay-card-wrapper {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
	min-height: 0px;
}

.prefix-image-overlay-card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.prefix-image-overlay-content-wrapper {
    position: relative;
    width: 100%;
    pointer-events: none; /* Allow clicks to pass through */
}

.prefix-content-gradient {
    position: absolute;
    top: -20px; /* Extra margin above content */
    left: 0;
    width: 100%;
    height: calc(100% + 20px);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 50%);
    z-index: 1;
    pointer-events: none;
}

.prefix-image-overlay-content {
    position: relative;
    padding: var(--space-s);
    color: var(--white);
    text-align: left;
    width: 100%;
    z-index: 2;
    pointer-events: none;
}

.prefix-subheading {
    font-size: var(--text-m);
}

.prefix-link {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: var(--space-xs);
}

.prefix-link .icon {
    display: inline-block;
    margin-left: 5px;
}

.prefix-link .text {
    display: inline-block;
}

.prefix-link:hover {
    text-decoration: underline;
    color: var(--white);
}

/* Clickable overlay styles */
.clickable-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    text-decoration: none;
    pointer-events: auto; /* Enable clicking */
}

.clickable-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none; /* Allow clicks to pass through to the link */
}
