/* ============================================================
   Product Gallery Widget – gallery.css  v1.1.4
   ============================================================ */

/* ── RESET / BASE ─────────────────────────────────────────── */
.pgw-root *,
.pgw-root *::before,
.pgw-root *::after {
    box-sizing: border-box;
}
.pgw-root {
    --pgw-thumb-w: 96px;
    --pgw-gap: 10px;
    --pgw-radius: 8px;
    --pgw-arrow-size: 40px;
    --pgw-arrow-bg: rgba(255,255,255,.88);
    --pgw-arrow-color: #333;
    --pgw-active-color: #0a6ebd;
    user-select: none;
    -webkit-user-select: none;
    line-height: 0; /* prevent inline-block gap on imgs */
}

/* ── LAYOUT: vlevo (thumbnails left) ─────────────────────── */
.pgw-layout-left {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--pgw-gap);
}

/* ── LAYOUT: dole (thumbnails bottom) ─────────────────────── */
.pgw-layout-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--pgw-gap);
}

/* ── LAYOUT: bez náhledů ──────────────────────────────────── */
.pgw-layout-nothumbs {
    display: block;
}

/* ============================================================
   THUMBNAILS – levý sloupec
   ============================================================ */
.pgw-thumbs-left-col {
    width: var(--pgw-thumb-w);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pgw-thumbs-left-col .pgw-thumbs-scroll {
    flex: 1;
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* ============================================================
   THUMBNAILS – dolní řada
   ============================================================ */
.pgw-thumbs-bottom-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.pgw-thumbs-bottom-row .pgw-thumbs-scroll {
    flex: 1;
    overflow: hidden;
}

.pgw-thumbs-bottom-row .pgw-thumbs-track {
    flex-direction: row;
    flex-wrap: nowrap;
}

.pgw-thumbs-bottom-row .pgw-thumb-item {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

/* ── Track společný ──────────────────────────────────────── */
.pgw-thumbs-track {
    display: flex;
    flex-direction: column;
    gap: var(--pgw-gap);
    transition: transform .25s ease;
}

/* ── Thumb item ──────────────────────────────────────────── */
.pgw-thumb-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    opacity: .5;
    border-radius: calc(var(--pgw-radius) / 2);
    overflow: hidden;
    border: 2px solid transparent;
    transition: opacity .18s, border-color .18s, transform .15s;
    line-height: 0;
}

.pgw-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.pgw-thumb-item.active,
.pgw-thumb-item:hover {
    opacity: 1;
    border-color: var(--pgw-active-color);
}

.pgw-thumb-item:focus-visible {
    outline: 2px solid var(--pgw-active-color);
    outline-offset: 2px;
}

/* ── Thumbnail nav arrows ────────────────────────────────── */
.pgw-thumb-nav {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    opacity: .65;
    transition: opacity .15s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pgw-thumbs-left-col .pgw-thumb-nav {
    width: 100%;
}

.pgw-thumb-nav:hover { opacity: 1; }
.pgw-thumb-nav:disabled { opacity: .2; cursor: default; }

/* ============================================================
   HLAVNÍ OBRÁZEK
   ============================================================ */
.pgw-main-col {
    flex: 1;
    min-width: 0;
    position: relative;
}

.pgw-main-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--pgw-radius);
    background: #f4f4f4;
    line-height: 0;
}

/* ── Slides ─────────────────────────────────────────────── */
.pgw-slide {
    display: none;
    position: relative;
}

.pgw-slide.active {
    display: block;
}

.pgw-slide.pgw-fade-in {
    animation: pgwFadeIn .22s ease;
}

@keyframes pgwFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.pgw-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--pgw-radius);
    cursor: zoom-in;
}

/* ── Hlavní šipky ────────────────────────────────────────── */
.pgw-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--pgw-arrow-bg);
    border: none;
    border-radius: 50%;
    width: var(--pgw-arrow-size);
    height: var(--pgw-arrow-size);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
    color: var(--pgw-arrow-color);
    opacity: 0;
    transition: opacity .18s, background .15s;
    padding: 0;
    line-height: 0;
}

.pgw-arrow svg {
    width: 18px;
    height: 18px;
}

.pgw-main-img-wrap:hover .pgw-arrow,
.pgw-main-img-wrap:focus-within .pgw-arrow {
    opacity: 1;
}

.pgw-arrow:hover   { background: #fff; }
.pgw-arrow:active  { transform: translateY(-50%) scale(.93); }
.pgw-arrow-prev    { left: 12px; }
.pgw-arrow-next    { right: 12px; }

/* ── Zoom button ─────────────────────────────────────────── */
.pgw-zoom-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: var(--pgw-arrow-bg);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .18s;
    box-shadow: 0 1px 6px rgba(0,0,0,.12);
    color: var(--pgw-arrow-color);
    padding: 0;
}

.pgw-zoom-btn svg {
    width: 16px;
    height: 16px;
}

.pgw-main-img-wrap:hover .pgw-zoom-btn {
    opacity: 1;
}

/* ── Dots (mobilní) ─────────────────────────────────────── */
.pgw-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: none;  /* jen na mobilu */
    gap: 6px;
    z-index: 10;
    align-items: center;
}

.pgw-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    border: 1.5px solid rgba(255,255,255,.9);
    cursor: pointer;
    transition: background .2s, transform .15s;
}

.pgw-dot.active {
    background: #fff;
    transform: scale(1.25);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.pgw-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.pgw-lightbox.is-open {
    display: flex;
    flex-direction: column;
}

.pgw-lb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.93);
}

/* ── UI obal ─────────────────────────────────────────────── */
.pgw-lb-ui {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-height: 100vh;
    padding: 48px 0 0;
}

/* ── Zavřít ─────────────────────────────────────────────── */
.pgw-lb-close {
    position: absolute;
    top: 8px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,.8);
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    transition: color .15s, transform .15s;
    padding: 0;
    z-index: 2;
}
.pgw-lb-close:hover { color: #fff; transform: rotate(90deg); }

/* ── Stage ──────────────────────────────────────────────── */
.pgw-lb-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 94vw;
    gap: 8px;
}

/* ── Lightbox šipky ─────────────────────────────────────── */
.pgw-lb-arrow {
    background: rgba(255,255,255,.14);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    padding: 0;
}

.pgw-lb-arrow svg {
    width: 22px;
    height: 22px;
}

.pgw-lb-arrow:hover { background: rgba(255,255,255,.28); }

/* ── Obrázek ─────────────────────────────────────────────── */
.pgw-lb-img-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-height: 72vh;
}

.pgw-lb-img {
    display: block;
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity .2s;
}

.pgw-lb-img.pgw-lb-loading {
    opacity: .4;
}

/* ── Footer – counter + náhledy ─────────────────────────── */
.pgw-lb-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 16px;
}

.pgw-lb-counter {
    color: rgba(255,255,255,.6);
    font-size: 13px;
    font-family: sans-serif;
    line-height: 1;
}

.pgw-lb-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 90vw;
    padding: 4px 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.pgw-lb-thumbs::-webkit-scrollbar { display: none; }

.pgw-lb-thumb-item {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    cursor: pointer;
    opacity: .45;
    transition: opacity .18s;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
}

.pgw-lb-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pgw-lb-thumb-item.active,
.pgw-lb-thumb-item:hover {
    opacity: 1;
    border-color: rgba(255,255,255,.75);
}

/* ============================================================
   MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {

    /* Thumbnails left → přesunou se pod hlavní obrázek */
    .pgw-layout-left {
        flex-direction: column;
    }

    .pgw-thumbs-left-col {
        width: 100%;
        flex-direction: row;
        height: 68px;
    }

    .pgw-thumbs-left-col .pgw-thumbs-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .pgw-thumbs-left-col .pgw-thumbs-scroll::-webkit-scrollbar { display: none; }

    .pgw-thumbs-left-col .pgw-thumbs-track {
        flex-direction: row;
        height: 100%;
    }

    .pgw-thumbs-left-col .pgw-thumb-item {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
        aspect-ratio: unset;
    }

    /* Šipky thumbnailů – doleva/doprava na mobilu */
    .pgw-thumbs-left-col .pgw-thumb-nav {
        width: auto;
        height: 100%;
        flex-shrink: 0;
    }

    /* Hlavní šipky – vždy viditelné na mobilu */
    .pgw-arrow {
        opacity: .85;
        width: 34px;
        height: 34px;
    }
    .pgw-arrow svg { width: 15px; height: 15px; }
    .pgw-arrow-prev { left: 8px; }
    .pgw-arrow-next { right: 8px; }

    /* Zoom tlačítko viditelné */
    .pgw-zoom-btn { opacity: .85; }

    /* Dots viditelné na mobilu */
    .pgw-dots { display: flex; }

    /* Lightbox */
    .pgw-lb-arrow {
        width: 36px;
        height: 36px;
    }
    .pgw-lb-arrow svg { width: 18px; height: 18px; }

    .pgw-lb-img-box { max-height: 60vh; }
    .pgw-lb-img     { max-height: 60vh; }

    .pgw-lb-thumb-item {
        width: 46px;
        height: 46px;
    }
}

/* ── Smooth scroll v thumb kontejnerech ────────────────── */
.pgw-thumbs-scroll {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.pgw-thumbs-scroll::-webkit-scrollbar { display: none; }

/* ============================================================
   UPDATE 1.1.0 – Lightbox 100 %, zoom/pan, mobile/tablet layout
   ============================================================ */

/* Lightbox: stage nechává prostor pro spodní náhledy, fotka může být ve 100 % a posouvat se */
.pgw-lb-ui {
    height: 100vh;
    padding: 48px 0 0;
}

.pgw-lb-stage {
    flex: 1 1 auto;
    min-height: 0;
    max-width: 100vw;
    padding: 0 16px;
}

.pgw-lb-img-box {
    flex: 1 1 auto;
    width: 100%;
    height: calc(100vh - 148px);
    max-height: none;
    overflow: auto;
    justify-content: flex-start;
    align-items: flex-start;
    scrollbar-width: thin;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.pgw-lb-img-box.is-dragging {
    cursor: grabbing;
}

.pgw-lb-img {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    object-fit: unset;
    transform-origin: top left;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.pgw-lb-img-box.is-dragging .pgw-lb-img {
    cursor: grabbing;
}

.pgw-lb-footer {
    flex: 0 0 auto;
    min-height: 100px;
    background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0));
}

.pgw-lb-zoom-controls {
    position: absolute;
    top: 12px;
    left: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: sans-serif;
    line-height: 1;
}

.pgw-lb-zoom-controls button {
    min-width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    font-size: 15px;
    line-height: 1;
    transition: background .15s;
}

.pgw-lb-zoom-controls button:hover {
    background: rgba(255,255,255,.30);
}

.pgw-lb-zoom-reset {
    font-size: 12px !important;
    letter-spacing: .02em;
}

/* Tablet – užší náhledy a stabilnější rozložení */
@media (min-width: 641px) and (max-width: 1024px) {
    .pgw-layout-left {
        gap: 8px;
    }

    .pgw-thumbs-left-col {
        width: 76px;
    }

    .pgw-thumbs-bottom-row .pgw-thumb-item {
        width: 68px;
        height: 68px;
    }

    .pgw-lb-img-box {
        height: calc(100vh - 140px);
    }
}

/* Mobil – hlavní fotka první, pod ní posuvné náhledy po cca 4 kusech */
@media (max-width: 640px) {
    .pgw-main-col {
        order: 1;
        width: 100%;
    }

    .pgw-thumbs-left-col,
    .pgw-thumbs-bottom-row {
        order: 2;
        width: 100%;
    }

    .pgw-thumbs-left-col,
    .pgw-thumbs-bottom-row {
        height: auto;
    }

    .pgw-thumbs-left-col .pgw-thumb-nav,
    .pgw-thumbs-bottom-row .pgw-thumb-nav {
        display: none;
    }

    .pgw-thumbs-left-col .pgw-thumbs-scroll,
    .pgw-thumbs-bottom-row .pgw-thumbs-scroll {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 2px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .pgw-thumbs-left-col .pgw-thumbs-track,
    .pgw-thumbs-bottom-row .pgw-thumbs-track {
        flex-direction: row;
        flex-wrap: nowrap;
        height: auto;
        gap: 8px;
    }

    .pgw-thumbs-left-col .pgw-thumb-item,
    .pgw-thumbs-bottom-row .pgw-thumb-item {
        width: calc((100vw - 48px) / 4);
        max-width: 82px;
        min-width: 62px;
        height: auto;
        aspect-ratio: 1 / 1;
        flex: 0 0 calc((100vw - 48px) / 4);
    }

    .pgw-lb-ui {
        padding-top: 52px;
    }

    .pgw-lb-stage {
        padding: 0 8px;
        gap: 4px;
    }

    .pgw-lb-img-box {
        height: calc(100vh - 142px);
        max-height: none;
    }

    .pgw-lb-img {
        max-width: none;
        max-height: none;
    }

    .pgw-lb-footer {
        min-height: 86px;
        padding: 8px 10px 12px;
    }

    .pgw-lb-zoom-controls {
        left: 10px;
        top: 10px;
        gap: 4px;
    }

    .pgw-lb-zoom-controls button {
        min-width: 30px;
        height: 30px;
        padding: 0 8px;
    }

    .pgw-lb-close {
        top: 7px;
        right: 12px;
        font-size: 34px;
    }
}


/* ============================================================
   UPDATE 1.1.1 – desktop lightbox center + mobile thumbnails fix
   ============================================================ */

/* Lightbox: obrázek je v boxu centrovaný, ale při 100 % se pořád dá posouvat */
.pgw-lb-img-box {
    display: block;
    text-align: center;
}

.pgw-lb-img {
    margin-left: auto;
    margin-right: auto;
}

/* Rámeček aktivního náhledu má stejné zaoblení jako náhled/fotka */
.pgw-thumb-item,
.pgw-lb-thumb-item {
    border-radius: var(--pgw-radius);
}

.pgw-thumb-item img,
.pgw-lb-thumb-item img {
    border-radius: calc(var(--pgw-radius) - 2px);
}

@media (max-width: 640px) {
    /* Náhledy pod hlavní fotkou: 4 kusy přes celou šířku kontejneru, bez uříznutí */
    .pgw-thumbs-left-col,
    .pgw-thumbs-bottom-row {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        height: auto;
        overflow: hidden;
    }

    .pgw-thumbs-left-col .pgw-thumbs-scroll,
    .pgw-thumbs-bottom-row .pgw-thumbs-scroll {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0;
    }

    .pgw-thumbs-left-col .pgw-thumbs-track,
    .pgw-thumbs-bottom-row .pgw-thumbs-track {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        width: max-content;
        min-width: 100%;
        gap: 8px;
    }

    .pgw-thumbs-left-col .pgw-thumb-item,
    .pgw-thumbs-bottom-row .pgw-thumb-item {
        flex: 0 0 calc((100% - 24px) / 4);
        width: calc((100% - 24px) / 4);
        min-width: 0;
        max-width: none;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}


/* ============================================================
   UPDATE 1.1.2 – mobile square thumbnails + safe lightbox ratio
   ============================================================ */

/* Aktivní rámeček kopíruje zaoblení náhledu, bez ostrých rohů. */
.pgw-thumb-item,
.pgw-lb-thumb-item {
    border-radius: var(--pgw-radius) !important;
    overflow: hidden;
}

.pgw-thumb-item img,
.pgw-lb-thumb-item img {
    border-radius: calc(max(var(--pgw-radius) - 2px, 0px)) !important;
}

@media (max-width: 640px) {
    /* Celá galerie: hlavní fotka nahoře, náhledy pod ní. */
    .pgw-layout-left,
    .pgw-layout-bottom {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    .pgw-main-col {
        order: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .pgw-thumbs-left-col,
    .pgw-thumbs-bottom-row {
        order: 2 !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        overflow: hidden !important;
        margin-top: var(--pgw-gap) !important;
    }

    .pgw-thumbs-left-col .pgw-thumb-nav,
    .pgw-thumbs-bottom-row .pgw-thumb-nav {
        display: none !important;
    }

    .pgw-thumbs-left-col .pgw-thumbs-scroll,
    .pgw-thumbs-bottom-row .pgw-thumbs-scroll {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding: 0 !important;
    }

    .pgw-thumbs-left-col .pgw-thumbs-scroll::-webkit-scrollbar,
    .pgw-thumbs-bottom-row .pgw-thumbs-scroll::-webkit-scrollbar {
        display: none !important;
    }

    /* Důležité: width:max-content + procenta dělaly z náhledu úzkou nudli.
       Tady track necháváme jako flex řadu, ale položky počítáme vůči šířce viewportu/kontejneru. */
    .pgw-thumbs-left-col .pgw-thumbs-track,
    .pgw-thumbs-bottom-row .pgw-thumbs-track {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        transform: none !important;
    }

    .pgw-thumbs-left-col .pgw-thumb-item,
    .pgw-thumbs-bottom-row .pgw-thumb-item {
        display: block !important;
        flex: 0 0 calc((100% - 24px) / 4) !important;
        width: calc((100% - 24px) / 4) !important;
        min-width: calc((100% - 24px) / 4) !important;
        max-width: calc((100% - 24px) / 4) !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 0 !important;
    }

    .pgw-thumbs-left-col .pgw-thumb-item img,
    .pgw-thumbs-bottom-row .pgw-thumb-item img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Mobilní lightbox: zachovat poměr stran, žádné zúžení/deformace. */
    .pgw-lb-stage {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 6px !important;
    }

    .pgw-lb-img-box {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: calc(100vh - 150px) !important;
        max-height: calc(100vh - 150px) !important;
        overflow: auto !important;
        text-align: initial !important;
    }

    .pgw-lb-img {
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-width: calc(100vw - 84px) !important;
        max-height: calc(100vh - 170px) !important;
        object-fit: contain !important;
        margin: auto !important;
    }
}


/* ============================================================
   UPDATE 1.1.3 – mobile lightbox zoom fix
   ============================================================ */
.pgw-lb-img-box.is-zoomed {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    cursor: grab;
}

.pgw-lb-img-box.is-zoomed .pgw-lb-img {
    max-width: none !important;
    max-height: none !important;
}

@media (max-width: 640px) {
    .pgw-lb-zoom-controls {
        pointer-events: auto !important;
        z-index: 20 !important;
    }

    .pgw-lb-zoom-controls button {
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent;
    }

    .pgw-lb-img-box.is-zoomed {
        overflow: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}


/* ============================================================
   UPDATE 1.1.4 – smoother mobile zoom + no swipe while zoomed
   ============================================================ */
.pgw-lb-img-box.is-zoomed {
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
}

.pgw-lb-img-box.is-zoomed .pgw-lb-img {
    cursor: move;
}

@media (max-width: 640px) {
    .pgw-lb-img-box.is-zoomed {
        justify-content: flex-start !important;
        align-items: flex-start !important;
        overflow: auto !important;
        overscroll-behavior: contain !important;
        touch-action: pan-x pan-y !important;
    }
}
