body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- ESTILOS DO MODAL --- */
#image-modal {
    animation: fadeIn 0.3s ease-in-out;
}

#modal-img {
    animation: zoomIn 0.3s ease-in-out;
    max-height: 90vh;
    max-width: 90vw;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

h1 {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
}

h3 {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
}




/* --- ESTILOS PARA OS BOTÕES DE NAVEGAÇÃO --- */
.modal-btn {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
}

.modal-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-btn#close-modal {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
}

/* --- ALTERAÇÃO PARA MOBILE --- */
/* Por defeito, esconde os botões de navegação lateral */
.modal-btn#prev-btn,
.modal-btn#next-btn {
    display: none;
}

/* Mostra os botões de navegação apenas em ecrãs maiores (desktops/tablets) */
@media (min-width: 768px) {
    .modal-btn#prev-btn,
    .modal-btn#next-btn {
        display: flex; /* Volta a mostrar os botões */
        top: 50%;
        transform: translateY(-50%);
    }
    .modal-btn#prev-btn {
        left: 20px;
    }
    .modal-btn#next-btn {
        right: 20px;
    }
}


/* --- ANIMAÇÕES --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
