/* Fundo escuro */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* Caixa do popup */
.popup {
    position: relative;
    width: 1080px;
    height: 1350px;
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    animation: aparecer 0.3s ease;
}

/* Imagem */
.popup img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Botão fechar */
.fechar {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
    transition: 0.2s;
}

.fechar:hover {
    background: rgba(255, 0, 0, 0.9);
    transform: scale(1.1);
}

@keyframes aparecer {
from {
    opacity: 0;
    transform: scale(0.9);
} to {
    opacity: 1;
    transform: scale(1);
}

}