/*****************************************/
/**************Editor CSS****************/
/*****************************************/

button[aria-label="Mediateca"] > span.block-editor-block-switcher__toggle

{background:url('../images/educamadrid.png') no-repeat 50% 50%;opacity:.74}
button[aria-label="Mediateca"] > span.block-editor-block-switcher__toggle:hover{opacity:1}
	@media screen and (min-width: 1px) {
		button[aria-label="Mediateca"] > span.block-editor-block-switcher__toggle{background-image:url('.get_site_url().'/wp-content/plugins/bloque-mediateca/images/educamadrid_xl.png);background-size:24px 24px}
	}
	button[aria-label="Mediateca"] > span.block-editor-block-switcher__toggle svg{display:none}


.capaModal{
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: none;
	z-index: 10000001;
	background-color: rgba(43,52,63,.9);
	display:block;
}

.mediateca-iframe body{
	width: 100%;
    margin: 0 auto;


}

.mediateca-browser-listado{
	display:block;
}
.mediateca-browser-listado .mediateca-listado-box{
	width: 75%;
float: left;
overflow: auto;
}



.components-modal__content, .components-modal__header{
	padding: none !important;
}
.mediateca-iframe{
	width: 100%;
	height: 86%;
}
.mediateca-iframe-body{
	width: 100%;
	height:100%;
}
.mediateca-modal{
	width: 100%;
	height: 100%;
}
.mediateca-modal .components-modal__header{
	margin-bottom: 0;
	
}

.mediateca-imagenes{
	text-align: center;
}


.bloque-editor-mediateca button:hover{
	padding: 4px;
}
.mediateca-modal, .mediateca-iframe, .mediateca_filtro, .mediateca-iframe-body{
	font-family:  Helvetica Neue,Helvetica,Arial,sans-serif;
	color: #354A5A;
}
.mediateca-modal h1.components-modal__header-heading, .header-widget-mediateca-modal h1{
    font-size: 1.5em;
    margin: 0 auto;
    font-weight: normal;
    color: #354A5A;
}

button.boton-cerrar{
	float:right;
	margin-top: -45px;
	z-index: 100000;
	position: relative;
}

.mediateca-modal #mediateca-button-modal, #mediateca-button-widget{
	float: right;
	font-size: 1.2em;
}
#mediateca-button-widget{
	margin-right: 2%;
}

.cerrar:before{
	
	content: "\f335";
	display: flex;
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	-webkit-font-smoothing: antialiased;
	font: normal 20px/1 'dashicons';
	vertical-align: top;
}
.dashicons-no-alt{
	width:auto;
	height:auto;
	margin: 0 auto;
	
	text-align: center;
}
.mediateca-browser{
	position: relative;
width: 100%;

height: 100%;

}
.link-url a{
	color: #0085ba;
    text-decoration: none;
    font-weight: bold;
}
.link-url a:hover{
	font-weight:normal;
}

.formulario-busqueda{
	display: flex;
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	border-bottom: solid 0.5px #e2e4e7;
	
	width: auto;		 
}
label.contenido{
	width: 100%;
    display: block;
	
	display: inline-flex;
	display: -webkit-inline-flex;
	display: -moz-inline-flex;
	display: -ms-inline-flex;
	display: -o-inline-flex;
}
label#contenido-tipo{
	width: 18%;
   
    
}

label#contenido-tipo-filtro{
	margin: 0 auto;
text-align: center;
display: block;
}

select#tipo_archivo{
    font-size: 0.9em;
	border: solid 0.5px gray;
  
	height: 30px;
}


.form-inline{
	padding-top: 7px;
	margin-left: 8%;
	display: inline-flex;
	display: -webkit-inline-flex;
	display: -moz-inline-flex;
	display: -ms-inline-flex;
	display: -o-inline-flex;
	-webkit-align-items: center;
		-moz-align-items: center;
		-o-align-items: center;
		-ms-align-items: center;
		align-items: center;					 
}
.mediateca_filtro, label.contenido{
	
	min-width: 390px;
	width: 100%;			  
	
} 
.mediateca-cargar-mas{
	
	margin-top: 25px;
}	

				  
.mediateca_listado {
    display:flex;
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	justify-content: center;
	-webkit-justify-content: center;
	-moz-justify-content: center;
	-ms-justify-content: center;
	-o-justify-content: center;	
	-webkit-align-items: center;
	-moz-align-items: center;
	-o-align-items: center;
	-ms-align-items: center;
	align-items: center;
	flex-wrap: wrap;
	-webkit-flex-wrap: wrap;
	-moz-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	-o-flex-wrap: wrap;
	
}
.mediateca-cargando{
	display:none;
	background-image: url("cargando.gif");
	background-repeat:no-repeat;
	width:100%;
	height:100%;
	background-position:center;
}			  
ul.mediateca_listado, .mediateca-filtro-cargar{
	padding:0 !important;
	
}

.mediateca-filtro-cargar{
	display: flex;
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	flex-direction: column;
	-webkit-flex-direction: column;
	-moz-flex-direction: column;
	-ms-flex-direction: column:
	-o-flex-direction: column;
	margin-top: 20px;
}


ul.mediateca_listado .title_listado{
	width: 100%;
	margin: 0 auto;
	text-align: center;
	color:#00648c;
	margin-top: 10px;

	margin-bottom: 10px;
	font-size: 1.2em;
}

.mediateca-browser .media-sidebar{
	width: 20%;
	position: fixed;
right: 0;
	font-size: 0.9em;
	padding-left: 2%;
	margin-right: 0.9%;
padding-right: 0.5%;
flex-grow: 0.1;
	-webkit-flex-grow: 0.1;
	-moz-flex-grow: 0.1;
	-ms-flex-grow: 0.1;
	-o-flex-grow: 0.1;
	
}


.mediateca-browser .media-sidebar{
	background: #f8f9f9;
	margin-top: 2%;
}



.mediateca-browser .media-sidebar img{
	border: solid 1px #e2e4e7;
	margin-bottom: 2%;
	width:220px;
}
#mediateca-button{
	margin-bottom: 30px;
margin-top: 30px;
}

.mediateca-browser .media-sidebar img.ePub, .mediateca-browser .media-sidebar img.Documentos{
	width:auto;
}					 
.mediateca-browser.contenido{
	width: 100%;
    float: right;
}
.mediateca_listado li {
    display: inline-block;
    padding: 5px;
    cursor: pointer;
    border: 1px solid transparent;
    margin-bottom: none !important;
	list-style:none;
}
.mediateca_listado li:hover  div.containerCrop{
	 box-shadow: 0 0 0 1px #fff, 1px 1px 3px 3px #0073aa;
	 -webkit-box-shadow: 0 0 0 1px #fff, 1px 1px 3px 3px #0073aa;
	 -o-box-shadow: 0 0 0 1px #fff, 1px 1px 3px 3px #0073aa;
	 -ms-box-shadow: 0 0 0 1px #fff, 1px 1px 3px 3px #0073aa;
	 -moz-box-shadow: 0 0 0 1px #fff, 1px 1px 3px 3px #0073aa;

}
.mediateca_listado li.selected div.containerCrop{

	background-color: blue;
	box-shadow: 0 0 0 1px #fff, 0 0 0 5px #0073aa;
	-webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 5px #0073aa;
	 -o-box-shadow:0 0 0 1px #fff, 0 0 0 5px #0073aa;
	 -ms-box-shadow:0 0 0 1px #fff, 0 0 0 5px #0073aa;
	 -moz-box-shadow:0 0 0 1px #fff, 0 0 0 5px #0073aa;
}
.containerCrop {
    outline: 0;
    width: 110px;
    height: 110px;
    overflow: hidden;
    margin: 10px;
    position: relative;
}


.containerCrop .icono {
    z-index: 10;
    display: block;
    width: 24px;
    height: 24px;
    background: #000 url(https://mediateca.educa.madrid.org/images/icons/sprite_black.gif?d=20180917) no-repeat 4px 4px;
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 0 7px 0 rgba(255,255,255,0.9);
    margin: 10px;
}

.crop {
    border: none;
    position: absolute;
    left: -100%;
    right: -100%;
    min-width: 100&;
    min-width: 100%;
    min-width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

.mediateca_filtro #boton-contenidos{
	background: #3498db;

  -webkit-border-radius: 5;
  -moz-border-radius: 5;
  border-radius: 5px;
  
  font-family: Arial;
  color: #ffffff;
  font-size: 14px;
  padding: 5px 10px 5px 10px;
  text-decoration: none;
}
.mediateca_filtro #boton-contenidos:hover{
	 background: #3cb0fd;
  text-decoration: none;
}
#busqueda-mediateca fieldset{
	border-style: solid;
}
#busqueda-mediateca input{
	
    width: 300px;
    height: 30px;
    border-style: solid;
    border-color: grey;
    border-width: 0.5px;
	font-size:0.9em;
}
#busqueda-mediateca input:focus{
	border-color: #5b9dd9;
	box-shadow: 0 0 2px rgba(30,140,190,.8);
}

#busqueda-mediateca .boton-busqueda{
	width: 37px;
	height: 30px;
	padding: 2px;
	border:none;
	background:#f7f7f7;
	border: solid 0.5px #c8c8c8;
}
#busqueda-mediateca .boton-busqueda:hover{
	background:white;
	box-shadow: inset 0 0 0 0.5px #e2e4e7,inset 0 0 0 2px #fff,0 1px 1px rgba(25,30,35,.2);
	border:none;
}
/***Iframe*************/
.mediateca-cargar-mas{
	height: 27px;
	color: #354A5A;
    border-color: #ccc;
    background: #f7f7f7;
    box-shadow: 0 1px 0 #ccc;
    vertical-align: top;
    text-decoration: none;
    font-size: 1em;
    line-height: 26px;
   
    padding: 0 10px 3px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    -webkit-appearance: none;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
	width: 160px;
	margin: 20px auto 20px auto;
}
.mediateca-cargar-mas:hover{
	
	color:black;
    border: solid 0.5px grey;
}

.mediateca-cargar-mas:hover {
   background: #A7A6A6;
   background-image: -webkit-linear-gradient(top, #A7A6A6, #6C6C6C);
   background-image: -moz-linear-gradient(top, #A7A6A6, #6C6C6C);
   background-image: -ms-linear-gradient(top, #A7A6A6, #6C6C6C);
   background-image: -o-linear-gradient(top, #A7A6A6, #6C6C6C);
   background-image: linear-gradient(to bottom, #A7A6A6, #6C6C6C);
   text-decoration: none;
}
.details{
	line-height: 20px;
	margin-bottom: 2%;
}

.attachment-details h2, .attachment-display-settings h2{
		font-weight: normal;
font-size: 1.3em;
}
.attachment-details .titulo, .attachment-details .descripcion{
	display:none;
}
.setting input, .setting textarea, .setting div{
	border:none;
	
	background:#f8f9f9;
	margin-left: 5px;
	color:#354A5A;
	font-family: Helvetica Neue,Helvetica,Arial,sans-serif;
	font-size: 0.9em;
	width: 100%;
}

.setting .texto-alternativo, .setting .ancho, .setting .alto {
	border: solid 0.5px #c6c8c8;	
	background:#ffffff;
}
.setting .ancho, .setting .alto{
	width:80px;
	margin-right: 5px;
}
.setting .texto-alternativo:focus, .setting .ancho:focus, .setting .alto:focus{
	border-color: #5b9dd9;
	box-shadow: 0 0 2px rgba(30,140,190,.8);
}
.mediateca .attachment-details{
	display:none;
}
.attachment-display-settings .alt span{
	width: 140px;
}
.attachment-display-settings .size{
	margin: 10px 0 10px 0;
}

.filename{
	font-weight: bold;
}

.attachment-details label{
	display:flex;
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	
}
.attachment-details .alt{
	flex-direction: column;
	-webkit-flex-direction: column;
	-moz-flex-direction: column;
	-ms-flex-direction: column:
	-o-flex-direction: column;
}

/****Front*************/

.wp-block-mediateca-bloque-mediateca{
	text-align: center !important;
	margin: 0 auto !important;
}

/****************Widgets*************************/
#filename-mediateca, #contenido-mediateca, #thumbnail-mediateca, #dimensions-mediateca{
	/**display:none;**/
}

#admin-widget-mediateca{
	    display: flex;
		display: -webkit-flex;
		display: -moz-flex;
		display: -ms-flex;
		display: -o-flex;
		justify-content: center;
		-webkit-justify-content: center;
		-moz-justify-content: center;
		-ms-justify-content: center;
		-o-justify-content: center;	
		height: 100%;
		align-items: center;
		-webkit-align-items: center;
		-moz-align-items: center;
		-o-align-items: center;
		-ms-align-items: center;
		height: 30%

}
.header-widget-mediateca-modal{
	height: 8%;
	border-bottom: solid 0.5px #e2e4e7;
	display: flex;
		display: -webkit-flex;
		display: -moz-flex;
		display: -ms-flex;
		display: -o-flex;
	align-items:center;
	-webkit-align-items: center;
		-moz-align-items: center;
		-o-align-items: center;
		-ms-align-items: center;
}

.header-widget-mediateca-modal h1{
	margin:0 auto;
	text-align: center;
	width:93%;
}

div#admin-widget-mediateca{
	    display: flex;
		display: -webkit-flex;
		display: -moz-flex;
		display: -ms-flex;
		display: -o-flex;
		width: 100%;

}
div#admin-widget-mediateca div{
	    display: flex;
		display: -webkit-flex;
		display: -moz-flex;
		display: -ms-flex;
		display: -o-flex;
		width: auto;
	
}
#boton-widget-mediateca
 {
	 display: flex;
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	width: 100%;
	text-align: center;
	height: 100%;
	font-size: 1.5em;
	justify-content: center;
	justify-content: center;
	-webkit-justify-content: center;
	-moz-justify-content: center;
	-ms-justify-content: center;
	-o-justify-content: center;	
	padding-bottom: 2%;
	padding-top: 2%;
}

.widget-mediateca-modal{
position: absolute;
left: 1%;
top: -3%;
width: 100%;
height: 100%;
display: none;
z-index: 10000001;

display: block;
}

#modal-widget-mediateca{
	background:white;
	display: block;
top:5%;
margin: 0 auto;
width: 98%;
height: 92%;
text-align: center;

}
.mediteca-iframe{
	height: 85%;
}

/******Formulario Widgets*************************/
#sel, .sav{
	font-weight:bold;
	padding-bottom: 5px;
	color: #006799;
}
.resumen-sel, .resumen-save{
	
padding: 10px;
height: 95%;
margin: 0 auto;

text-align: center;
}
#content-sel, .content-sav{
	height: 80%;
}




.widget-content iframe{
	width: auto;
	height: auto;
}


.sidebar  iframe{
	width:100%;
}


.widget-inside .widget-content iframe{
	max-width: 257px;
}



.box-form-mediateca{
	height: 60%;
	box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
	border: 1px solid #ddd;
	margin-bottom:20px;
}
#img-sel, iframe#img-sel, iframe#img-sel #file-card{
	height: 100%;
}
#img-sel img{
	height: 90%;
	width: auto;
	max-height: 250px;
}
 #img-sel iframe{
	 max-height: 300px;
	 max-width: 500px;
 }
 
#content-sav a{
	display:block;
}
.contenido-mediateca{
	margin-top: 20px;
	height:90px;
	margin-bottom:20px;
}
.label-contenido-mediateca{
	font-weight:bold;
}

.content-sav img{
	min-height:110px;
	max-height:250px;
	display: block;
margin: 0 auto;
object-fit: contain;
text-align: center;
max-width: 350px;
}
.title-sel, .title-sav{
	padding-bottom: 20px;
}
#box-padre{
	font-size: 1.2em;
}
#img-sel a{
	color: white;
	transition-property: none;

}

.post-mediateca{
	 /* display:none; */
}

@media (max-width: 1700px){
	.formulario-busqueda{
		margin-left:none;
		padding:none;
	}
	label#contenido-tipo{
		padding-top:none;
		width: auto;
	}
	
	.mediateca-iframe {

    
    height: 80%;

}
}
@media (max-width: 900px){
	.formulario-busqueda{
		flex-direction: column;
		-webkit-flex-direction: column;
		-moz-flex-direction: column;
		-ms-flex-direction: column:
		-o-flex-direction: column;
	}
	.mediateca_filtro, label#contenido-tipo{
		margin: 0 auto;
	}
	.mediateca-cargar-mas{
		width: 170px;	
		text-align: center;
		margin: 15px auto auto;
	}
	.components-modal__header{
		margin: 0 auto;
	}
	.form-inline{
		padding-top: 5px;
		margin: 0 auto;
	}
	label#contenido-tipo{
		padding-top: none;
	}
	
	
}	
	