/* Scoped to images decorated by this plugin. No changes to the category badge. */
.hrm-labeled-image {
    --hrm-label-background: #244d52;
    --hrm-label-color: #fff;
    --hrm-label-inset: 6px;
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 100%;
    vertical-align: middle;
    line-height: 0;
}
.hrm-labeled-image > img,
.hrm-labeled-image > picture,
.hrm-labeled-image > picture > img {
    display: block;
    max-width: 100%;
}
.hrm-image-labels {
    position: absolute;
    top: auto;
    bottom: var(--hrm-label-inset);
    right: var(--hrm-label-inset);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    max-width: calc(100% - 2 * var(--hrm-label-inset));
    pointer-events: none;
    text-align: left;
}
.hrm-image-label {
    display: block;
    box-sizing: border-box;
    max-width: 100%;
    padding: 3px 6px;
    border-radius: 4px;
    background: var(--hrm-label-background);
    color: var(--hrm-label-color);
    font-family: "Montserrat", sans-serif;
    font-size: 8px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: uppercase;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: none;
}
.hrm-image-label--source { background: #39464c; }
@media print {
    .hrm-image-label { border: 1px solid #244d52; box-shadow: none; }
}
