/* Agrooz Mobile Pinch Zoom v2 - isolated, front-end-only styles. */
html.ampz-open,
body.ampz-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.ampz-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    background: #fff;
    touch-action: none;
    overscroll-behavior: contain;
    -webkit-tap-highlight-color: transparent;
}

.ampz-overlay.ampz-is-open {
    display: block;
}

.ampz-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.ampz-image {
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.ampz-button {
    position: absolute;
    z-index: 3;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(35, 35, 35, 0.72);
    color: #fff;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
}

.ampz-close {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
}

.ampz-prev,
.ampz-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 34px;
}

.ampz-prev { left: max(8px, env(safe-area-inset-left)); }
.ampz-next { right: max(8px, env(safe-area-inset-right)); }

.ampz-counter {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    color: #fff;
    background: rgba(35, 35, 35, 0.68);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1;
    direction: ltr;
}

@media (min-width: 1025px) {
    .ampz-overlay { display: none !important; }
}
