.kg-image-title {
    display: block;
    width: 100%;                /* full width of its container */
    max-width: 100%;
    box-sizing: border-box;
    margin: 4px 0 10px 0;           /* small gap below the image */
    padding: clamp(8px, 1.5vw, 14px) clamp(10px, 2vw, 18px);
    background-color: #f4f1ea;  /* warm neutral bar */
    border-top: 3px solid #D93A1E; /* green accent line */
    border-radius: 0 0 6px 6px;
    font-family: inherit;
    font-size: clamp(13px, 1.5vw, 17px); /* scales with screen, never below 13px */
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    color: #3a3a3a;
    letter-spacing: 0.01em;
    overflow-wrap: break-word;  /* long titles wrap instead of overflowing */
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* Slightly tighter corners on phones */
@media (max-width: 480px) {
    .kg-image-title {
        margin-top: 8px;
        border-radius: 0 0 4px 4px;
    }
}