/* Gallery image picker, gallery edit screen only. */

.webtangl-ejg-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.webtangl-ejg-hint {
	margin-left: 4px;
}

.webtangl-ejg-list {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 110px, 1fr ) );
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.webtangl-ejg-list:empty {
	margin: 0;
}

.webtangl-ejg-item {
	position: relative;
	margin: 0;
	aspect-ratio: 1;
	border-radius: 4px;
	overflow: hidden;
	background: #f0f0f1;
	box-shadow: 0 0 0 1px #dcdcde;
	cursor: grab;
}

.webtangl-ejg-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.webtangl-ejg-item.ui-sortable-helper {
	cursor: grabbing;
	box-shadow: 0 3px 10px rgba( 0, 0, 0, 0.25 );
}

.webtangl-ejg-placeholder {
	aspect-ratio: 1;
	border-radius: 4px;
	background: #f0f0f1;
	box-shadow: inset 0 0 0 2px dashed #c3c4c7;
}

.webtangl-ejg-remove {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 24px;
	height: 24px;
	padding: 0;
	line-height: 22px;
	font-size: 16px;
	color: #fff;
	background: rgba( 0, 0, 0, 0.6 );
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.webtangl-ejg-item:hover .webtangl-ejg-remove,
.webtangl-ejg-remove:focus {
	opacity: 1;
}

.webtangl-ejg-remove:hover {
	background: #d63638;
}

.webtangl-ejg-empty {
	margin-top: 12px;
}

/* Layout meta box: keep each field's help text on its own line. */
#webtangl-ejg-settings .description {
	display: block;
	margin-top: 4px;
}

#webtangl-ejg-settings p {
	margin-bottom: 16px;
}

/* "Captions are on but there is nothing to show" warning. */
.webtangl-ejg-caption-status {
	display: block;
	margin: 8px 0 0;
	padding: 8px 10px;
}

.webtangl-ejg-caption-status span {
	display: block;
	font-size: 12px;
	line-height: 1.5;
}
