/* Caixa de galeria e de vídeo no editor de publicação. */

.pl2531-gallery__hint,
.pl2531-metabox-hint {
	font-size: 12px;
	color: #6b746f;
	line-height: 1.5;
	margin: 0 0 12px;
}

.pl2531-metabox-warn {
	font-size: 12px;
	line-height: 1.5;
	background: #fbeedc;
	color: #6d4512;
	border-left: 3px solid #96601c;
	padding: 8px 10px;
	margin: 10px 0 0;
}

.pl2531-metabox-ok {
	font-size: 12px;
	line-height: 1.5;
	background: #e4f0ee;
	color: #0a4a45;
	border-left: 3px solid #0f6d66;
	padding: 8px 10px;
	margin: 10px 0 0;
}

.pl2531-gallery__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.pl2531-gallery__list:empty {
	display: none;
}

.pl2531-gallery__item {
	position: relative;
	border: 1px solid #e1e4e1;
	border-radius: 8px;
	overflow: hidden;
	background: #f5f6f4;
	margin: 0;
}

.pl2531-gallery__item img {
	display: block;
	width: 100%;
	height: 110px;
	object-fit: cover;
}

.pl2531-gallery__pos {
	position: absolute;
	top: 6px;
	left: 6px;
	background: rgba(28, 35, 33, 0.82);
	color: #fff;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	line-height: 1;
	padding: 4px 7px;
	border-radius: 4px;
}

.pl2531-gallery__actions {
	position: absolute;
	right: 4px;
	top: 4px;
	display: flex;
	gap: 2px;
	background: rgba(255, 255, 255, 0.94);
	border-radius: 4px;
	padding: 2px;
}

.pl2531-gallery__actions .button-link {
	width: 22px;
	height: 22px;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	color: #55605c;
	font-size: 14px;
}

.pl2531-gallery__actions .button-link:hover {
	color: #0f6d66;
}

.pl2531-gallery__remove:hover {
	color: #a8321f !important;
}
