/* Base Grid Layout */
.mohammed-gallery-grid-309ed6ef {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
	width: 100%;
}

/* Tablet (2 columns) */
@media (max-width: 1024px) {
	.mohammed-gallery-grid-309ed6ef {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile (1 column) */
@media (max-width: 767px) {
	.mohammed-gallery-grid-309ed6ef {
		grid-template-columns: 1fr;
	}
}

/* Image Item Styling */
.mohammed-gallery-grid-309ed6ef .mohammed-gallery-item {
	position: relative;
	cursor: pointer;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background-color: #f0f0f0;
}

.mohammed-gallery-grid-309ed6ef .mohammed-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

/* Hover Overlay Layer */
.mohammed-gallery-grid-309ed6ef .mohammed-gallery-item::after {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background-color: rgba(0, 0, 0, 0.4);
	opacity: 0;
	transition: opacity 0.35s ease;
	z-index: 1;
	pointer-events: none;
}

.mohammed-gallery-grid-309ed6ef .mohammed-gallery-item:hover::after {
	opacity: 1;
}

.mohammed-gallery-grid-309ed6ef .mohammed-gallery-item:hover img {
	transform: scale(1.05);
}

/* Lightbox Modal Fallback CSS */
.ds-mohammed-lightbox-309ed6ef {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.9);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 999999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ds-mohammed-lightbox-309ed6ef.active {
	opacity: 1;
	visibility: visible;
}

.ds-mohammed-lightbox-309ed6ef img {
	max-width: 90%;
	max-height: 90vh;
	object-fit: contain;
	box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.ds-mohammed-lightbox-close-309ed6ef {
	position: absolute;
	top: 20px;
	right: 30px;
	color: #fff;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	line-height: 1;
	z-index: 2;
}

.ds-mohammed-lightbox-close-309ed6ef:hover {
	color: #ccc;
}
