/* Stoffmuster-Seite: Lightbox + Zoom-Icons (nur auf is_page('stoffmuster') geladen, siehe inc/stoffmuster.php) */

/* Lightbox */
.mb-sm-lightbox {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.85);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.mb-sm-lightbox[hidden] { display: none; }
.mb-sm-lightbox-img {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.mb-sm-lightbox-close {
	position: absolute;
	top: 16px; right: 20px;
	background: rgba(255,255,255,0.15);
	border: none;
	border-radius: 50%;
	width: 44px; height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: white;
	transition: background 0.2s;
	z-index: 100000;
}
.mb-sm-lightbox-close:hover {
	background: rgba(255,255,255,0.3);
}

/* Zoom-Icon auf Stoff-Kacheln — !important nötig wegen WPForms Modern CSS Spezifität */
.wpforms-image-choices-image {
	position: relative !important;
	max-width: fit-content !important;
}
.wpforms-image-choices-image > .mb-sm-zoom {
	position: absolute !important;
	top: 6px !important; right: 6px !important;
	background: rgba(0,0,0,0.5) !important;
	color: white !important;
	border-radius: 50% !important;
	width: 30px !important; height: 30px !important;
	min-width: 30px !important; min-height: 30px !important;
	max-width: 30px !important; max-height: 30px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	z-index: 10 !important;
	transition: background 0.2s, transform 0.2s, opacity 0.2s !important;
	opacity: 1 !important;
	pointer-events: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	box-sizing: border-box !important;
	line-height: 1 !important;
	flex-shrink: 0 !important;
	flex-grow: 0 !important;
}
.wpforms-image-choices-image > .mb-sm-zoom:hover {
	background: rgba(0,0,0,0.75) !important;
	transform: scale(1.1) !important;
}
/* SVG im Zoom-Icon fixe Größe */
.wpforms-image-choices-image > .mb-sm-zoom svg {
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	min-height: 16px !important;
	max-width: 16px !important;
	max-height: 16px !important;
	flex-shrink: 0 !important;
	display: block !important;
}
/* Mobile: immer sichtbar */
@media (max-width: 768px) {
	.wpforms-image-choices-image > .mb-sm-zoom {
		opacity: 1 !important;
		pointer-events: auto !important;
		width: 26px !important; height: 26px !important;
		min-width: 26px !important; min-height: 26px !important;
		max-width: 26px !important; max-height: 26px !important;
		top: 4px !important; right: 4px !important;
	}
}
