.neega-gallery[id] {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 6px;
}

.neega-gallery[id]:empty {
	display: none;
}

.neega-gallery.view-list {
	flex-direction: column;
	flex-wrap: nowrap;
}

.neega-file-preview {
	cursor: pointer;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 10px;
	position: relative;
	max-width: 100%;
	white-space: nowrap;
}

.neega-file-preview>.thumbnail {
	width: 50px;
	height: 50px;
	background-color: white;
	border-radius: 6px;
	filter: brightness(0.9);
	object-fit: cover;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: .15s;
}

.neega-gallery.view-list .neega-file-preview>.thumbnail {
	width: 32px;
	height: 32px;
	font-size: 13px;
	border-radius: 4px;
}

.neega-gallery:not(.view-list) .neega-file-preview>.text {
	display: none !important;
}

.neega-file-preview:hover>.thumbnail {
	filter: brightness(0.5);
}

.neega-file-preview::after {
	position: absolute;
	font-size: 40px;
	content: '×';
	color: white;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	line-height: 1.05;
	transition: .15s;
	opacity: 0;
}

.neega-gallery.view-list .neega-file-preview::after {
	font-size: 20px;
	right: unset;
	width: 32px;
	line-height: 1.4;
}

.neega-file-preview:hover::after {
	opacity: 1;
}
