/* Estilos del modal */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay img {
    max-width: 80%;
    max-height: 80%;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.thumbnail img {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.thumbnail img:hover {
    opacity: 1;
}

/* Flechas de navegación */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 10px;
    font-size: 21px;
    cursor: pointer;

}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.6);
}

.prev {
    left: 10%;
}

.next {
    right: 10%;
}