.overlay{
    background: rgba(0,0,0, 0.3);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    z-index: 5000;
  }
  .overlay.active{
    visibility: visible;
  }
  .overlay .contenedor-imagen{
    background: #f8f8f8;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    width: 95%;
    height: 95%;
    text-align: center;
    padding: 10px;
    transition: .3s ease all;
    transform: scale(0.7);
    opacity: 0;
    border-radius: 5px;
  }
  .overlay .contenedor-imagen.active{
    opacity: 1;
    transform: scale(1);
  }
  .overlay .titulo-overlay{
    display: flex;
    justify-content: space-between;
  }
  .overlay .tituloImagen{
    margin-left: 1rem;
    font-size: 1.2rem;
  }
  .overlay .btn-cerrar-overlay{
    width: 24px;
    height: 24px;
    display: inline-block;
    transition: .3s ease all;
    opacity: 0.6;
    cursor: pointer;
    background: url('../img/cerrar.png');
    padding-right: 1rem;
    background-repeat: no-repeat;
  }
  .overlay .btn-cerrar-overlay:hover{
    opacity: 1;
  }
  .overlay .canvasImagenes{
    margin-top: 1%;
    height: 94%;
    padding: 0 2%;
    text-align: center;
  }
  .overlay .canvasImagenes #lista-imagenes{
    height: 98%;
    width: auto;
  }
  .img-overlay{
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: none;
  }
  .img-overlay.imgActivo{
    display: inline-block;
  }
  .overlay #lista-control{
    position: relative;
    bottom: 40px;
  }
  .overlay #lista-control ul{
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
  }
  .overlay #lista-control ul li{
    box-shadow: rgba(0, 0, 0, 0.19) 0px 5px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    width: 30px;
    height: 30px;
    background-color:#7EA1EE;
    border-radius: 50%;
    margin:0 8px;
    list-style-type: none;
  }
  .overlay #lista-control ul li.btnCrtActivo{
    background-color: #145af2;
  }