.eac-gallery__attachments {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
}

.eac-gallery__button-bottom {
	margin-block: 20px;
	text-align: center;
}

.eac-gallery__add-media {
	position: relative;
}

.eac-gallery__add-media span,
.eac-gallery__remove-all-media span {
	vertical-align: middle;
}

.eac-gallery__remove-all-media {
	margin-inline-start: 10px !important;
}

.eac-gallery__message-media {
	margin-block-start: 10px;
	font-size: 15px;
	font-weight: 500;
}

.eac-gallery__attachment-container {
	position: relative;
	padding: 3px;
	background-color: #fff;
	border: 1px solid antiquewhite;
	border-radius: 3px;
	overflow: hidden;

}

.eac-gallery__attachment-container:hover {
	cursor: move;
}

.ui-state-highlight {
	outline: 2px dashed #000000;
}

.eac-gallery__attachment-container .eac-gallery__remove-media {
	display: none;
	position: absolute;
	block-size: 30px;
	inline-size: 30px;
	inset-inline-start: 50%;
	inset-block-start: 50%;
	transform: translate(-50%, -50%);
	background: #000;
	color: #fff;
	line-height: 1;
	cursor: pointer;
	z-index: 5;
}

.eac-gallery__attachment-container:hover .eac-gallery__remove-media {
	display: block;
}

.eac-gallery__attachment-container img {
	display: block;
	position: relative;
	block-size: auto;
	inline-size: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}