﻿#js-page-gallery {
    width: 100%
}

    #js-page-gallery .pg-card {
        border-radius: 22px;
        overflow: hidden;
        background: #eef2f6
    }

    #js-page-gallery .pg-media {
        position: relative;
        border-radius: 22px;
        overflow: hidden;
        background: #0b1220;
        aspect-ratio: 16/11;
        min-height: 280px
    }

    #js-page-gallery .pg-main {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover
    }

    #js-page-gallery .pg-media.is-multi {
        cursor: pointer
    }

    #js-page-gallery .pg-media.is-single {
        cursor: default
    }

    #js-page-gallery .pg-actions {
        position: absolute;
        right: 14px;
        bottom: 14px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        z-index: 3
    }

    #js-page-gallery .pg-action-btn {
        width: 46px;
        height: 46px;
        border-radius: 999px;
        border: 0;
        display: grid;
        place-items: center;
        background: #0f172a;
        color: #fff;
        box-shadow: 0 10px 30px rgba(0,0,0,.25);
        opacity: .95
    }

        #js-page-gallery .pg-action-btn:hover {
            opacity: 1;
            transform: translateY(-1px)
        }

    #js-page-gallery .pg-thumbs {
        display: flex;
        gap: 10px;
        padding: 12px 14px;
        background: rgba(15,23,42,.08);
        overflow: auto;
        scrollbar-width: none
    }

        #js-page-gallery .pg-thumbs::-webkit-scrollbar {
            width: 0;
            height: 0
        }

    #js-page-gallery .pg-thumb {
        border: 0;
        background: transparent;
        padding: 0;
        border-radius: 14px;
        flex: 0 0 auto;
        outline: none
    }

        #js-page-gallery .pg-thumb img {
            width: 90px;
            height: 58px;
            object-fit: cover;
            border-radius: 14px;
            display: block;
            box-shadow: 0 10px 24px rgba(0,0,0,.12);
            border: 2px solid transparent
        }

        #js-page-gallery .pg-thumb.is-active img {
            border-color: var(--rp-red,#e21a22)
        }

body.rp-lb-open {
    overflow: hidden
}

.pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none
}

    .pd-lightbox.is-open {
        display: block
    }

.pd-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    backdrop-filter: blur(10px);
}

.pd-shell {
    position: relative;
    max-width: min(1180px, calc(100vw - 24px));
    margin: 14px auto;
    height: calc(100vh - 28px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
}

@media (max-width:640px) {
    .pd-shell {
        inset: 12px;
        border-radius: 18px
    }
}

.pd-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: #fff
}

.pd-title {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .2px;
    opacity: .95;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%
}

.pd-actions {
    display: flex;
    gap: 10px
}

.pd-x {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,.14);
    color: #fff;
    display: grid;
    place-items: center;
    background: var(--rp-red, #e21a22);
}

    .pd-x:hover {
        background: rgba(255,255,255,.18)
    }

    .pd-x.js-pg-close {
        background: var(--rp-red,#e21a22)
    }

        .pd-x.js-pg-close:hover {
            filter: brightness(1.05)
        }

.pd-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    margin: 10px 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

    .pd-stage.is-zoom {
        overflow: auto;
        cursor: grab
    }

        .pd-stage.is-zoom:active {
            cursor: grabbing
        }

    .pd-stage::-webkit-scrollbar {
        width: 0;
        height: 0
    }

.pd-img {
    max-width: 100%;
    max-height: calc(100vh - 230px);
    width: auto;
    height: auto;
    display: block;
    transition: transform .18s ease;
}

.pd-stage.is-zoom .pd-img {
    max-width: none;
    max-height: none
}

.pd-navbtn {
    position: absolute;
    bottom: 0;
    z-index: 6;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 0;
    background: var(--rp-red,#e21a22);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 18px 50px rgba(0,0,0,.45)
}

    .pd-navbtn:hover {
        filter: brightness(1.05)
    }

.pd-prev {
    left: 18px
}

.pd-next {
    right: 18px
}

@media (max-width:640px) {
    .pd-navbtn {
        width: 52px;
        height: 52px;
        bottom: 16px
    }

    .pd-prev {
        left: 16px
    }

    .pd-next {
        right: 16px
    }
}
.rp-lb-stage {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .rp-lb-stage.is-zoom {
        display: block;
    }




.pd-gallery {
    position: relative;
    width: 100%
}

    .pd-gallery .pd-main {
        width: 100%;
        display: block;
        padding: 0;
        border: 0;
        background: transparent;
        border-radius: 22px;
        overflow: hidden;
        cursor: pointer;
    }

    .pd-gallery.pg-disabled .pd-main {
        cursor: default
    }

    .pd-gallery .pd-main-img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16/10;
        object-fit: cover;
        background: #e9eef3
    }

    .pd-gallery .pd-fabs {
        bottom: 0px;
        flex-direction: column;
        gap: 10px;
        z-index: 3; 
	display: block;
    width: 100%;
    text-align: center;	 padding-bottom:10px;
	
    }

    .pd-gallery .pd-fab {
        width: 46px;
        height: 46px;
        border-radius: 999px;
        border: 0;
        background: var(--rp-red,#e21a22);
        color: #fff;
        display: inline-block;
        place-items: center;
        cursor: pointer; margin-top:10px;
    }

        .pd-gallery .pd-fab:hover {
            filter: brightness(1.05)
        }

    .pd-gallery.pg-disabled .pd-fabs {
        display: none !important
    }

.pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none
}

    .pd-lightbox.is-open {
        display: block
    }

    .pd-lightbox .pd-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,.78)
    }

    .pd-lightbox .pd-shell {
        position: absolute;
        inset: 22px;
        border-radius: 24px;
        background: rgba(10,10,10,.72);
        backdrop-filter: blur(10px);
        box-shadow: 0 30px 80px rgba(0,0,0,.55);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        border: 1px solid rgba(255,255,255,.10)
    }

    .pd-lightbox .pd-topbar {
        height: 62px;
        padding: 14px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: #fff
    }

    .pd-lightbox .pd-title {
        font-weight: 800;
        font-size: 14px;
        letter-spacing: .2px;
        opacity: .95;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 68%
    }

    .pd-lightbox .pd-actions {
        display: flex;
        gap: 10px
    }

    .pd-lightbox .pd-x {
        width: 44px;
        height: 44px;
        border-radius: 999px;
        border: 0;
        background: var(--rp-red,#e21a22);
        color: #fff;
        display: grid;
        place-items: center;
        box-shadow: 0 18px 50px rgba(0,0,0,.45);
        cursor: pointer
    }

        .pd-lightbox .pd-x:hover {
            filter: brightness(1.05)
        }

    .pd-lightbox .pd-stage {
        flex: 1;
        min-height: 0;
        margin: 0 14px 14px;
        border-radius: 18px;
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.10);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden
    }

    .pd-lightbox .pd-img {
        max-width: 100%;
        max-height: calc(100vh - 230px);
        width: auto !important;
        height: auto !important;
        display: block;
        transition: transform .18s ease;
        border-radius: 16px;
        user-select: none;
        -webkit-user-drag: none
    }

    .pd-lightbox .pd-stage.is-zoom {
        overflow: auto;
        cursor: grab
    }

        .pd-lightbox .pd-stage.is-zoom:active {
            cursor: grabbing
        }

    .pd-lightbox .pd-stage::-webkit-scrollbar {
        width: 0;
        height: 0
    }

    .pd-lightbox .pd-navbtn {
        position: absolute;
        bottom: 18px;
        width: 56px;
        height: 56px;
        border-radius: 999px;
        border: 0;
        background: var(--rp-red,#e21a22);
        color: #fff;
        font-size: 30px;
        line-height: 1;
        display: grid;
        place-items: center;
        box-shadow: 0 18px 50px rgba(0,0,0,.45);
        cursor: pointer
    }

        .pd-lightbox .pd-navbtn:hover {
            filter: brightness(1.05)
        }

    .pd-lightbox .pd-prev {
        left: 18px
    }

    .pd-lightbox .pd-next {
        right: 18px
    }

@media (max-width:640px) {
    .pd-lightbox .pd-shell {
        inset: 12px;
        border-radius: 18px
    }

    .pd-lightbox .pd-topbar {
        height: 58px;
        padding: 12px 12px
    }

    .pd-lightbox .pd-title {
        max-width: 60%
    }

    .pd-lightbox .pd-stage {
        margin: 0 12px 12px
    }

    .pd-lightbox .pd-navbtn {
        bottom: 14px;
        width: 52px;
        height: 52px
    }

    .pd-lightbox .pd-prev {
        left: 14px
    }

    .pd-lightbox .pd-next {
        right: 14px
    }
}

body.rp-lb-open {
    overflow: hidden
}