widget-browser {
	display: inline-block;
	width: 100%;
	height: 320px;
	background: #fff;
	width: 500px;
	border: 1px solid #ddd;
}

widget-browser medialist {
	display: block;
	padding: 5px 0 5px 5px;
	height: 100%;
	overflow-y: auto;
}

widget-browser mediaitem {
	position: relative;
	display: inline-block;
	width: calc(33.3% - 10px);
	margin-right: 10px;
	vertical-align: top
}

widget-browser mediaitem img {
	width: 100%;
	padding: 1px;
	border: 2px solid #bbb;
	cursor: pointer
}

widget-browser mediaitem button.remove {
	position: absolute;
	top: 0;
	right: 0;
	margin-right: 5px;
	margin-top: 5px;
	z-index: 1;
	line-height: 0;

	display: none;
	width: 32px;
	height: 32px;
	border: none;
	background: url(../img/delete.png) no-repeat top center;
	background-size: 100%;
	cursor: pointer;
	background-color: #fff;
}

widget-browser mediaitem:hover button.remove {
	display: block;
}

widget-browser mediaitem button.remove:hover {
	background-position: bottom center;
}

widget-browser mediaitem img:hover {
	border: 2px solid #f00
}



/** actual **/
post-gallery {
	display: block;
}

post-gallery itemlist.gallery-list item {
	background: #f5f5f5;
	padding: 5px;
	border-radius: 5px;
	width: calc(50% - 5px);
	display: inline-block;
	vertical-align: top;
	margin-left: 10px;
	margin-bottom: 10px;
}

post-gallery itemlist.gallery-list item:nth-child(odd) {
	margin-left: 0px;
}

post-gallery itemlist.gallery-list item img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

post-gallery itemlist.gallery-list item textarea {
	width: 100%;
}



itemlist.gallery-list {
	display: block;
	font-size: 0px;
}

itemlist.gallery-list button-holder {
	float: right;
	margin-bottom: 8px;
	display: inline-block;
}

itemlist.gallery-list button-holder>button {
	display: inline-block;
	margin: 0;
	padding: 0;
	border: 0;
	width: 26px;
	height: 26px;
	background: transparent;
	background-repeat: no-repeat;
	cursor: pointer;
	background-position: center center;
	background-size: 100%;
	background-color: none;
	vertical-align: top;
	margin-right: 3px;
	opacity: 0.3;
}

itemlist.gallery-list button-holder button:hover {
	opacity: 0.5;
}

itemlist.gallery-list button-holder button:active {
	opacity: 0.8;
}

itemlist.gallery-list menu-button>button {
	font: inherit;
	width: 24px;
	height: 24px;
	padding: 6px !important;
	box-shadow: none !important;
	border-radius: 50% !important;
	vertical-align: middle;
	background-color: transparent !important;
}

itemlist.gallery-list menu-button>button span {
	display: block;
	text-align: center;
	color: #000;
	font-size: 11px;
	line-height: 0.5 !important;
}

itemlist.gallery-list menu-button>button:hover span {
	color: #888;
}

itemlist.gallery-list menu-button>button:active span {
	color: #333;
}

post-gallery image-desc {
	display: block;
	margin: 15px 0 0 0;
	font-size: 16px;
	color: #444;
	line-height: 24px
}