[data-product-photo][aria-haspopup] { cursor: zoom-in; }
html:has(.product-photo-dialog[open]) { overflow: hidden; }
.product-photo-dialog {
    padding: 0; width: min(72rem, 94vw); max-height: 94dvh; margin: auto;
    border: 1px solid #b9cbd3; border-radius: 1rem; color: #19384a;
    background: #f5fafb; box-shadow: 0 2rem 7rem rgb(4 27 41 / 35%);
}
.product-photo-dialog::backdrop { background: rgb(4 20 33 / 78%); }
.product-photo-dialog[open] { animation: photo-enter .24s ease-out; }
.product-photo-dialog[open]::backdrop { animation: photo-shade .2s ease-out; }
.product-photo-frame { position: relative; }
.photo-full { display: block; width: 100%; max-height: 72dvh; object-fit: contain; background: #122637; }
.photo-close { position: absolute; top: .65rem; left: .65rem; width: 2.75rem; height: 2.75rem; border: 1px solid #b9cbd3; border-radius: 50%; font: 1.7rem/1 sans-serif; background: #fafdfd; color: #123950; cursor: pointer; }
.product-photo-frame footer { padding: .8rem 1rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .65rem; }
@keyframes photo-enter { from { opacity: 0; transform: translateY(.45rem) scale(.98); } }
@keyframes photo-shade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .product-photo-dialog[open], .product-photo-dialog[open]::backdrop { animation: none; } }
