/* Maskan Gallery CSS - Robust Mobile Layout & Lightbox */
.maskan-gallery-container {
	width: 100%;
	margin-bottom: 24px;
}

/* Desktop Mosaic */
.maskan-gallery-mosaic {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 8px;
	height: 420px;
	border-radius: 16px;
	overflow: hidden;
}

.mosaic-main {
	height: 100%;
	cursor: pointer;
	overflow: hidden;
}

.mosaic-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.mosaic-main:hover img {
	transform: scale(1.02);
}

.mosaic-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 8px;
	height: 100%;
}

.mosaic-item {
	position: relative;
	cursor: pointer;
	overflow: hidden;
}

.mosaic-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.mosaic-item:hover img {
	transform: scale(1.03);
}

.mosaic-more-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 15px;
}

/* Mobile Hero — GUARANTEES NO SCATTERING! */
.maskan-gallery-mobile {
	display: none;
}

.mobile-hero {
	position: relative;
	width: 100%;
	height: 260px;
	border-radius: 14px;
	overflow: hidden;
	cursor: pointer;
}

.mobile-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mobile-gallery-trigger {
	position: absolute;
	bottom: 14px;
	right: 14px;
	background: rgba(15, 23, 42, 0.85);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 24px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	backdrop-filter: blur(6px);
}

@media (max-width: 768px) {
	.desktop-only {
		display: none !important;
	}
	.mobile-only {
		display: block !important;
	}
}

/* Lightbox Modal */
.maskan-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.95);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-dialog {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.lightbox-close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: none;
	border: none;
	color: #ffffff;
	font-size: 38px;
	cursor: pointer;
	z-index: 10;
	line-height: 1;
}

.lightbox-counter {
	position: absolute;
	top: 24px;
	color: #e2e8f0;
	font-size: 16px;
	font-weight: 600;
	z-index: 10;
}

.lightbox-stage {
	max-width: 90%;
	max-height: 75vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-stage img {
	max-width: 100%;
	max-height: 75vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	z-index: 10;
}

.lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.3);
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lightbox-strip {
	position: absolute;
	bottom: 16px;
	display: flex;
	gap: 8px;
	max-width: 90%;
	overflow-x: auto;
	padding: 8px;
}

.lb-thumb {
	width: 56px;
	height: 42px;
	object-fit: cover;
	border-radius: 4px;
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.2s, transform 0.2s;
}

.lb-thumb.active, .lb-thumb:hover {
	opacity: 1;
	transform: scale(1.08);
	border: 2px solid #059669;
}
