body{background-color: black;
    font-family: 'FuenteMain';
    background-image: url(MuroFondo.png);
    background-repeat: repeat;
    margin: 0;
    padding: 0;
    color: yellow;
}

@font-face {
    font-family: "FuenteMain";
    src: url(GotenborgFraktur.ttf) format(truetype);
    font-weight: normal;
    font-style: normal;
}

.CuerpoPagina{
    width: 950px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background-color: black;
    padding: 30px 20px;
    box-sizing: border-box;
    overflow: hidden;

}

#zoom-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Negro al 90% de opacidad */
    z-index: 99999; /* Por encima de absolutamente todo */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: zoom-out; /* El cursor cambia para indicar que al hacer clic se cierra */
    
    /* Animación suave de aparición */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Clase activa que muestra el zoom en pantalla */
#zoom-lightbox.lightbox-activo {
    opacity: 1;
    pointer-events: auto;
}

/* La imagen expandida */
#imagen-ampliada {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    cursor: default; /* El cursor vuelve a la normalidad al estar sobre la imagen */
}

/* El botón de cerrar (la X de la esquina) */
.cerrar-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: yellow; /* Tu color amarillo característico */
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cerrar-lightbox:hover {
    transform: scale(1.2);
}

img.ampliable {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

/* Opcional: un sutil efecto para que resalte al pasar el mouse */
img.ampliable:hover {
    transform: scale(1.02); 
}