/* WooCommerce штатный dialog не изменяется: overlay изолирован namespace-ом темы. */
.default-child-gallery-open { overflow: hidden; }
.default-child-gallery-lightbox { position: fixed; inset: 0; z-index: 2147483000; background: rgba(0,0,0,.94); color: #fff; display: flex; align-items: center; justify-content: center; }
.default-child-gallery-viewport { width: 100vw; height: 100vh; overflow: hidden; touch-action: pan-y; overscroll-behavior: contain; }
.default-child-gallery-track { display: flex; width: 100%; height: 100%; will-change: transform; }
.default-child-gallery-slide { flex: 0 0 100%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.default-child-gallery-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; transform-origin: center center; transition: transform 120ms ease; touch-action: none; }
.default-child-gallery-lightbox button { position: absolute; z-index: 2; border: 0; border-radius: 999px; width: 42px; height: 42px; background: rgba(255,255,255,.16); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.default-child-gallery-lightbox button:disabled { opacity: .3; cursor: default; }
.default-child-gallery-close { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.default-child-gallery-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.default-child-gallery-next { right: 14px; top: 50%; transform: translateY(-50%); }
.default-child-gallery-zoom-out { left: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
.default-child-gallery-zoom-in { left: 66px; bottom: max(14px, env(safe-area-inset-bottom)); }
.default-child-gallery-counter { position: absolute; z-index: 2; bottom: max(22px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); font: 600 14px/1.2 sans-serif; }
@media (prefers-reduced-motion: reduce) { .default-child-gallery-track, .default-child-gallery-slide img { transition: none !important; } }
