.cy-masonry-gallery {
	--cy-gallery-columns: 3;
	--cy-gallery-gap: 8px;
	display: grid;
	grid-template-columns: repeat(var(--cy-gallery-columns), minmax(0, 1fr));
	grid-auto-rows: 6px;
	gap: var(--cy-gallery-gap);
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

.cy-masonry-gallery__item {
	display: block;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #1c1c1c;
}

.cy-masonry-gallery__image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

@media (max-width: 900px) {
	.cy-masonry-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.cy-masonry-gallery {
		grid-template-columns: 1fr;
	}
}

.cy-gallery-admin-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
	margin: 18px 0 0;
	padding: 0;
}

.cy-gallery-admin-item {
	position: relative;
	display: block;
	margin: 0;
	padding: 0;
	background: #f2f2f2;
	border: 1px solid #dcdcde;
	cursor: move;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.cy-gallery-admin-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cy-gallery-remove-image {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 50%;
	background: #000000;
	color: #ffffff;
	font-size: 18px;
	line-height: 22px;
	cursor: pointer;
}

.cy-gallery-admin-item.ui-sortable-helper {
	opacity: 0.8;
}
