/* App Image Zoom */
.aiz-root {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: none;
	background: rgba(0, 0, 0, 0.94);
	direction: ltr;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	-webkit-user-select: none;
}
.aiz-root.aiz-open {
	display: block;
}
.aiz-stage {
	position: absolute;
	inset: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	touch-action: none; /* نتحكم بالقرص والسحب بأنفسنا */
	cursor: zoom-in;
}
.aiz-stage.aiz-zoomed {
	cursor: grab;
}
.aiz-stage.aiz-dragging {
	cursor: grabbing;
}
.aiz-img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transform-origin: center center;
	will-change: transform;
	-webkit-user-drag: none;
	pointer-events: none;
	box-shadow: none;
	border: 0;
	margin: 0;
}
.aiz-controls {
	position: absolute;
	left: 50%;
	bottom: max(16px, env(safe-area-inset-bottom));
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	padding: 8px 10px;
	background: rgba(30, 30, 30, 0.85);
	border-radius: 999px;
	z-index: 2;
}
.aiz-btn {
	appearance: none;
	-webkit-appearance: none;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111;
	font: 700 24px/1 Arial, sans-serif;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	touch-action: manipulation;
}
.aiz-btn:active {
	background: #ddd;
}
.aiz-close {
	position: absolute;
	top: max(14px, env(safe-area-inset-top));
	right: 14px;
	z-index: 3;
	background: rgba(255, 255, 255, 0.95);
}
.aiz-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: aiz-spin 0.8s linear infinite;
	display: none;
	z-index: 1;
}
.aiz-root.aiz-busy .aiz-loading {
	display: block;
}
@keyframes aiz-spin {
	to { transform: rotate(360deg); }
}

/* مؤشر أن الصورة قابلة للتكبير */
.entry-content img,
.post-content img,
.wp-block-image img {
	cursor: zoom-in;
}
img.no-zoom,
.no-zoom img {
	cursor: auto;
}
