/* ══ GlowUp Gallery Widget ══ */
.gmp-gallery-wrap {
    direction: rtl;
    font-family: 'Segoe UI', Arial, sans-serif;
    user-select: none;
}

/* ── תמונה ראשית */
.gmp-gallery-main {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 16px;
    background: #f0f0f0;
    margin-bottom: 12px;
}
.gmp-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: opacity 0.25s ease;
    display: block;
}

/* ── מונה */
.gmp-gallery-counter {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* ── חצי ניווט */
.gmp-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
    color: #333;
    line-height: 1;
}
.gmp-gallery-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}
.gmp-gallery-prev { right: 12px; }
.gmp-gallery-next { left: 12px; }

/* ── זום */
.gmp-gallery-zoom {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
    backdrop-filter: blur(4px);
}
.gmp-gallery-zoom:hover {
    background: #fff;
    transform: scale(1.1);
}

/* ── תמונות קטנות */
.gmp-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 4px;
}
.gmp-gallery-thumb {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.gmp-gallery-thumb:hover {
    transform: scale(1.05);
}
.gmp-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid transparent;
    transition: border-color 0.2s;
    display: block;
}
.gmp-gallery-thumb.active img {
    border-color: #6ABFB0;
    box-shadow: 0 0 0 2px rgba(106,191,176,0.3);
}

/* ── Lightbox */
.gmp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.gmp-lightbox.open {
    display: flex;
    animation: gmpLbFade 0.2s ease;
}
@keyframes gmpLbFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.gmp-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    cursor: default;
}
.gmp-lightbox-close {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.gmp-lightbox-close:hover { background: rgba(255,255,255,0.3); }

.gmp-lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 32px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.gmp-lightbox-arrow:hover { background: rgba(255,255,255,0.3); }
.gmp-lightbox-prev { right: 20px; }
.gmp-lightbox-next { left: 20px; }

.gmp-gallery-empty {
    padding: 30px;
    text-align: center;
    color: #aaa;
    background: #f9f9f9;
    border-radius: 16px;
}

@media (max-width: 600px) {
    .gmp-gallery-main { height: 260px; }
    .gmp-gallery-thumb { width: 62px; height: 62px; }
    .gmp-lightbox-arrow { display: none; }
}
