:root{
    --bg:#F8FAFC;
    --card:#FFFFFF;
    --card-light:#F1F5F9;
    --accent:#2563EB;
    --text:#0F172A;
    --muted:#64748B;
}
/* ================================================================================================================================================ */
.ppsmf-entry{
    width:100%;
    display:flex;
    justify-content:center;
    margin:90px 0;
}
#ppsmfOpen{
    padding:16px 36px;
    background:var(--accent);
    color:white;
    border:none;
    border-radius:14px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.3s ease;
    box-shadow:0 10px 30px rgba(37,99,235,.25);
}
#ppsmfOpen:hover{
    transform:translateY(-2px);
    box-shadow:0 18px 50px rgba(37,99,235,.35);
}
/* ================================================================================================================================================ */
.ppsmf-modal{
    position:fixed;
    inset:0;
    background:rgba(3,7,18,.92);
    backdrop-filter:blur(16px);
    z-index:999999;
    display:none;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:40px 0;
}
.ppsmf-viewer{
    width:min(1200px,92%);
    height:auto;
    height:85vh;
    background:var(--card);
    border-radius:28px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    box-shadow:0 60px 140px rgba(0,0,0,.45);
    border:1px solid rgba(0, 191, 255, 1);
}
.ppsmf-image{
    position:relative;
    background:#0b0f1a;
    overflow:hidden;
}
.ppsmf-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    animation:imgIn .7s ease;
    transition: filter .35s ease, opacity .35s ease, transform .35s ease;
}
.ppsmf-image.is-exit img{
    opacity: 0;
    filter: blur(14px);
    transform: scale(1.04);
}
.ppsmf-image.is-enter img{
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
}
.ppsmf-main{
    display:grid;
    grid-template-columns:1.6fr 1fr;
    min-height:85vh;
}
@keyframes imgIn{
    from{
        transform:scale(1.08);
        opacity:.3;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}
.ppsmf-image::after{
    content:"";
    position:absolute;
    top:-20%;
    left:-50%;
    width:40%;
    height:140%;
    background:linear-gradient(90deg, transparent, rgba(255,255,255,.08), rgba(255,255,255,.18), rgba(255,255,255,.08), transparent);
    transform:skewX(-10deg);
    filter:blur(10px);
    opacity:0;
}
.ppsmf-image.glow-next::after{
    animation: sweepRight 1.8s ease;
    opacity:1;
}
.ppsmf-image.glow-prev::after{
    animation: sweepLeft 1.8s ease;
    opacity:1;
}
@keyframes sweepRight {
    from {
        left: -60%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    to {
        left: 160%;
        opacity: 0;
    }
}
@keyframes sweepLeft {
    from {
        left: 160%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    to {
        left: -60%;
        opacity: 0;
    }
}
/* ================================================================================================================================================ */
.ppsmf-info{
    padding:20px;
    padding-top:34px;
    display:flex;
    flex-direction:column;
    justify-content:top;
    color:var(--text);
    background:linear-gradient(to bottom, #fff, #fff, #26B9FF);
    border-left:1px solid black;
}
#ppsmfHeader{
    margin-top:62px;
    font-size:28px;
    line-height:1.15;
    font-weight:700;
    text-align:center;
}
#ppsmfTitle{
    margin-top:20px;
    font-size:24px;
    line-height:1.15;
    font-weight:700;
    text-align:center;
}
#ppsmfDesc{
    margin-top:18px;
    color:var(--muted);
    font-size:16px;
    line-height:1.7;
    text-align:center;
}
/* ================================================================================================================================================ */
.ppsmf-close,
.ppsmf-prev,
.ppsmf-next{
    position:absolute;
    width:54px;
    height:54px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.10);
    backdrop-filter:blur(14px);
    color:white;
    font-size:22px;
    cursor:pointer;
    transition:.25s ease;
}
.ppsmf-close{
    top:22px;
    right:22px;
}
.ppsmf-prev{
    left:22px;
    top:50%;
    transform:translateY(-50%);
}
.ppsmf-next{
    right:22px;
    top:50%;
    transform:translateY(-50%);
}
.ppsmf-close:hover,
.ppsmf-prev:hover,
.ppsmf-next:hover{
    background:var(--accent);
    transform:translateY(-50%) scale(1.08);
}
.ppsmf-close:hover{
    transform:scale(1.08);
}
/* ================================================================================================================================================ */
@media (max-width: 900px){

    .ppsmf-modal{
        padding:10px;
    }

    .ppsmf-viewer{
        width:100%;
        height:100%;
        border-radius:16px;
    }

    .ppsmf-main{
        display:flex;
        flex-direction:column;
        min-height:auto;
        height:100%;
    }

    .ppsmf-image{
        height:40vh;
        min-height:250px;
    }

    .ppsmf-info{
        flex:1;
        overflow-y:auto;
        padding:20px;
        border-left:none;
        border-top:1px solid rgba(0,0,0,.1);
    }

    #ppsmfHeader{
        margin-top:20px;
        font-size:22px;
    }

    #ppsmfTitle{
        font-size:20px;
    }

    #ppsmfDesc{
        font-size:15px;
        line-height:1.6;
    }

    .ppsmf-thumbs{
        width:100%;
        border-radius:12px;
        padding:10px;
        gap:8px;
    }

    .ppsmf-thumb{
        width:90px;
        height:60px;
    }

.ppsmf-modal{
    padding-top:env(safe-area-inset-top);
    padding-bottom:env(safe-area-inset-bottom);
}
@media (max-width: 768px){

    .ppsmf-modal{
        padding:0;
    }

    .ppsmf-viewer{
        width:100vw;
        height:100vh;
        border-radius:0;
    }

    .ppsmf-thumbs{
        width:100%;
        margin-top:0;
        border-radius:0;
    }
}
    .ppsmf-prev,
    .ppsmf-next{

        bottom:80px;
        top:auto;

        width:48px;
        height:48px;

        transform:none;
    }

    .ppsmf-prev{
        left:15px;
    }

    .ppsmf-next{
        right:15px;
    }
}
/* ================================================================================================================================================ */
.ppsmf-thumbs{
    width:min(1200px,92%);
    margin-top:16px;
    display:flex;
    gap:12px;
    padding:14px;
    background:rgba(255,255,255,.06);
    backdrop-filter:blur(18px);
    border-radius:18px;
    overflow-x:auto;
    overflow-y:hidden;
    justify-content:flex-start;
    scroll-behavior:smooth;
    flex-shrink:0;
    scroll-snap-type: x mandatory;
}
.ppsmf-thumbs::-webkit-scrollbar{
    display:none;
}
.ppsmf-thumb{
    position:relative;
    width:110px;
    height:70px;
    flex-shrink:0;
    border-radius:12px;
    overflow:hidden;
    cursor:pointer;
    border:2px solid transparent;
    transition:.25s ease;
}
.ppsmf-thumb{
    scroll-snap-align: center;
}
.ppsmf-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.ppsmf-thumb:hover{
    transform:translateY(-3px);
}
.ppsmf-thumb.active{
    border-color:var(--accent);
}
.ppsmf-thumb::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    height:3px;
    width:0%;
    background:var(--accent);
    transition:width .35s ease;
}
.ppsmf-thumb.active::after{
    width:100%;
}
/* ================================================================================================================================================ */
.ppsmf-counter{
    position:absolute;
    top:18px;
    left:18px;
    z-index:20;

    padding:8px 14px;

    background:rgba(0,0,0,.55);
    backdrop-filter:blur(12px);

    color:#fff;
    font-size:14px;
    font-weight:600;

    border-radius:999px;

    border:1px solid rgba(255,255,255,.15);
}
.ppsmf-image img{
    cursor: zoom-in;
}