/* Estilos de proteção de imagens */
.protected-image {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    /* Removemos pointer-events: none para permitir que a imagem seja visível */
}

.image-protection-wrapper {
    position: relative;
    display: inline-block;
    line-height: 0;
    width: 100%; /* Garantir que o wrapper ocupe todo o espaço disponível */
    height: auto; /* Altura automática para manter proporção */
}

/* Corrigir wrapper em containers específicos */
.parish-main-image .image-protection-wrapper,
.patroness-image .image-protection-wrapper,
.priest-image .image-protection-wrapper,
.galeria-item .image-protection-wrapper {
    display: block;
    width: 100%;
    height: 100%;
}

.news-content .image-protection-wrapper,
.article-container .image-protection-wrapper {
    display: block; 
    width: 100%;
}

.image-protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.01); /* Praticamente invisível */
    z-index: 10;
    cursor: default;
    pointer-events: auto; /* Garante que a camada receba os eventos de mouse */
}

/* Adiciona uma mensagem quando o usuário tenta clicar com o botão direito */
.image-protection-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 12;
}

.image-protection-wrapper.show-message::after {
    content: "Imagem protegida";
    opacity: 1;
    visibility: visible;
}
