.pivm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 20, 0.75);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    /* Starts as a single point in the center, then expands to cover everything */
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.5s cubic-bezier(.4, 0, .2, 1);
}

.pivm-backdrop.show {
    clip-path: circle(150% at 50% 50%);
}

.pivm-content {
    width: min(90vw, 900px);
    height: min(85vh, 700px);
    background: #fff;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    transform: scale(0.25);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(.34, 1.56, .64, 1) 0.12s, opacity 0.35s ease 0.12s;
}

.pivm-content.show {
    transform: scale(1);
    opacity: 1;
}

.pivm-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 10px 12px;
    background: #f5f5f7;
    border-bottom: 1px solid #e2e2e6;
    flex-shrink: 0;
}

.pivm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #333;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.pivm-btn:hover {
    background: #e8e8ec;
    transform: translateY(-1px);
}

.pivm-close:hover {
    background: #fdeaea;
    color: #d32f2f;
}

.pivm-body {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
}

.pivm-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

.pivm-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
