.masonry-grid .grid-item {
	width: calc(100% / 4);
	padding: 3px;
}

.masonry-grid .grid-item .inner {
	overflow: hidden;
}

.masonry-grid .grid-item img {
	transition: all 0.3s ease;
}

.masonry-grid .grid-item:hover img {
	transform: scale(1.15);
}

.masonry-grid {
	margin-block: 40px;
}

#drag-drop-area {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 15px;
	padding: 20px 0;
	min-height: 200px;
	border-radius: 7px;
	border: 2px dashed #ccc;
	background-color: #f1f1f1;
}

#file-previews {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

#file-previews .image-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
	border-radius: 7px;
	border: 1px solid #ccc;
}

#file-previews .image-preview img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	border-radius: 7px;
}

.gallery-wrapper {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-block: 20px;
}

.gallery-wrapper > div {
	position: relative;
	height: 160px;
	border-radius: 7px;
	border: 1px solid #ccc;
	overflow: hidden;
}

.gallery-wrapper > div img {
	position: absolute;
	min-width: 100%;
	min-height: 100%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.gallery-wrapper > div button {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
}

.cws-tools-event-form .control-group .gallery-wrapper > div button {
	padding: 5px !important;
	font-size: 20px;
}