/* Loaded before the first fullscreen product photo opens. */
.photo-dialog { width:min(1100px,95vw); max-width:1100px; }
.fullscreen-gallery h2 { padding-right:20px; font-size:18px; }
.fullscreen-image { height:min(65vh,650px); display:flex; justify-content:center; align-items:center; }
.fullscreen-image img { max-width:100%; max-height:100%; object-fit:contain; }
.product-photo-view { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; align-items:center; gap:12px; padding-top:16px; }
.product-photo-view .fullscreen-image { grid-column:2; min-width:0; }
.product-photo-view .photo-side-arrow { width:44px; height:44px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; color:var(--green); font-size:32px; line-height:1; }
.product-photo-view .previous { grid-column:1; grid-row:1; }
.product-photo-view .next { grid-column:3; grid-row:1; }
@media(max-width:760px) { .product-photo-view { grid-template-columns:32px minmax(0,1fr) 32px; gap:4px; } .product-photo-view .photo-side-arrow { width:32px; height:40px; font-size:28px; } }
.fullscreen-controls { display:flex; align-items:center; justify-content:center; gap:20px; margin-top:15px; }
.fullscreen-controls button { padding:5px 17px; font-size:25px; }

#dialog.photo-dialog{width:calc(100vw - 32px);max-width:none;height:calc(100dvh - 32px);max-height:none;padding:44px 16px 16px;overflow:hidden}
#dialog.photo-dialog #dialog-body{height:100%;min-height:0;margin:0}
#dialog.photo-dialog .product-photo-view{height:100%;min-height:0;padding:0;grid-template-rows:minmax(0,1fr)}
#dialog.photo-dialog .fullscreen-image{height:100%;min-height:0;max-height:100%;overflow:hidden}
#dialog.photo-dialog .fullscreen-image img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
#dialog.photo-dialog>.dialog-close{top:6px;right:6px;z-index:10;width:40px;height:36px;padding:0}
@media(max-width:600px){#dialog.photo-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px);padding:42px 4px 8px;border-radius:14px}}
#dialog.photo-dialog .fullscreen-image{display:block;overflow:auto;cursor:zoom-in;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom}
#dialog.photo-dialog .fullscreen-image img{display:block;user-select:none;-webkit-user-drag:none}
#dialog.photo-dialog .fullscreen-image.is-zoomed{cursor:zoom-out}
#dialog.photo-dialog .fullscreen-image.is-zoomed img{width:200%;height:200%;max-width:none;max-height:none}
#dialog.photo-dialog .fullscreen-image:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
