.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;
	cursor: pointer;
	height: 30px;
	width: 30px;
    font-size: 1.5rem;
	background: grey;
	border-left: 1px solid rgba(60, 60, 60, .8);
	border-bottom: 1px solid rgba(60, 60, 60, .8);
}
.modal-close:hover{
	background: #9b9b9b;
}
.modal-content{
	background: white;
	position: absolute;
	padding: 10px;
	margin-top: 50px;
	width: 100%;
	max-width: 800px;
	max-height: 90vh;
	overflow-y: auto;
	overflow-x: hidden;
	padding-top: 40px;
	border-radius: 5px;
	box-shadow: 0px 0px 30px rgba(0, 0, 0, .3);
}
.dark .modal-content{
	background: #393838;
	color: lightgrey;
	border: 1px solid black;
}

.modal input{
    margin: 10px 0;
}

.modal h1,
.modal h2,
.modal h3{
    color: white;
}
.modal  .modal-header{
	margin-bottom: 20px;
	font-weight: bold;
}
.dark .modal  .modal-header{
	color: #c1cafb;
}
.modal .column h3.column-header{
	margin-top: 0;
}
.modal .left-panel{
}
.right-panel .button{
	margin: 5px 0;
	border: 1px solid grey;
}
.modal .left-panel,
.modal .right-panel{
	max-height: calc(90vh - 100px);
}

.modal img{
	max-width: 125px;
}
.modal textarea,
.modal input{
	width: 100%;
	max-width: 100%;
}
.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;
}
.modal.has-columns .column{
	overflow-y: auto;
}


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

.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;
}
.modal .lightbox-main img{
	max-width: 100%;
}


.prompt .button-area{
	margin-top: 20px;
}

.prompt .button-area .column{
	padding: 10px;
}

.prompt .modal-content .button{
    /* margin: 0 12px; */
}

.button.cancel{
	background: linear-gradient( 135deg, white, pink )
}

.media-library .modal-content{
	max-width: 80vw;
}
.media-library .left-panel{
	width: 300px;
}
.media-library .right-panel{
	max-width: calc( 100% - 300px);
}

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

}