/* <g-splat>: a Gaussian splat as a product picture (js/splat-stage.js). */
g-splat {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    cursor: grab;
    user-select: none;
}

g-splat:active {
    cursor: grabbing;
}

g-splat .g-splat-canvas,
g-splat .g-splat-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

g-splat .g-splat-poster {
    object-fit: contain;
    transition: opacity 0.4s linear;
}

g-splat.is-ready .g-splat-poster {
    opacity: 0;
    pointer-events: none;
}

g-splat .g-splat-credit {
    position: absolute;
    left: 50%;
    bottom: 0.5rem;
    transform: translateX(-50%);
    font-size: 12px;
    opacity: 0.7;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}
