/* Stable, neutral product-photo areas. Logos, hero and option images are unscoped. */
[data-product-photo-container] {
    display: block;
    width: 100%;
}
[data-product-photo-frame] {
    position: relative;
    aspect-ratio: 1 / 1;
}
[data-product-photo-frame]:not(.product-card__media) {
    display: block;
    width: 100%;
}
[data-product-photo-frame] > img[data-product-photo] {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
img[data-product-photo][hidden], [data-product-gallery] [hidden] {
    display: none !important;
}
.product-photo-message {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    padding: 16px;
    background: #f4f5f7;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

/* Preserve the original img flex item and square content box through picture. */
.product-card__media > picture[data-card-picture] {
    display: block;
    width: 100%;
    height: 100%;
}
