.product-photo-trigger {
    display: block;
    border-radius: .375rem;
    cursor: zoom-in;
    touch-action: manipulation;
}
.product-photo-trigger:focus-visible {
    outline: 3px solid #173d72;
    outline-offset: 3px;
}
.product-photo-preview {
    box-sizing: border-box;
    width: min(94vw, 1200px);
    max-width: calc(100% - 1rem);
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #223044;
    overflow: auto;
}
.product-photo-preview:modal { overscroll-behavior: contain; }
.product-photo-preview::backdrop {
    background: rgb(8 17 30 / .85);
    overflow: hidden;
    overscroll-behavior: contain;
}
.product-photo-panel { padding: .5rem; }
.product-photo-toolbar { display: flex; justify-content: flex-end; margin: 0 0 .5rem; }
.product-photo-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-width: 44px;
    min-height: 44px;
    padding: .4rem .8rem;
    border: 1px solid #d5deea;
    border-radius: 8px;
    background: #f5f8fc;
    color: #173d72;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    touch-action: manipulation;
}
.product-photo-close span { font-size: 1.65rem; line-height: 1; }
.product-photo-close:focus-visible { outline: 3px solid #173d72; outline-offset: 2px; }
.product-photo-close:active { background: #dce5ef; }
.product-photo-figure { margin: 0; }
.product-photo-preview .product-photo-full {
    position: static;
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 11rem);
    max-height: calc(100dvh - 11rem);
    margin-inline: auto;
    object-fit: contain;
}
.product-photo-figure figcaption {
    padding: .65rem .5rem .25rem;
    max-height: 4.5rem;
    overflow: auto;
    overflow-wrap: anywhere;
    text-align: center;
    font-size: .9rem;
}
@media (hover: hover) and (pointer: fine) {
    .product-photo-close:hover { background: #e8eef6; }
}
