.mcg-gallery {
	margin: 20px 0;
}

/* ---- Masonry (CSS columns) ---- */
.mcg-masonry {
	column-count: var(--mcg-cols, 3);
	column-gap: 16px;
}
.mcg-masonry .mcg-item {
	break-inside: avoid;
	margin-bottom: 16px;
}

/* ---- Grid ---- */
.mcg-grid {
	display: grid;
	grid-template-columns: repeat(var(--mcg-cols, 3), 1fr);
	gap: 16px;
}

/* ---- Shared item styling ---- */
.mcg-item {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	background: #000;
}
.mcg-item img,
.mcg-item video {
	width: 100%;
	display: block;
	height: auto;
	border-radius: 8px;
}
.mcg-image-item {
	cursor: pointer;
}
.mcg-image-item:hover img {
	opacity: 0.9;
}

/* ---- Video item + expand button ---- */
.mcg-video-item {
	cursor: default;
}
.mcg-expand-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	z-index: 2;
}
.mcg-expand-btn:hover {
	background: rgba(0, 0, 0, 0.85);
}

/* ---- Responsive column drop ---- */
@media (max-width: 768px) {
	.mcg-masonry,
	.mcg-grid {
		--mcg-cols: 2 !important;
	}
}
@media (max-width: 480px) {
	.mcg-masonry,
	.mcg-grid {
		--mcg-cols: 1 !important;
	}
}

/* ---- Lightbox ---- */
.mcg-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	z-index: 99999;
	align-items: center;
	justify-content: center;
}
.mcg-lightbox.mcg-open {
	display: flex;
}
.mcg-lightbox-content img,
.mcg-lightbox-content video {
	max-width: 90vw;
	max-height: 90vh;
	display: block;
	border-radius: 4px;
}
.mcg-lightbox-close {
	position: absolute;
	top: 20px;
	right: 30px;
	font-size: 40px;
	color: #fff;
	cursor: pointer;
	line-height: 1;
}
