img[data-bf-product-image] {
    object-fit: contain;
    object-position: center;
    max-width: 100%;
    background: #fff;
}

.bf-image-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 180px;
    aspect-ratio: 4 / 3;
    padding: 24px;
    border: 1px solid #e7dfeb;
    border-radius: 18px;
    background: linear-gradient(135deg, #f7edf3, #edf2fa);
    color: #6c6477;
    font: 500 14px / 1.6 Arial, sans-serif;
    text-align: center;
}

.product-picture,
.wg-photo {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    min-height: 280px;
}

.product-picture img[data-bf-product-image],
.wg-photo img[data-bf-product-image] {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    max-height: 520px;
    margin: auto;
}

.product-picture .bf-image-unavailable,
.wg-photo .bf-image-unavailable {
    aspect-ratio: 1;
    min-height: 280px;
}

.bf-search-photo,
.bf-cat-photo,
.product-image {
    overflow: hidden;
}

.bf-search-photo > .bf-image-unavailable,
.bf-cat-photo > .bf-image-unavailable,
.product-image > .bf-image-unavailable {
    height: 100%;
    min-height: 0;
    border-radius: inherit;
}

.related-card .bf-image-unavailable,
.wg-related-card .bf-image-unavailable {
    height: 185px;
    min-height: 0;
    margin-bottom: 12px;
}

.bf-image-unavailable {
    position: relative;
}

.bf-image-unavailable::before {
    content: "";
    position: absolute;
    inset: 5%;
    background: url("/Image/Error/image-unavailable.png") center / contain no-repeat;
}
