.congresos-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 60px 0;
}

.galeria-item {
    overflow: hidden;
    border-radius: 12px;
}

.galeria-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: 0.4s ease;
    cursor: pointer;
}

.galeria-item:hover img {
    transform: scale(1.1);
}

/*imagenes*/


 
/* CONTENEDOR CENTRADO */
.cedula-imagen-container {
    display: flex;
    justify-content: center;  /* centra horizontal */
    margin-top: 40px;
}

/* IMAGEN PEQUEÑA */
.cedula-img {
    width: 450px;         /* tamaño que tú decides */
    max-width: 90%;       /* responsive */
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cedula-img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    text-align: center;
}

.modal-contenido {
    margin: auto;
    max-width: 80%;
    max-height: 80%;
    border-radius: 12px;
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {transform: scale(0.8);}
    to {transform: scale(1);}
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}


.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999; /* SUPER IMPORTANTE */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.overlay.activo {
    opacity: 1;
    visibility: visible;
}

.imagenOverlay {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.cerrarOverlay {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.video-vertical-container {
    width: 100%;
    max-width: 400px;      /* tamaño máximo en desktop */
    margin: 0 auto;        /* centrado */
    aspect-ratio: 9 / 16;  /* proporción vertical */
}

.video-vertical-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
