/* Builder media badges; gallery cards inherit the catalogue's duration treatment. */
.editor-media-popup__duration,
.editor-image-options__duration {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 1;
	max-width: calc(100% - 24px);
	padding: 3px 6px;
	border-radius: 6px;
	background: rgba(21, 19, 15, 0.66);
	color: #fff;
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	font-weight: normal;
	line-height: 1.2;
	letter-spacing: normal;
	text-shadow: none;
	backdrop-filter: none;
	pointer-events: none;
}

/* Leave the existing selection target and preview toggle clear of the badge. */
.editor-media-popup__item-card:has(> .editor-media-popup__selection-check) .editor-media-popup__duration,
.editor-media-popup__project-item:has(> .editor-media-popup__project-check) .editor-media-popup__duration {
	right: calc(7px + 24px + 8px);
	max-width: calc(100% - 88px);
}

.editor-media-popup__duration:empty,
.editor-image-options__duration:empty,
.my-video-card__duration:empty,
.editor-media-popup__duration[hidden],
.editor-image-options__duration[hidden],
.my-video-card__duration[hidden] {
	display: none;
}
