/* Overlay */
#photo-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pp-fade-in 0.3s ease;
}

@keyframes pp-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Box */
#photo-popup-box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    animation: pp-slide-up 0.3s ease;
}

@keyframes pp-slide-up {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Image */
#photo-popup-box img {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Close button */
#photo-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
    transition: background 0.2s;
}

#photo-popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
}
