/* MamboPerv Photo Gallery + Lightbox v1.0.1 */

/* ── Wrap ─────────────────────────────────────────────── */
div.mbp-gallery-wrap {
    margin: 28px 0 16px !important;
    padding: 18px 0 0 !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    display: block !important;
}

/* ── Header ───────────────────────────────────────────── */
div.mbp-gallery-wrap .mbp-gallery-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}
div.mbp-gallery-wrap .mbp-gallery-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: .95rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
    border: none !important;
}
div.mbp-gallery-wrap .mbp-gallery-title svg { flex-shrink: 0; stroke: #c348af; }
div.mbp-gallery-wrap .mbp-gallery-count {
    font-size: .72rem !important;
    font-weight: 400 !important;
    color: rgba(255,255,255,.4) !important;
    margin-left: 2px !important;
    text-transform: none !important;
}
div.mbp-gallery-wrap .mbp-gallery-lock-note {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: .72rem !important;
    color: rgba(255,255,255,.38) !important;
}
div.mbp-gallery-wrap .mbp-gallery-lock-note svg { stroke: rgba(255,255,255,.38); }

/* ── Thumbnail strip ──────────────────────────────────── */
div.mbp-gallery-wrap .mbp-gallery-strip {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 10px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
div.mbp-gallery-wrap .mbp-gallery-thumb {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    background: #1a1a1a !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}
div.mbp-gallery-wrap .mbp-gallery-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform .3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
}
div.mbp-gallery-wrap .mbp-gallery-thumb.is-unlocked {
    cursor: pointer !important;
}
div.mbp-gallery-wrap .mbp-gallery-thumb.is-unlocked:hover img {
    transform: scale(1.06) !important;
}
div.mbp-gallery-wrap .mbp-gallery-thumb.is-locked img {
    filter: brightness(.4) blur(2px) !important;
}

/* hover icon (unlocked) */
div.mbp-gallery-wrap .mbp-gallery-thumb__hover {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    background: rgba(195,72,175,0) !important;
    transition: opacity .22s, background .22s !important;
}
div.mbp-gallery-wrap .mbp-gallery-thumb.is-unlocked:hover .mbp-gallery-thumb__hover {
    opacity: 1 !important;
    background: rgba(195,72,175,.38) !important;
}
div.mbp-gallery-wrap .mbp-gallery-thumb__hover svg { stroke: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }

/* lock overlay (locked) */
div.mbp-gallery-wrap .mbp-gallery-thumb__overlay {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0,0,0,.28) !important;
}
div.mbp-gallery-wrap .mbp-gallery-thumb__overlay svg { stroke: rgba(255,255,255,.65); }

/* ── CTA (locked) ─────────────────────────────────────── */
div.mbp-gallery-wrap .mbp-gallery-cta {
    margin-top: 12px !important;
    text-align: center !important;
}
div.mbp-gallery-wrap .mbp-gallery-cta__btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 20px !important;
    border-radius: 4px !important;
    font-size: .83rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: #c348af !important;
    text-decoration: none !important;
    transition: background .2s !important;
}
div.mbp-gallery-wrap .mbp-gallery-cta__btn:hover { background: #a83898 !important; color: #fff !important; }

/* ── Lightbox ─────────────────────────────────────────── */
#mbp-gallery-lightbox {
    display: none;
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: center !important;
}
#mbp-gallery-lightbox.active {
    display: flex !important;
}
#mbp-gallery-lightbox .mbp-gallery-lightbox__backdrop {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    background: rgba(0,0,0,.93) !important;
}
#mbp-gallery-lightbox .mbp-gallery-lightbox__wrap {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 48px 60px !important;
    box-sizing: border-box !important;
}
#mbp-gallery-lightbox .mbp-gallery-lightbox__img-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 100% !important;
    max-height: 100% !important;
}
#mbp-gallery-lightbox .mbp-gallery-lightbox__img {
    max-width: 88vw !important;
    max-height: 80vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 4px !important;
    box-shadow: 0 8px 48px rgba(0,0,0,.7) !important;
    transition: opacity .18s !important;
    display: block !important;
}
#mbp-gallery-lightbox .mbp-gallery-lightbox__spinner {
    position: absolute !important;
    inset: 0 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
}
.mbp-spin { animation: mbp-spin 1s linear infinite; }
@keyframes mbp-spin { to { transform: rotate(360deg); } }

/* nav */
#mbp-gallery-lightbox .mbp-gallery-lightbox__close,
#mbp-gallery-lightbox .mbp-gallery-lightbox__prev,
#mbp-gallery-lightbox .mbp-gallery-lightbox__next {
    position: absolute !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.09) !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transition: background .2s !important;
    z-index: 2 !important;
}
#mbp-gallery-lightbox .mbp-gallery-lightbox__close:hover,
#mbp-gallery-lightbox .mbp-gallery-lightbox__prev:hover,
#mbp-gallery-lightbox .mbp-gallery-lightbox__next:hover { background: #c348af !important; }
#mbp-gallery-lightbox .mbp-gallery-lightbox__close { top: 14px !important; right: 14px !important; }
#mbp-gallery-lightbox .mbp-gallery-lightbox__prev  { left: 12px !important; top: 50% !important; transform: translateY(-50%) !important; }
#mbp-gallery-lightbox .mbp-gallery-lightbox__next  { right: 12px !important; top: 50% !important; transform: translateY(-50%) !important; }

/* footer */
#mbp-gallery-lightbox .mbp-gallery-lightbox__footer {
    position: absolute !important;
    bottom: 14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    z-index: 2 !important;
}
#mbp-gallery-lightbox .mbp-gallery-lightbox__counter {
    font-size: .78rem !important;
    color: rgba(255,255,255,.5) !important;
}
#mbp-gallery-lightbox .mbp-gallery-lightbox__play {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 5px 14px !important;
    border-radius: 3px !important;
    font-size: .76rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: rgba(195,72,175,.3) !important;
    border: 1px solid rgba(195,72,175,.5) !important;
    cursor: pointer !important;
    transition: background .2s !important;
}
#mbp-gallery-lightbox .mbp-gallery-lightbox__play:hover { background: #c348af !important; }

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 600px) {
    div.mbp-gallery-wrap .mbp-gallery-strip { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important; gap: 6px !important; }
    #mbp-gallery-lightbox .mbp-gallery-lightbox__prev { left: 4px !important; }
    #mbp-gallery-lightbox .mbp-gallery-lightbox__next { right: 4px !important; }
    #mbp-gallery-lightbox .mbp-gallery-lightbox__wrap { padding: 44px 44px !important; }
}

/* Slideshow active state (2026-07-16) */
#mbp-gallery-lightbox .mbp-gallery-lightbox__play.is-playing { background: #c348af !important; color: #fff !important; }
