/* مشترك لكل القوالب (بعد CSS القالب) */

/* معرض صور السيارة: الصورة كاملة وبالنص (بلا قصّ)، والضغط عليها بيفتحها بشاشة كاملة */
.gallery-main img { object-fit: contain; object-position: center; cursor: zoom-in; }
.thumbs { justify-content: center; }

/* شاشة الصور الكاملة: الصورة بحجمها الأصلي (أو على قد الشاشة إذا أكبر)، بالنص */
.lightbox { position: fixed; inset: 0; z-index: 2147483000; background: #000; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100vw; max-height: 100dvh; width: auto; height: auto; object-fit: contain; user-select: none; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.35); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: rgba(0,0,0,.8); }
.lightbox button .icon { width: 22px; height: 22px; }
.lightbox .lb-close { top: 16px; inset-inline-end: 16px; font-size: 22px; line-height: 1; }
.lightbox .lb-prev { inset-inline-start: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { inset-inline-end: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; background: rgba(0,0,0,.5); padding: 4px 12px; border-radius: 999px; }
@media (max-width: 640px) { .lightbox .lb-prev, .lightbox .lb-next { width: 40px; height: 40px; } }

/* الفوتر: «مدعوم من» + شعار واسم ARAB GEAR ورابط arab-gear.com */
a.powered { color: inherit; text-decoration: none; }
a.powered b { font-weight: 700; letter-spacing: .04em; }
a.powered:hover b { text-decoration: underline; }

/* العناوين الكبيرة بالعربي: مسافة أسطر أوسع، لحتى نقاط الأحرف (ة، ي، ب…) ما تتشابك بين السطور. الإنكليزي بيضل متل ما هو. */
html[lang="ar"] .hero h1, html[lang="ar"] .car-head h1 { line-height: 1.32; letter-spacing: 0; }
