.photo-trigger{position:relative;display:block;width:100%;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:zoom-in}
.photo-trigger:focus-visible,.product-gallery button:focus-visible{outline:3px solid #cf5559;outline-offset:3px}
.photo-trigger-label{position:absolute;right:.45rem;bottom:.45rem;padding:.4rem .65rem;border-radius:2rem;background:#10202b;color:#fff;font:700 .75rem/1.2 system-ui}
.product-gallery{box-sizing:border-box;width:min(1100px,calc(100% - 1rem));max-width:none;max-height:calc(100dvh - 1rem);border:1px solid #344450;border-radius:1rem;padding:0;background:#101a22;color:#fff}
.product-gallery::backdrop{background:#080d13dc}
.product-gallery header,.product-gallery footer{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.65rem 1rem}
.product-gallery h2{font:750 clamp(.95rem,3vw,1.3rem)/1.2 system-ui;color:inherit;margin:0}
.product-gallery button{min-width:44px;min-height:44px;border:1px solid #6c7982;border-radius:.6rem;background:#233440;color:#fff;font:700 1.3rem/1 system-ui;cursor:pointer}
.photo-stage{height:min(71dvh,730px);display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;overflow:hidden;touch-action:none;cursor:zoom-in;background:#f8f7f3;user-select:none}
.photo-stage.is-zoomed{cursor:grab}
.photo-stage.is-zoomed:active{cursor:grabbing}
.photo-stage img{display:block;width:auto;height:auto;max-width:100%;max-height:min(71dvh,730px);object-fit:contain;pointer-events:none}
.photo-controls{display:flex;align-items:center;gap:.5rem;flex:none;font:700 .85rem system-ui}
.photo-controls output{min-width:3.2em;text-align:center}
.photo-help{font:.83rem/1.4 system-ui}
@media(max-height:520px){.photo-stage{height:calc(100dvh - 8.6rem)}.photo-stage img{max-height:calc(100dvh - 8.6rem)}}

.photo-views:not([hidden]){display:flex;flex-wrap:wrap;gap:.45rem;padding:0 1rem .6rem}
.photo-views button{padding:.35rem .7rem;font-size:.82rem}
.photo-views button[aria-pressed="true"]{background:#f8f7f3;color:#10202b}
.product-gallery:has(.photo-views:not([hidden])) .photo-stage{height:min(62dvh,650px)}
.product-gallery:has(.photo-views:not([hidden])) .photo-stage img{max-height:min(62dvh,650px)}

.product-gallery .photo-stage img{width:auto;height:auto;background:transparent}
