/* Galería fullscreen de ficha basada en PhotoSwipe */
.pswp {
    --pswp-bg: #000;
    --pswp-placeholder-bg: #000;
    z-index: 99999 !important;
}

.pswp__bg {
    opacity: 1 !important;
    background: #000 !important;
}

.pswp__button {
    width: 48px !important;
    height: 48px !important;
    opacity: .92 !important;
}

.pswp__button--arrow {
    display: block !important;
    opacity: .86 !important;
}

.pswp__button--arrow--prev,
.pswp__button--arrow--next {
    width: 56px !important;
    height: 72px !important;
    margin-top: -36px !important;
}

.pswp__counter {
    font-weight: 800;
    text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

.pswp__ar-thumbs {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: rgba(0,0,0,.72);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
}

.pswp__ar-thumbs::-webkit-scrollbar {
    display: none;
}

.pswp__ar-thumb {
    flex: 0 0 66px;
    width: 66px;
    height: 48px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    opacity: .72;
    cursor: pointer;
}

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

.pswp__ar-thumb.is-active {
    opacity: 1;
    border-color: #fff;
}

@media(max-width: 760px) {
    body.property-gallery-is-open .property-mobile-sticky-actions {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .pswp__button--arrow {
        display: block !important;
    }

    .pswp__button--arrow--prev,
    .pswp__button--arrow--next {
        width: 44px !important;
        height: 58px !important;
        margin-top: -29px !important;
    }

    .pswp__top-bar {
        padding-top: env(safe-area-inset-top);
    }

    .pswp__counter {
        font-size: 13px;
        padding-top: calc(14px + env(safe-area-inset-top));
    }

    .pswp__ar-thumbs {
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    }

    .pswp__ar-thumb {
        flex-basis: 62px;
        width: 62px;
        height: 46px;
    }
}
