.image-credit-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
}

a.image-credit-wrapper {
    text-decoration: none;
}

.image-credit-wrapper > img,
.image-credit-wrapper > picture,
.image-credit-wrapper > picture > img {
    display: block;
    max-width: 100%;
}

.image-credit-wrapper > .image-credit {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 20;
    display: block;
    max-width: calc(100% - 16px);
    padding: 3px 6px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.46);
    border-radius: 2px;
    text-align: right;
    white-space: normal;
    pointer-events: none;
    text-decoration: none;
}

@media (max-width: 600px) {
    .image-credit-wrapper > .image-credit {
        right: 6px;
        bottom: 6px;
        max-width: calc(100% - 12px);
        padding: 2px 5px;
        font-size: 9px;
    }
}
