.pv-grid { display: grid; gap: 20px; }
.pv-item { position: relative; cursor: pointer; overflow: hidden; line-height: 0; }
.pv-item img { width: 100%; height: auto; transition: 0.3s ease; }
.pv-item:hover img { transform: scale(1.05); }

/* Tag on Grid */
.pv-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Modal Overlay */
.pv-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Modal Box */
.pv-modal-content {
    background: #fff;
    width: 100%;
    max-width: 900px;
    border-radius: 15px;
    position: relative;
    padding: 40px;
    animation: pvFadeIn 0.3s ease;
}

@keyframes pvFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pv-modal-flex { display: flex; gap: 30px; align-items: flex-start; }
.pv-modal-left { flex: 1; }
.pv-modal-right { flex: 1; }
.pv-modal-right img { width: 100%; display: block; }

/* Close Button */
.pv-close {
    position: absolute;
    right: -15px;
    top: -15px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-size: 24px;
    font-weight: bold;
}

/* Button & Labels */
.popup-cat {
    background: #f0f0f0;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
}

#copyBtn {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pv-modal-flex { flex-direction: column-reverse; }
    .pv-modal-content { padding: 20px; margin-top: 50px; overflow-y: auto; max-height: 90vh; }
}