.modal{
	position: fixed;
	z-index: 9999;
	top: 0px;
	left: 0px;
	font-size: 1rem;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	background: rgba(0, 0, 0, .5);
}
.modal-close{
	position: absolute;
	z-index: 9999999;
	top: 0px;
	right: 0;
	background: lightblue;
	color: #3535f6;
	cursor: pointer;
	height: 30px;
	width: 30px;
	border: 1px solid #8a8ae4;
    font-size: 1.5rem;
	border-radius: 0 5px 0 0;
}
.modal-close:hover{
	background: white;
/* 	color: black; */
}
.modal-content{
	background: white;
	position: absolute;
	/* 	background: rgba(0, 0, 0, .3); */
	/* border: 1px solid rgba(0, 100, 255, .8); */
	padding: 10px;
	margin-top: 50px;
	width: 100%;
	max-width: 600px;
	max-height: 90vh;
	/* 	height: 70vh; */
	overflow-y: auto;
	overflow-x: hidden;
	padding-top: 40px;
	border-radius: 5px;
	box-shadow: 0px 0px 30px black;

	display: inline-block;
}
.dark .modal-content{
	background: var(--dark-content-bg);
	color: var(--dark-content-copy);
	border: 1px solid black;
}


.modal input{
    margin: 10px 0;
}

.modal h1,
.modal h2,
.modal h3{
    color: white;
}
.modal  .modal-header{
	color: #c1cafb;
	margin-bottom: 10px;
}
.modal .column h3.column-header{
	margin-top: 0;
}
/* .modal-row */
.modal .column{
	padding: 10px 10px 30px 10px;
	/* height: 90%; */
}
.modal .left-panel{
}
.modal .right-panel{
/* 	background: rgba(255, 255, 255, .05); */
/* 	background: rgba(0, 0, 0, .5); */
/*     border: 1px solid; */
}
.right-panel .button{
	margin: 5px 0;
	border: 1px solid grey;
/* 	background: #05121f; */
}

/* .modal-title{
	color: grey;
} */
.modal img{
	max-width: 125px;
}
.modal textarea,
.modal input{
	width: 100% !important;
	max-width: 100% !important;
	display: inline-block;
}
.modal label,
.modal input[type=checkbox]{
	display: inline-block;
}
.modal input[type=checkbox]{
	width: 20px;
	height: 20px;
	vertical-align: middle;
	margin: 0 10px;
}
.modal input[type=number]{
	width: auto;
}


.modal.has-columns .modal-content{
	overflow-y: hidden;
/* 	position: relative; */
/* 	height: 100% */
}
.modal.has-columns .column{
	overflow-y: auto;
/* 	height: 20vh; */
/* 	max-height: 40vh !important; */
}


/* MENU */
.modal.menu .modal-content{
	padding: 0;
	border: 10px solid #1b1a23;
/* 	position: relative; */
/* 	overflow-y: hidden; */
}

.modal.menu .right-panel{
    background: #14232f;
    color: lightgrey;
    max-width: 60%;
    padding: 0 10px;
    overflow-y: auto;
	max-height: 56vh;
	padding-bottom: 50px;
}
.modal.menu .left-panel{
	background: #242e2f;
	width: 40%;
}
.modal.menu .right-panel input{
	max-width: 90%;
}
.modal.menu .cat{
    width: 200px;
}
.modal.menu .cat-title{
	color: #f1dcdc;
}
.modal.menu .subcat-title{
	color: #ffdbdb;
}
.modal.menu span{
	font-weight: bold;
}
.modal.menu .subcat{
	padding-left: 10px;
}
.modal.menu .subsubcat{
	padding-left: 10px;
}
.modal.menu .bottom-left{
	position: absolute;
	bottom: 20px;
	left: 20px;
}
.modal.menu .modal-row{
	margin: 10px 0;
}

.modal.menu .left-panel div{
	cursor: pointer;
}
.modal.menu .menu-toggle{
	color: aliceblue;
}
.modal.menu .column{
	min-height: 100%;
}




.modal.lightbox{
	background: rgba(0, 0, 0, .9);
}
.modal.lightbox .modal-content{
	background: transparent;
	border: 0px;
	max-width: 1000px;
	margin-top: 0;
	height: 100%;
	background-repeat: no-repeat !important;
	background-position: center center !important;
	background-size: contain !important;
}
.modal.lightbox .modal-close{
	right: 5;
	top: 5;
/* 	calc(50% - 550px); */
}
.modal .lightbox-main img{
	max-width: 100%;
}


@media screen and (max-width: 800px){
	.modal-close{
		right: 0px !important;
	}

}