/* Admin nav bar
------------------*/
.nav-divider {
	border-left: .1rem solid rgba(255, 255, 255, 0.2);
	margin: 0 0.25rem;
}
#adminNav .nav-link {
	--bs-nav-link-padding-y: 0;
}


/* Admin dashboard
--------------------*/
.dashboard .widget-box {
	background-color: var(--bs-body-bg);
	box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
}


/* Edit post
--------------*/
.editpost #title_field {
	font-weight: bold;
}
.editpost .post_meta {
	width: auto;
	float: none;
	clear: both;
}
.editpost .post_meta input[name^='meta_key'], .asset_meta input[name^='meta_key'] {
	width: 25%;
}
.editpost .post_meta input[name^='meta_value'], .asset_meta input[name^='meta_value'] {
	width: 65%;
}

#tag_list {
	margin: 0;
	padding: 0;
}
#tag_list li {
	display: inline-block;
}
#new_tag_container {
	display: block !important;
}


/* Edit post screen: featured images, linked assets
-----------------------------------------------------*/
.editpost .featured_image.dropdown-menu,
.editpost .linked_assets.dropdown-menu {
	box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
	min-width: 400px;
	padding: 1rem;
}

.editpost .featured_image ul,
.editpost .linked_assets ul {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
}
.editpost .featured_image li,
.editpost .linked_assets li.image-asset {
	border-radius: 2px;
	border: 1px solid #ddd;
	display: inline-block;
	height: 70px;
	padding: 4px;
	position: relative;
	vertical-align: top;
	width: 70px;
}
.editpost .featured_image li:hover,
.editpost .linked_assets li.image-asset:hover {
	border-color: #bbb;
}
.editpost .featured_image img,
.editpost .linked_assets img {
	position: absolute;
	top: 2px;
	left: 2px;
	z-index: 10;
}
.featured_image_change span.none,
.editpost .featured_image li.none > a {
	background: #eee;
	display: inline-block;
	font-size: 35px;
	height: 64px;
	left: 2px;
	line-height: 60px;
	position: absolute;
	text-align: center;
	top: 2px;
	width: 64px;
}
.featured_image_change span.none {
	position: static;
}
.editpost .featured_image input,
.editpost .linked_assets li.image-asset input {
	position: absolute;
	bottom: 3px;
	right: 3px;
	z-index: 20;
}
.editpost .linked_assets li.non-image-asset,
.editpost .linked_assets li.new-asset {
	clear: left;
	display: block;
}

/* (Tag) autosuggest
----------------------*/

#new_tag_container {
	display: block;
	position: relative;
}
.autosuggest {
	background: #fff;
	border: 1px solid #ccc;
	position: absolute;
	top: 29px;
	margin: 0;
	padding: 0;
}
.autosuggest li {
	display: block !important;
	padding: 3px;
}
.autosuggest li:hover, .autosuggest li.selected {
	background: #CFECF7;
	cursor: pointer;
}


/* Media manager
------------------*/
.mediaGrid > div {
	margin-bottom: 25px;
	text-align: center;
}
.mediaGrid img, .mediaGrid span {
	box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);
}
.mediaGrid span {
	background: #eee;
	display: block;
	font: 12px/185px 'Monaco', 'Inconsolata', 'DejaVu Sans Mono', monospace;
	overflow: hidden;
	text-align: center;
	text-overflow: ellipsis;
	height: 185px;
}


/* Managing comments
----------------------*/
.comment .entry-admin {
	margin-top: 1em;
	text-align: right;
}
.comment .entry-admin a {
	margin-left: 1em;
}
.comment .entry-admin a > i {
	margin: 0 0.1em 0 0;
}
.admin-delete {
	color: #b01;
}

.commentmanager .blogcomments {
	float: none;
	width: auto;
}
.commentmanager .comment {
	box-shadow: none;
	border: 1px solid #eee;
	border-radius: 2px;
}


/* Edit icon on tiled grids
-----------------------------*/
.polaroid {
	position: relative;
}
.polaroid > a.edit {
	background: #fff;
	border-radius: 3px;
	box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
	display: none !important;
	left: 20px;
	line-height: 1.5;
	padding: 5px 10px;
	position: absolute;
	top: 20px;
}
.polaroid:hover > a.edit {
	display: block !important;
}
.widget_photo > a.edit {
	left: unset;
	right: 20px;
}


/* Managing assets
--------------------*/
.editasset .boxed_content.asset_controls {
	padding: 25px;
}
.editasset .widget, .editasset .asset_controls {
	margin-bottom: 20px;
}
.editasset .widget > dl {
	margin: 15px 0 0;
	overflow: auto;
}
.editasset .widget > dl > dt {
	float: left;
	clear: left;
	margin: 3px 0 0;
	width: 17%;
}
.editasset .widget > dl > dt:after {
	content: ':';
}
.editasset .widget > dl > dd {
	float: left;
	margin: 0 0 5px;
	width: 80%;
}


/* Crop editor
----------------*/
#crop_editor {
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: 1200;
	color: #fff;
}
#crop_editor .input-group-text {
	background-color: rgba(233, 236, 239, 0.5);
	border-color: rgba(233, 236, 239, 0.5);
	color: #fff;
}
#crop_editor input[type=number] {
	background: #555;
	border-color: rgba(233, 236, 239, 0.5);
	color: #fff;
	width: 85px;
}
#crop_editor input[type=checkbox] {
	vertical-align: middle;
}
.crop_position {
	background: rgba(0, 0, 0, 1.0);
	border: none;
	display: flex;
	padding: 5px;
	text-align: center;
}
.crop_position input, .crop_position .btn {
	margin: 0 5px;
}

.crop_image_container {
	position: relative;
	flex-grow: 1;
	max-height: calc(100% - 34px);
}
.crop_image_container img {
	border: 1px solid #000;
	max-height: 100%;
	max-width: 100%;
}
#crop_boundary {
	border: 1px dashed rgb(255, 255, 255);
	background: rgba(255, 255, 255, 0.4);
	cursor: move;
	position: absolute;
	z-index: 200;
	width: 500px;
	height: 300px;
	top: 400px;
	left: 300px;
}
