/* Estilos para o Pop-up de Imagem */
.image-popup-overlay {
    display: none; /* Escondido por padrão */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fundo semi-transparente */
    z-index: 10000; /* Garante que está acima de todos os outros elementos */
    display: flex; /* Usa flexbox para centralizar o conteúdo */
    justify-content: center;
    align-items: center;
}

.image-popup-content {
    background-color: #fff;
    padding: 15px; /* Adiciona um espaçamento interno */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 550px;      /* Largura máxima um pouco maior */
    width: 90%;            /* Garante que fica bem em ecrãs pequenos */
    max-height: 90vh;      /* Altura máxima um pouco maior */
    overflow: hidden;      /* Evita barras de scroll */
    box-sizing: border-box;/* Garante que o padding não aumenta o tamanho */
}

.popup-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block; /* Remove espaço extra abaixo da imagem */
    margin: 0 auto;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #f00;
}