.ProductImageFrame {
    --ProductImageFrameBackgroundBlur: 12px;
    --ProductImageFrameBackgroundBrightness: 1.12;
    --ProductImageFrameBackgroundOpacity: 0.82;
    --ProductImageFrameBackgroundSize: 116%;
    --ProductImageFrameBorderRadius: 0px;
    --ProductImageFrameSurfaceColor: #f5f5f5;

    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: var(--ProductImageFrameBorderRadius);
    background-color: var(--ProductImageFrameSurfaceColor);
}

.ProductImageFrameBackground,
.ProductImageFrameForeground {
    position: absolute;
    display: block;
    max-width: none;
    pointer-events: none;
    user-select: none;
}

.ProductImageFrameBackground {
    z-index: 0;
    top: 50%;
    left: 50%;
    width: var(--ProductImageFrameBackgroundSize);
    height: var(--ProductImageFrameBackgroundSize);
    object-fit: cover;
    transform: translate(-50%, -50%);
    filter:
        blur(var(--ProductImageFrameBackgroundBlur))
        brightness(var(--ProductImageFrameBackgroundBrightness));
    opacity: var(--ProductImageFrameBackgroundOpacity);
}

.ProductImageFrameForeground {
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ProductImageFrame--placeholder .ProductImageFrameBackground {
    display: none;
}
