dialog.wc-block-product-gallery-dialog .lumos-gallery-controls {
    position: absolute; inset: 0; z-index: 4; pointer-events: none;
}
dialog.wc-block-product-gallery-dialog .lumos-gallery-controls[hidden] { display: none !important; }
dialog.wc-block-product-gallery-dialog .lumos-gallery-arrow {
    position: absolute; top: var(--lumos-gallery-arrow-y, 50%); transform: translateY(-50%); pointer-events: auto;
    display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    min-width: 0; padding: 0; margin: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
    color: #fff; background: rgba(18,18,18,.76); box-shadow: 0 4px 20px rgba(0,0,0,.18);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); cursor: pointer;
    transition: opacity .15s ease, background-color .15s ease;
}
dialog.wc-block-product-gallery-dialog .lumos-gallery-arrow--previous { left: max(env(safe-area-inset-left, 0px), var(--lumos-gallery-prev-left, clamp(24px, 5vw, 80px))); }
dialog.wc-block-product-gallery-dialog .lumos-gallery-arrow--next { right: max(env(safe-area-inset-right, 0px), var(--lumos-gallery-next-right, clamp(24px, 5vw, 80px))); }
dialog.wc-block-product-gallery-dialog .lumos-gallery-arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
dialog.wc-block-product-gallery-dialog .lumos-gallery-arrow:hover:not(:disabled) { background: rgba(0,0,0,.94); }
dialog.wc-block-product-gallery-dialog .lumos-gallery-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(0,0,0,.65); }
dialog.wc-block-product-gallery-dialog .lumos-gallery-arrow:disabled { opacity: .3; cursor: default; }
dialog.wc-block-product-gallery-dialog .lumos-gallery-counter {
    position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
    padding: 7px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 24px;
    color: #fff; background: rgba(18,18,18,.76); font: 500 12px/1.2 system-ui, sans-serif;
    font-variant-numeric: tabular-nums; letter-spacing: .06em; white-space: nowrap;
}
dialog.wc-block-product-gallery-dialog.lumos-gallery-dialog-ready[open] {
    position: fixed; inset: var(--lumos-gallery-top, 0px) 0 0; width: 100%; max-width: 100%;
    height: calc(100vh - var(--lumos-gallery-top, 0px)); height: calc(100dvh - var(--lumos-gallery-top, 0px));
    max-height: calc(100vh - var(--lumos-gallery-top, 0px)); max-height: calc(100dvh - var(--lumos-gallery-top, 0px));
    margin: 0; padding: 0; overflow: hidden;
}
dialog.wc-block-product-gallery-dialog.lumos-gallery-dialog-ready .wc-block-product-gallery-dialog__content {
    display: flex !important; flex-direction: row !important; align-items: center !important;
    justify-content: center !important; box-sizing: border-box !important;
    width: 100% !important; height: 100% !important; min-height: 0 !important;
    padding: 64px 76px 72px !important; overflow: hidden !important; scroll-snap-type: none;
}
dialog.wc-block-product-gallery-dialog.lumos-gallery-dialog-ready .wc-block-product-gallery-dialog__content img[data-image-id] { display: none !important; }
dialog.wc-block-product-gallery-dialog.lumos-gallery-dialog-ready .wc-block-product-gallery-dialog__content img.lumos-gallery-current:not([hidden]):not([aria-hidden="true"]) {
    display: block !important; width: auto !important; height: auto !important; max-width: 100% !important;
    min-width: 0 !important; min-height: 0 !important; max-height: 100% !important;
    margin: 0 !important; padding: 0 !important; object-fit: contain !important;
    object-position: center !important; flex: 0 1 auto !important; scroll-snap-align: none;
    user-select: none; -webkit-user-drag: none; touch-action: pan-y pinch-zoom;
}
@media (max-width: 767px) {
    dialog.wc-block-product-gallery-dialog .lumos-gallery-arrow { width: 40px; height: 40px; }
    dialog.wc-block-product-gallery-dialog.lumos-gallery-dialog-ready .wc-block-product-gallery-dialog__content { padding: 64px 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
    dialog.wc-block-product-gallery-dialog .lumos-gallery-arrow { transition: none; }
}
