/* Estilo base para la galerÃ­a */
#galerias {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    background-color: #333333ee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

#galerias img {
    object-fit: contain;
}

#galerias > .content {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
}

/* SecciÃ³n superior que contiene el botÃ³n de cerrar */
#galerias .a {
    position: relative;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    line-height: 0;
    flex-direction: row;
}

/* BotÃ³n de cerrar */
#galerias .btn-cerrar {
    color: white;
    /* font-size: 24px; */
    cursor: pointer;
    background-color: #ff4444;
    border-radius: 50%;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#galerias .btn-cerrar:hover {
    background-color: #ff2222;
}

/* SecciÃ³n central que contiene las imÃ¡genes y las flechas */
#galerias .b {
    position: relative;
    display: flex;
    width: 100%;
    align-content: center;
    justify-content: space-between;
    flex: 1 1 auto;
    overflow: hidden;
    flex-direction: row;
    padding-bottom: 100px;
}

#galerias .b * {
    position: relative;
}

/* Flechas izquierda y derecha para navegar */
#galerias .flecha {
    
    user-select: none;
    display: none;
    justify-content: center;
    align-items: center;
}

#galerias .flecha > div {
    color: white;
    cursor: pointer;
    margin: 20px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    width: 36px;
    height: 36px;
    background-color: #3f3b3b;
}

#galerias .flecha > div:hover {
    background-color: #666;
}

#galerias .flecha-izquierda {
}

#galerias .flecha-derecha {
    margin-left: 20px;
}

#galerias .flecha svg,
#galerias .btn-cerrar svg {
    width: 36px;
    height: 36px;
    fill: #fff;
}

/* Contenedor de imÃ¡genes */
#galerias .b .content {
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* overflow: hidden; */
    position: relative;
    flex: 1 1 auto;
    flex-direction: column;
    align-content: center;
}
#galerias .b .content * {
    flex: 1;
    display: flex;
    max-height: 100%;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
}

#galerias .b .content img {
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    display: block;
    max-height: 100%;
    max-width: 100%;
    height: min-content;
    flex: 1 1 auto;
}
#galerias > div > div.b > div.content > div {

}

/* Estilos para las miniaturas */
#galerias .c {
    position: relative;
    display: none;
    width: 100%;
    text-align: center;
    padding: 10px;
    color: white;
}

#galerias .c img.miniatura {
    width: 60px;
    height: 60px;
    margin: 0 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

#galerias .c img.miniatura:hover {
    border-color: #fff;
}

#galerias .c img.miniatura.activa {
    border-color: #ff4444;
}

/* PERSONALIZACION */
#galerias[controls] .flecha,
#galerias[controls] .c {
    display: flex;
}
#galerias[controls] .c {
    display: flex;
    justify-content: center;
    align-items: center;

}
#galerias[controls] .b {
    padding-bottom: 0;
}