﻿/* ===== نمونه‌کارها (/projects) روی ظاهر بلاگ Gnusmas؛ فقط کلاس‌های pj-* و توکن‌های blog-gnusmas.css ===== */

.pj-pre { white-space: pre-line; }

/* ---------- لیست ---------- */
.pj-chip-count { display: inline-block; min-width: 20px; margin-inline-start: 4px; padding: 0 6px; border-radius: 30px; background: rgba(0, 0, 0, .06); font-size: 11px; line-height: 18px; text-align: center; }
.bg-chip.is-active .pj-chip-count, .bg-chip:hover .pj-chip-count { background: rgba(255, 255, 255, .2); }

/* کارت پروژه بدون تصویر شاخص: لوگو وسط زمینه‌ی تیره، کامل و بدون برش */
.pj-card__img--logo { display: flex; align-items: center; justify-content: center; background: #3d3d3d; }
.pj-card__img--logo img { width: auto !important; height: auto !important; max-width: 46%; max-height: 62%; object-fit: contain !important; }
/* کارت با اسکرین‌شات بلند: تصویر تمام‌عرض از بالای صفحه؛ هاور روی تصویر → تا انتها اسکرول (top 100% + translateY -100% = لبه‌ی پایین تصویر
   روی لبه‌ی پایین قاب، خطی در --pj-scroll)، خروج موس → برگشت سریع به بالا. سیاه‌وسفید/رنگی مثل بقیه‌ی کارت‌ها. */
.bg-card .pj-card__img--long img {
    position: absolute; top: 0; left: 0; width: 100%; height: auto; object-fit: initial; transform: translateY(0);
    transition: filter .5s ease, top .9s ease, transform .9s ease;
}
.bg-card:hover .pj-card__img--long img { transform: translateY(0); }
.bg-card .pj-card__img--long:hover img {
    filter: grayscale(0); top: 100%; transform: translateY(-100%);
    transition: filter .5s ease, top var(--pj-scroll, 6s) linear, transform var(--pj-scroll, 6s) linear;
}
.pj-card__img--long::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; pointer-events: none;
    background: linear-gradient(transparent, rgba(0, 0, 0, .45)); transition: opacity .4s;
}
.pj-card__img--long:hover::after { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
    .bg-card .pj-card__img--long:hover img { top: 0; transform: none; }
}

.pj-card__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* ---------- لیست نمونه‌کارها: جستجو، فیلترها، گرید/لیست (projects-list.js) ---------- */
.pj-browse { padding: 40px 0 0; }
.pj-filters {
    display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: center;
    margin-bottom: 26px; padding: 12px; border-radius: 26px; background: var(--soft);
}
.pj-filters .bg-select { width: 100%; height: 46px; background-color: #fff; }
.pj-filters__search { position: relative; min-width: 0; }
.pj-filters__search i { position: absolute; top: 50%; inset-inline-start: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.pj-filters__search input {
    width: 100%; height: 46px; padding: 0 16px; padding-inline-start: 44px; border: 0; border-radius: 30px; background: #fff;
    color: var(--text); font-family: inherit; font-size: 14px; outline: 0; -webkit-appearance: none; appearance: none;
}
.pj-filters__search input:focus-visible, .pj-filters .bg-select:focus-visible { box-shadow: 0 0 0 2px var(--bg-dark); }
.pj-filters__apply { height: 46px; padding: 0 22px; border: 0; border-radius: 30px; background: var(--bg-dark); color: #fff; font-family: inherit; font-size: 14px; cursor: pointer; }
.pj-browse.is-ready .pj-filters { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
.pj-browse.is-ready .pj-filters__apply { display: none; }
.pj-results.bg-archive { padding: 0; transition: opacity .2s; }
.pj-browse.is-loading .pj-results { opacity: .5; pointer-events: none; }
.pj-results .bg-view a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 34px; border-radius: 30px; color: var(--muted); text-decoration: none !important; transition: all .3s; }
.pj-results .bg-view a.is-active { background: var(--bg-dark); color: #fff !important; }
.pj-results .bg-view a:not(.is-active):hover { color: var(--text); }
.pj-pager-gap { background: transparent !important; cursor: default; }
.pj-card__inactive { color: #ffd27a; }
@media (max-width: 991.98px) {
    .pj-filters, .pj-browse.is-ready .pj-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pj-filters__search { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .pj-browse { padding-top: 28px; }
    /* نمای لیست در موبایل: تکنولوژی‌ها می‌مانند (بلاگ آن‌ها را پنهان می‌کند) */
    .pj-results.bg-archive.is-list .pj-card__techs { display: flex; margin-bottom: 0; }
}
@media (max-width: 575.98px) {
    /* موبایل: جستجو تمام‌عرض، دسته و تکنولوژی کنار هم، فعال‌بودن تمام‌عرض */
    .pj-filters, .pj-browse.is-ready .pj-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; border-radius: 22px; }
    .pj-filters .bg-select { height: 42px; padding: 0 12px; padding-inline-end: 30px; font-size: 13px; background-position: left 10px center; }
    .pj-filters__search input { height: 42px; }
    .pj-filters select[name="active"], .pj-filters__apply { grid-column: 1 / -1; }
}

.pj-card__techs span { font-size: 11.5px; padding: 2px 10px; border-radius: 30px; background: rgba(255, 255, 255, .12); color: #e2e2e2; }

/* ---------- هیروی جزئیات ---------- */
/* تصویر شاخص زیر متن هیرو و وسط صفحه: نیمی در هیرو، نیمی در بخش پایین (نسبت ثابت ۱۶:۹، تصویر از بالا برش می‌خورد).
   --pj-cover-w عرض تصویر است؛ پایین هیرو و بالای تصویر هر دو از نصف ارتفاع آن حساب می‌شوند */
.pj-hero--cover, .pj-cover-wrap { --pj-cover-w: min(560px, calc(100vw - 32px)); --pj-cover-half: calc(var(--pj-cover-w) * 9 / 32); }
.pj-hero--cover { padding-bottom: calc(var(--pj-cover-half) + 44px); }
.pj-cover-wrap { position: relative; z-index: 3; margin-top: calc(var(--pj-cover-half) * -1); padding: 0 16px; }
.pj-cover { position: relative; width: var(--pj-cover-w); margin: 0 auto; border-radius: 20px; box-shadow: 0 26px 50px rgba(0, 0, 0, .35), 0 8px 18px rgba(0, 0, 0, .2); }
.pj-cover__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: 20px; }
/* لوگو: دایره با استروک، روی گوشه‌ی پایین سمت چپ تصویر */
.pj-cover__logo, .pj-hero__badge {
    display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: 50%; overflow: hidden;
    background: #fff; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--bg-dark), 0 10px 26px rgba(0, 0, 0, .35);
}
.pj-cover__logo { position: absolute; z-index: 2; left: 22px; bottom: -22px; }
.pj-cover__logo img, .pj-hero__badge img { width: 56px; height: 56px; object-fit: contain; }
.pj-hero__badge { margin: 6px auto 14px; }
.pj-hero__desc { margin-top: 4px; font-size: 15px; line-height: 2; }
.pj-article--cover { padding-top: 50px; }
/* نام فارسی و انگلیسی در یک سطر */
.pj-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 18px; }
/* نام انگلیسی LTR است؛ جداکننده با جهت فیزیکی سمت راستش (کنار نام فارسی) */
.pj-title__en { position: relative; font-family: Vazir, Tahoma, sans-serif; font-size: .55em; font-weight: normal; color: #e2e2e2; padding-right: 18px; }
.pj-title__en:before { content: ""; position: absolute; right: 0; top: 50%; width: 2px; height: 1.1em; margin-top: -.55em; background: rgba(255, 255, 255, .45); }
.pj-hero .bg-meta { align-items: center; }
/* آیکن تکنولوژی بالای عنوان صفحه‌ی /tech/{slug} */
.pj-hero__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.pj-hero__icon img { width: 48px; height: 48px; object-fit: contain; }
.pj-active { justify-content: center; margin: 16px 0 0; }
.pj-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- متن ---------- */
.pj-lead { font-size: 18px; line-height: 2.1; color: var(--text); margin: 0 0 28px; white-space: pre-line; }
.pj-article .bg-block:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- سایدبار ---------- */
.pj-facts { margin: 0; }
.pj-facts__row { padding: 10px 0; border-bottom: 1px solid #e4e4e4; }
.pj-facts__row:first-child { padding-top: 0; }
.pj-facts__row:last-child { border-bottom: 0; }
.pj-facts dt { font-size: 13px; font-weight: normal; color: var(--muted); margin-bottom: 6px; }
.pj-facts dt i { margin-inline-end: 4px; width: 14px; text-align: center; }
.pj-facts dd { margin: 0; font-size: 15px; line-height: 1.9; }
.pj-facts__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 30px; background: #fff;
    color: var(--text) !important; font-size: 13px; text-decoration: none !important; transition: all .3s;
}
.pj-chip img { width: 18px; height: 18px; object-fit: contain; }
a.pj-chip:hover, a.pj-chip:focus-visible { background: var(--bg-dark); color: #fff !important; }
.pj-visit {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; margin-top: 16px;
    padding: 8px 14px; border-radius: 14px; background: var(--bg-dark); color: #fff !important; font-size: 14px; text-decoration: none !important; transition: background .3s;
}
.pj-visit i { margin-inline-end: 4px; }
.pj-visit small { font-size: 12px; color: #d6d6d6; }
.pj-visit:hover, .pj-visit:focus-visible { background: var(--text); }
.pj-back { margin: 0 6px; }

/* اعداد کلیدی بالای «مشخصات پروژه»؛ تعداد فرد → آخری تمام‌عرض */
.pj-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.pj-metric { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 84px; padding: 12px 8px; border-radius: 16px; background: #fff; text-align: center; }
.pj-metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pj-metric__value { font-family: Lalezar, Vazir, sans-serif; font-weight: normal; font-size: 26px; line-height: 1.25; color: var(--text); overflow-wrap: anywhere; }
.pj-metric__label { font-size: 12px; line-height: 1.7; color: var(--muted); }

/* وضعیت پروژه: نقطه‌ی رنگی کوچک کنار متن */
.pj-status { display: inline-flex; align-items: center; gap: 8px; }
.pj-status::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--bg-dark); }
.pj-status--active::before { background: #2e9d5b; animation: pj-pulse 2s ease-out infinite; }
.pj-status--indevelopment::before { background: #d9961a; }
.pj-status--archived { color: var(--muted); }
.pj-status--archived::before { background: transparent; border: 1.5px solid var(--muted); }
@keyframes pj-pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 157, 91, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(46, 157, 91, 0); } }

/* «پروژه‌ی مشابه می‌خواهید؟» زیر «مشاهده‌ی آنلاین»؛ دکمه‌ی ثانویه */
.pj-cta {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; margin-top: 10px;
    padding: 8px 14px; border: 1.5px solid var(--bg-dark); border-radius: 14px; color: var(--text) !important; font-size: 14px; text-decoration: none !important; transition: all .3s;
}
.pj-cta small { font-size: 12px; color: var(--muted); transition: color .3s; }
.pj-cta small i { margin-inline-start: 4px; }
.pj-cta:hover, .pj-cta:focus-visible { background: var(--bg-dark); color: #fff !important; }
.pj-cta:hover small, .pj-cta:focus-visible small { color: #d6d6d6; }

/* ---------- گالری ---------- */
.pj-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 26px; align-items: start; }
.pj-media { margin: 0; min-width: 0; }
.pj-media--wide { grid-column: 1 / -1; }
.pj-media figcaption, .pj-compare-item figcaption { margin-top: 12px; text-align: center; font-size: 13.5px; line-height: 1.9; color: var(--muted); }
.pj-compare-item figcaption strong { display: block; color: var(--text); font-size: 15px; font-weight: normal; }

/* قاب‌ها: تصویر کامل و با نسبت واقعی (بدون برش) */
.pj-frame { position: relative; margin: 0 auto; }
.pj-frame__screen { position: relative; overflow: hidden; background: var(--soft); }
.pj-frame__screen img, .pj-frame__screen video { display: block; width: 100%; height: auto; }
.pj-frame--none .pj-frame__screen { border-radius: 12px; box-shadow: 0 10px 28px rgba(0, 0, 0, .12); }
.pj-frame--desktop { border-radius: 12px; overflow: hidden; background: #e9e9e9; box-shadow: 0 12px 32px rgba(0, 0, 0, .16); }
.pj-frame__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #e9e9e9; border-bottom: 1px solid #dcdcdc; direction: ltr; }
.pj-frame__bar span { width: 10px; height: 10px; border-radius: 50%; background: #bdbdbd; }
.pj-frame--tablet { max-width: 560px; padding: 16px; border-radius: 28px; background: #2d2d2d; box-shadow: 0 14px 34px rgba(0, 0, 0, .22); }
.pj-frame--tablet .pj-frame__screen { border-radius: 10px; }
.pj-frame--mobile { max-width: 300px; padding: 12px 10px; border-radius: 36px; background: #2d2d2d; box-shadow: 0 14px 34px rgba(0, 0, 0, .22); }
.pj-frame--mobile:before { content: ""; position: absolute; top: 4px; left: 50%; width: 60px; height: 5px; margin-left: -30px; border-radius: 5px; background: #4a4a4a; }
.pj-frame--mobile .pj-frame__screen { border-radius: 24px; }

/* تصویر قابل بزرگ‌نمایی */
.pj-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pj-zoom img { transition: transform .5s ease; }
.pj-zoom:hover img { transform: scale(1.02); }
.pj-zoom:focus-visible { outline: 3px solid var(--bg-dark); outline-offset: -3px; }

/* اسکرین‌شات بلند: پیش‌نمایش با ارتفاع محدود؛ با نگه داشتن ماوس آرام تا پایین صفحه اسکرول می‌شود */
.pj-long { --pj-long-h: 520px; position: relative; height: var(--pj-long-h); overflow: hidden; }
.pj-frame--mobile .pj-long { --pj-long-h: 560px; }
.pj-long img { position: absolute; top: 0; left: 0; transform: translateY(0); transition: transform 1.2s ease; }
.pj-long:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); pointer-events: none; transition: opacity .4s; }
@media (hover: hover) and (pointer: fine) {
    .pj-long:hover img { transform: translateY(calc(-100% + var(--pj-long-h))); transition: transform var(--pj-scroll-time, 8s) linear; }
    .pj-long:hover:after { opacity: 0; }
}
.pj-long__open {
    position: absolute; z-index: 2; bottom: 14px; left: 50%; transform: translateX(-50%); white-space: nowrap;
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 30px;
    background: rgba(45, 45, 45, .92); color: #fff; font: inherit; font-size: 13.5px; cursor: pointer; transition: background .3s;
}
.pj-long__open:hover, .pj-long__open:focus-visible { background: #000; }

/* ویدئو */
.pj-video { background: #000; }

/* آپارات / یوتیوب: تا قبل از کلیک هیچ درخواستی به آن سرویس فرستاده نمی‌شود */
.pj-embed { position: relative; aspect-ratio: 16 / 9; background: #2d2d2d; color: #fff; }
.pj-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pj-embed__play {
    position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    border: 0; background: radial-gradient(circle at 50% 45%, #515151, #2d2d2d 70%); color: #fff; font: inherit; cursor: pointer; padding: 16px;
}
.pj-embed__icon { width: 68px; height: 68px; border-radius: 50%; background: #fff; color: var(--bg-deep); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; padding-inline-start: 4px; transition: transform .3s; }
.pj-embed__play:hover .pj-embed__icon, .pj-embed__play:focus-visible .pj-embed__icon { transform: scale(1.08); }
.pj-embed__text { font-size: 16px; }
.pj-embed__note { font-size: 12px; color: #cfcfcf; }
.pj-embed__link { position: absolute; z-index: 2; bottom: 10px; inset-inline-end: 12px; font-size: 12px; color: #e2e2e2 !important; text-decoration: none !important; }
.pj-embed__link:hover { color: #fff !important; text-decoration: underline !important; }
.pj-embed.is-loaded .pj-embed__play, .pj-embed.is-loaded .pj-embed__link { display: none; }

/* ---------- قبل / بعد ---------- */
.pj-compare-item { margin: 0 0 34px; }
.pj-compare-item:last-child { margin-bottom: 0; }
.pj-compare { --pos: 50%; position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; background: var(--soft); }
.pj-compare__img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: top; pointer-events: none; }
.pj-compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.pj-compare:before {
    content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
    background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .4); pointer-events: none;
}
.pj-compare__handle {
    position: absolute; z-index: 3; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
    background: #fff; color: var(--bg-deep); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center;
    font-size: 18px; pointer-events: none;
}
.pj-compare__label {
    position: absolute; z-index: 2; top: 12px; padding: 3px 12px; border-radius: 30px; background: rgba(45, 45, 45, .85); color: #fff;
    font-size: 12px; pointer-events: none;
}
.pj-compare__label--before { left: 12px; }
.pj-compare__label--after { right: 12px; }
/* کشیدن با ماوس و لمس روی خود تصویر (projects-gnusmas.js؛ اسکرول عمودی صفحه آزاد می‌ماند)؛ لغزنده‌ی پنهان برای کیبورد و صفحه‌خوان */
.pj-compare.is-ready { cursor: ew-resize; }
.pj-compare.is-dragging { cursor: grabbing; }
.pj-compare__range { position: absolute; z-index: 1; bottom: 0; left: 0; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; overflow: hidden; }
.pj-compare:has(.pj-compare__range:focus-visible) .pj-compare__handle { outline: 3px solid var(--bg-dark); outline-offset: 2px; }

/* ---------- تایم‌لاین ---------- */
.pj-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.pj-timeline:before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 9px; width: 2px; background: var(--line); }
.pj-timeline__item { position: relative; padding-inline-start: 40px; padding-bottom: 26px; }
.pj-timeline__item:last-child { padding-bottom: 0; }
.pj-timeline__item:before {
    content: ""; position: absolute; top: 6px; inset-inline-start: 0; width: 20px; height: 20px; border-radius: 50%;
    background: #fff; border: 4px solid var(--bg-dark);
}
.pj-timeline__date { display: inline-block; padding: 2px 12px; border-radius: 30px; background: var(--soft); font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.pj-timeline__title { font-size: 19px; line-height: 1.6; margin: 0 0 4px; letter-spacing: 0; }
.pj-timeline__text { font-size: 15px; line-height: 2; color: #444; margin: 0; }


/* ---------- کارت دستگاه‌ها (سایدبار): موکاپ مانیتور، تبلت و گوشی ---------- */
.pj-devices { padding-top: 22px; }
/* نوار پایین (سوییچ و فلش‌ها) به stage چسبیده، نه به کارت، تا «مشاهده‌ی آنلاین» زیرش بیاید */
.pj-devices__stage { position: relative; }
.pj-devices__stage.has-foot { padding-bottom: 48px; }
.pj-devices .pj-visit { margin-top: 18px; }
/* سوییچ کوچک دستگاه‌ها: پایین سمت چپ کارت */
.pj-devices__tabs { position: absolute; left: -6px; bottom: 0; display: flex; gap: 2px; padding: 3px; border-radius: 30px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.pj-devices__tabs[hidden] { display: none; }
.pj-devices__tab {
    width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted);
    display: inline-flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; transition: all .25s;
}
.pj-devices__tab .fa-mobile { font-size: 19px; }
.pj-devices__tab:hover { color: var(--text); background: var(--soft); }
.pj-devices__tab.is-active { background: var(--bg-dark); color: #fff; }
.pj-devices__tab:focus-visible { outline: 2px solid var(--bg-dark); outline-offset: 2px; }
.pj-devices__panel[hidden] { display: none; }

.pj-mock { position: relative; margin: 0 auto; }
.pj-mock__screen { position: relative; overflow: hidden; background: #e9e9e9; }
.pj-mock__slide { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pj-mock__slide[hidden] { display: none; }
.pj-mock__slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pj-mock__slide:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
/* مانیتور: قاب مشکی، لبه‌ی پایین پهن‌تر، پایه */
.pj-mock--desktop .pj-mock__screen { aspect-ratio: 16 / 10; border: 9px solid #1f1f1f; border-bottom-width: 22px; border-radius: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.pj-mock__stand { display: block; position: relative; width: 22%; height: 38px; margin: 0 auto; }
.pj-mock__stand:before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 30px; background: linear-gradient(#bdbdbd, #9c9c9c); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.pj-mock__stand:after { content: ""; position: absolute; left: 50%; bottom: 0; width: 230%; height: 8px; transform: translateX(-50%); border-radius: 6px 6px 3px 3px; background: #8f8f8f; }
.pj-mock--desktop { padding-bottom: 8px; }
/* تبلت */
.pj-mock--tablet { max-width: 230px; }
.pj-mock--tablet .pj-mock__screen { aspect-ratio: 3 / 4; border: 12px solid #1f1f1f; border-radius: 22px; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
/* گوشی */
.pj-mock--mobile { max-width: 160px; }
.pj-mock--mobile .pj-mock__screen { aspect-ratio: 9 / 19.5; border: 8px solid #1f1f1f; border-radius: 28px; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.pj-mock--mobile .pj-mock__screen:before { content: ""; position: absolute; z-index: 2; top: 6px; left: 50%; width: 34%; height: 10px; margin-left: -17%; border-radius: 10px; background: #1f1f1f; pointer-events: none; }

/* جابه‌جایی بین تصویرهای یک دستگاه: پایین سمت راست کارت، هم‌ردیف سوییچ دستگاه */
.pj-devices__nav { position: absolute; right: -6px; bottom: 3px; display: flex; align-items: center; gap: 6px; }
.pj-devices__arrow { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; color: var(--text); font-size: 20px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .3s; }
.pj-devices__arrow:hover, .pj-devices__arrow:focus-visible { background: var(--bg-dark); color: #fff; }
.pj-devices__count { font-size: 12px; color: var(--muted); min-width: 40px; text-align: center; }
.pj-devices__caption { margin: 14px 0 0; text-align: center; font-size: 13px; line-height: 1.9; color: var(--muted); }
.pj-devices__caption[hidden] { display: none; }

/* کادر «نقش من در این پروژه»: وسط ستون، زمینه‌ی تیره‌ی سایت، عکس گرد گوشه‌ی راست بالا */
.pj-role {
    position: relative; max-width: 560px; margin: 46px auto 10px; padding: 30px 32px 28px; text-align: center;
    background: var(--bg-dark); color: #e2e2e2; border-radius: 25px; box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}
.pj-role.has-photo { padding-top: 40px; }
.pj-role__photo {
    position: absolute; top: -30px; right: 24px; width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
    border: 4px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); filter: grayscale(1); transition: filter .4s;
}
.pj-role:hover .pj-role__photo { filter: grayscale(0); }
.pj-role__title { font-size: 15px; font-family: inherit; font-weight: normal; color: #cfcfcf; letter-spacing: 0; margin: 0 0 8px; }
.pj-role__text { font-family: Lalezar, Vazir, sans-serif; font-size: 24px; line-height: 1.7; color: #fff; margin: 0; }

/* ویدئوها آخر توضیحات */
.pj-videos { margin-top: 30px; }
.pj-videos .pj-gallery { gap: 26px; }

/* ---------- نمایش بزرگ تصویر ---------- */
.pj-viewer {
    width: min(1100px, calc(100vw - 32px)); max-width: none; height: calc(100vh - 32px); max-height: none; padding: 0; border: 0;
    border-radius: 18px; background: #1e1e1e; overflow: hidden;
}
.pj-viewer:not([open]) { display: none; }
.pj-viewer::backdrop { background: rgba(0, 0, 0, .78); }
.pj-viewer__body { width: 100%; height: 100%; overflow: auto; overscroll-behavior: contain; display: flex; align-items: center; justify-content: center; }
.pj-viewer__img { display: block; max-width: 100%; max-height: 100%; margin: auto; }
.pj-viewer.is-long .pj-viewer__body { display: block; }
.pj-viewer.is-long .pj-viewer__img { max-height: none; width: 100%; max-width: 1000px; }
.pj-viewer__close {
    position: absolute; z-index: 2; top: 12px; inset-inline-end: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: var(--bg-deep); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.pj-viewer__close:hover, .pj-viewer__close:focus-visible { background: #fff; }
body.pj-no-scroll { overflow: hidden; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 991.98px) {
}
@media (max-width: 767.98px) {
    .pj-lead { font-size: 16.5px; }
    .pj-gallery { gap: 28px 18px; }
    .pj-long { --pj-long-h: 420px; }
    /* نام انگلیسی در موبایل سطر خودش را دارد (بدون جداکننده) */
    .pj-title__en { flex-basis: 100%; padding-right: 0; }
    .pj-title__en:before { display: none; }
    .pj-cover, .pj-cover__img { border-radius: 14px; }
    .pj-cover__logo { left: 12px; bottom: -18px; width: 60px; height: 60px; border-width: 3px; }
    .pj-cover__logo img { width: 42px; height: 42px; }
    .pj-article--cover { padding-top: 40px; }
}
@media (max-width: 575.98px) {
    .pj-gallery { grid-template-columns: minmax(0, 1fr); }
    .pj-frame--tablet { padding: 10px; border-radius: 20px; }
}
@media (max-width: 380px) {
    .pj-role { padding: 26px 18px 22px; }
    .pj-role.has-photo { padding-top: 38px; }
    .pj-role__photo { width: 62px; height: 62px; top: -24px; right: 16px; }
    .pj-role__text { font-size: 20px; }
    /* کارت دستگاه‌ها: فلش‌ها بالای سوییچ دستگاه، تا روی هم نیفتند */
    .pj-devices__nav { position: static; justify-content: center; margin-top: 12px; }
    .pj-frame--mobile { padding: 8px 7px; border-radius: 28px; }
    .pj-frame--mobile .pj-frame__screen { border-radius: 20px; }
    .pj-long { --pj-long-h: 360px; }
    .pj-long__open { font-size: 12.5px; padding: 0 14px; }
    .pj-embed__icon { width: 54px; height: 54px; font-size: 20px; }
    .pj-embed__note { display: none; }
    .pj-timeline__item { padding-inline-start: 32px; }
    .pj-timeline__title { font-size: 17px; }
    .pj-compare__handle { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
}
@media (prefers-reduced-motion: reduce) {
    .pj-long img, .pj-zoom img, .pj-embed__icon { transition: none !important; }
    .pj-status--active::before { animation: none; }
    .pj-long:hover img { transform: none !important; }
}

/* ---------- مسیر پروژه: دکمه و پنجره با چارت افقی (Helpers/ProjectTimelineChart.cs، projects-gnusmas.js) ---------- */
.pj-tl-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.pj-tl-cta .bg-block__title { margin-bottom: 4px; }
.pj-tl-cta__meta { margin: 0; font-size: 14px; color: var(--muted); }
.pj-tl-open {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 30px;
    background: var(--bg-dark); color: #fff; font: inherit; font-size: 14px; cursor: pointer; transition: background-color .3s ease;
}
.pj-tl-open:hover, .pj-tl-open:focus-visible { background: #2e2e2e; outline: 0; }
.pj-tl-open--link { min-height: 0; padding: 0; margin-inline-start: 8px; background: none; color: var(--bg-dark); font-size: 13px; text-decoration: underline; }
.pj-tl-open--link:hover, .pj-tl-open--link:focus-visible { background: none; color: #2e2e2e; }

.pj-tl-dialog {
    width: min(1100px, 94vw); max-width: none; max-height: 90vh; padding: 0; border: 0; border-radius: 20px;
    background: #fff; color: #2e2e2e; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); overflow: hidden;
}
.pj-tl-dialog:not([open]) { display: none; }
.pj-tl-dialog[open] { display: flex; flex-direction: column; }
.pj-tl-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.pj-tl-dialog__head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: var(--bg-deep); }
.pj-tl-dialog__title { margin: 0; font-size: 22px; line-height: 1.5; letter-spacing: 0; color: #fff; }
.pj-tl-dialog__title small { display: block; font-size: 13px; line-height: 1.6; color: #cfcfcf; font-family: Vazir, sans-serif; }
.pj-tl-dialog__close {
    flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12);
    color: #fff; font-size: 18px; cursor: pointer; transition: background-color .3s ease;
}
.pj-tl-dialog__close:hover, .pj-tl-dialog__close:focus-visible { background: rgba(255, 255, 255, .25); outline: 0; }
.pj-tl-dialog__body { overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding-bottom: 20px; }
/* نوار ابزار: راهنما + زوم */
.pj-tl__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 14px 24px 0; }
.pj-tl__hint { flex: 1 1 320px; margin: 0; font-size: 12.5px; line-height: 1.9; color: var(--muted); }
.pj-tl__zoom { display: flex; flex: none; align-items: center; gap: 6px; }
.pj-tl__level { min-width: 64px; padding: 0 10px; border-radius: 30px; background: var(--soft); font-size: 12px; line-height: 28px; color: var(--muted); text-align: center; }
.pj-tl__zoom button {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 36px; height: 36px; padding: 0 10px;
    border: 1px solid #e2e2e2; border-radius: 30px; background: #fff; color: #2e2e2e; font: inherit; font-size: 13px; cursor: pointer;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.pj-tl__zoom button:hover:not(:disabled), .pj-tl__zoom button:focus-visible { border-color: var(--bg-dark); background: var(--bg-dark); color: #fff; outline: 0; }
.pj-tl__zoom button:disabled { opacity: .4; cursor: default; }

.pj-tl__scroll {
    overflow-x: auto; overflow-y: hidden; padding: 10px 24px 14px; overscroll-behavior-x: contain; touch-action: pan-x pan-y;
    scrollbar-width: thin; scrollbar-color: var(--bg-dark) transparent;
}
.pj-tl__scroll::-webkit-scrollbar { height: 6px; }
.pj-tl__scroll::-webkit-scrollbar-thumb { background: var(--bg-dark); border-radius: 6px; }
.pj-tl__scroll:focus { outline: 0; }
.pj-tl__scroll:focus-visible { box-shadow: inset 0 0 0 2px var(--bg-dark); }
/* --cw = عرض محور به پیکسل (زوم)؛ عرض خود چارت ممکن است برای برچسب‌های انتها کمی بیشتر باشد */
.pj-tl__chart { position: relative; width: var(--cw, 100%); min-width: 100%; height: 150px; }

/* محور: هر ماه یک خط؛ اول سال پررنگ‌تر با عدد سال. سطح جزئیات: lvl-year (فقط سال‌ها)، lvl-quarter (فصل‌ها)، lvl-month (همه‌ی ماه‌ها) */
.pj-tl__tick { position: absolute; top: 0; bottom: 0; inset-inline-start: calc(var(--f) * var(--cw, 0px)); border-inline-start: 1px solid #f0f0f0; }
.pj-tl__tick.is-year { border-inline-start-color: #cfcfcf; }
.pj-tl__tick-year { position: absolute; top: 0; inset-inline-start: 6px; font-size: 13px; line-height: 18px; color: #2e2e2e; white-space: nowrap; }
.pj-tl__tick-month { position: absolute; top: 20px; inset-inline-start: 6px; font-size: 11px; line-height: 18px; color: var(--muted); white-space: nowrap; }
.lvl-year .pj-tl__tick:not(.is-year) { border-inline-start-color: transparent; }
.lvl-year .pj-tl__tick-month,
.lvl-quarter .pj-tl__tick:not(.is-q) .pj-tl__tick-month { display: none; }
.lvl-year .pj-tl__tick-year { top: 10px; font-size: 14px; }
.pj-tl__chart::before { content: ""; position: absolute; top: 44px; left: 0; right: 0; height: 2px; background: var(--bg-dark); }
.pj-tl__today { position: absolute; top: 44px; bottom: 0; inset-inline-start: calc(var(--f) * var(--cw, 0px)); border-inline-start: 2px dashed #2e9d5b; }
.pj-tl__today span {
    position: absolute; bottom: 0; inset-inline-start: 4px; padding: 1px 8px; border-radius: 30px;
    background: #2e9d5b; color: #fff; font-size: 11px; white-space: nowrap;
}

/* مرحله: نوار (بازه) یا نقطه (یک تاریخ) و برچسب؛ ردیف (--lane) و برگشت برچسب در انتهای محور (is-flip) را JS می‌گذارد */
.pj-tl__item {
    position: absolute; top: calc(58px + var(--lane, 0) * 82px); inset-inline-start: calc(var(--f) * var(--cw, 0px)); z-index: 1;
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: max-content; margin-inline-start: var(--shift, 0px);
    padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer;
}
.pj-tl__item.is-flip { align-items: flex-end; text-align: end; }
.pj-tl__bar { display: block; height: 10px; border-radius: 10px; background: var(--bg-dark); transition: background-color .3s ease; }
.pj-tl__item.is-range .pj-tl__bar { width: max(6px, calc(var(--fw) * var(--cw, 0px))); }
.pj-tl__item.is-point .pj-tl__bar { width: 14px; height: 14px; margin-inline-start: -7px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg-dark); }
.pj-tl__item.is-flip.is-point .pj-tl__bar { margin-inline-start: 0; margin-inline-end: -7px; }
.pj-tl__label {
    display: block; width: max-content; max-width: 200px; padding: 5px 10px; border-radius: 10px; background: var(--soft);
    transition: background-color .3s ease, color .3s ease;
}
.lvl-year .pj-tl__label { max-width: 150px; padding: 4px 8px; }
.pj-tl__label b { display: block; overflow: hidden; font-size: 13.5px; line-height: 1.6; white-space: nowrap; text-overflow: ellipsis; }
.pj-tl__label small { display: block; font-size: 11.5px; line-height: 1.6; color: var(--muted); white-space: nowrap; }
.lvl-year .pj-tl__label b { font-size: 12.5px; }
.pj-tl__item:hover .pj-tl__label { background: #e9e9e9; }
.pj-tl__item:focus { outline: 0; }
.pj-tl__item:focus-visible .pj-tl__label { box-shadow: 0 0 0 2px var(--bg-dark); }
.pj-tl__item.is-active { z-index: 2; }
.pj-tl__item.is-active .pj-tl__label { background: var(--bg-dark); color: #fff; }
.pj-tl__item.is-active .pj-tl__label small { color: #e2e2e2; }
.pj-tl__item.is-active .pj-tl__bar { background: #2e2e2e; }

/* توضیح مرحله‌ی انتخاب‌شده */
.pj-tl__details { margin: 4px 24px 0; padding: 16px 20px; border-radius: 14px; background: var(--soft); }
.pj-tl__detail-date { display: inline-block; margin-bottom: 6px; padding: 2px 12px; border-radius: 30px; background: #fff; font-size: 12.5px; color: var(--muted); }
.pj-tl__detail-title { margin: 0 0 4px; font-size: 19px; line-height: 1.6; letter-spacing: 0; }
.pj-tl__detail-text { margin: 0; font-size: 15px; line-height: 2; color: #444; }

@media (max-width: 767.98px) {
    .pj-tl-dialog { width: 96vw; max-height: 92vh; border-radius: 14px; }
    .pj-tl-dialog__head { padding: 12px 16px; }
    .pj-tl-dialog__title { font-size: 19px; }
    .pj-tl__toolbar { margin: 12px 16px 0; }
    .pj-tl__fit { font-size: 0 !important; gap: 0 !important; }
    .pj-tl__fit i { font-size: 14px; }
    .pj-tl__scroll { padding: 8px 16px 12px; }
    .pj-tl__details { margin: 4px 16px 0; padding: 14px 16px; }
    .pj-tl-open:not(.pj-tl-open--link) { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .pj-tl__bar, .pj-tl__label { transition: none; }
}

/* ---------- گالری و نمای صفحه‌ها برای پروژه‌ی بدون نسخه‌ی آنلاین ---------- */
button.pj-visit { width: 100%; border: 0; font: inherit; font-size: 14px; cursor: pointer; }
button.pj-visit[aria-busy="true"] { opacity: .7; cursor: progress; }

/* PhotoSwipe: کپشن پایین تصویر */
.pswp__pj-caption {
    position: absolute; left: 50%; bottom: 18px; z-index: 2; max-width: min(720px, calc(100% - 32px)); transform: translateX(-50%);
    padding: 8px 16px; border-radius: 12px; background: rgba(0, 0, 0, .55); color: #fff; font-family: Vazir, sans-serif; font-size: 14px; line-height: 1.9; text-align: center;
}

.pswp__counter { font-family: Vazir, sans-serif; direction: rtl; }
.pswp__top-bar { background: linear-gradient(rgba(0, 0, 0, .45), transparent); }

/* نمای صفحه‌های سایت: تب‌ها (کپشن تصویرهای بلند) + موکاپ لپ‌تاپ */
.pj-screens__note { margin: -4px 0 14px; font-size: 14px; line-height: 2; color: var(--muted); }
.pj-screens__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pj-screens__tab {
    min-height: 40px; padding: 0 18px; border: 1px solid #e2e2e2; border-radius: 30px; background: #fff; color: var(--text);
    font: inherit; font-size: 14px; cursor: pointer; transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.pj-screens__tab:hover { border-color: var(--bg-dark); }
.pj-screens__tab.is-active { border-color: var(--bg-dark); background: var(--bg-dark); color: #fff; }
.pj-screens__tab:focus { outline: 0; }
.pj-screens__tab:focus-visible { box-shadow: 0 0 0 3px rgba(81, 81, 81, .35); }

.pj-laptop { margin: 0 auto; }
.pj-laptop__lid {
    position: relative; margin: 0 4%; padding: 20px 16px 18px; border-radius: 18px 18px 0 0;
    background: #2b2b2b; box-shadow: inset 0 0 0 2px #3a3a3a, 0 18px 40px rgba(0, 0, 0, .18);
}
.pj-laptop__cam { position: absolute; top: 7px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #4d4d4d; }
.pj-laptop__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: #fff; }
.pj-laptop__base { position: relative; height: 16px; border-radius: 0 0 16px 16px; background: linear-gradient(#e2e2e2, #b8b8b8); box-shadow: 0 10px 18px rgba(0, 0, 0, .12); }
.pj-laptop__base::before {
    content: ""; position: absolute; top: 0; left: 50%; width: 18%; height: 7px; transform: translateX(-50%);
    border-radius: 0 0 10px 10px; background: #a9a9a9;
}

/* هر صفحه: تصویر تمام‌عرض از بالا؛ هاور → تا پایین در --pj-scroll، خروج موس → برگشت سریع. لمسی: اسکرول با انگشت */
.pj-laptop__page { position: absolute; inset: 0; overflow: hidden; cursor: ns-resize; }
.pj-laptop__page:focus { outline: 0; }
.pj-laptop__page:focus-visible { box-shadow: inset 0 0 0 3px var(--bg-dark); }
.pj-laptop__page img {
    position: absolute; top: 0; left: 0; display: block; width: 100%; height: auto; max-width: none;
    transform: translateY(0); transition: top .9s ease, transform .9s ease;
}
@media (hover: hover) and (pointer: fine) {
    .pj-laptop__page:hover img, .pj-laptop__page:focus-visible img {
        top: 100%; transform: translateY(-100%);
        transition: top var(--pj-scroll, 8s) linear, transform var(--pj-scroll, 8s) linear;
    }
}
@media (hover: none), (pointer: coarse) {
    .pj-laptop__page { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; cursor: auto; }
    .pj-laptop__page img { position: static; transition: none; }
}
@media (prefers-reduced-motion: reduce) {
    .pj-laptop__page { overflow-y: auto; }
    .pj-laptop__page img, .pj-laptop__page:hover img { position: static; transform: none; transition: none; }
}
/* صفحه‌ی کوتاه‌تر از قاب (تصویر معمولی با قاب «لپ‌تاپ»): ثابت و کامل وسط صفحه، بدون اسکرول؛ حاشیه‌ی احتمالی تیره مثل نمایشگر */
.pj-laptop__page.is-still { overflow: hidden; cursor: default; background: #111; }
.pj-laptop__page.is-still img, .pj-laptop__page.is-still:hover img, .pj-laptop__page.is-still:focus-visible img {
    position: absolute; inset: 0; top: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; transform: none; transition: none;
}

.pj-screens__foot { display: flex; justify-content: center; margin-top: 16px; }
.pj-screens__full {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 30px;
    background: var(--soft); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; transition: background-color .3s ease;
}
.pj-screens__full:hover, .pj-screens__full:focus-visible { background: #e9e9e9; outline: 0; }

@media (max-width: 575.98px) {
    .pj-laptop__lid { margin: 0 2%; padding: 14px 8px 12px; border-radius: 12px 12px 0 0; }
    .pj-laptop__cam { top: 4px; width: 5px; height: 5px; }
    .pj-laptop__base { height: 11px; }
    .pj-screens__tab { padding: 0 14px; font-size: 13px; }
}

/* «کد پروژه»: آخرین ردیف «مشخصات پروژه» (پروژه‌ی متن‌باز)، چپ‌چین با لوگوی گرد */
.pj-facts__row--repo dd { text-align: left; }
.pj-repo { display: flex; align-items: center; gap: 10px; max-width: 100%; color: var(--text) !important; text-decoration: none !important; }
.pj-repo__logo { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #24292f; color: #fff; font-size: 21px; line-height: 1; transition: transform .2s ease, background-color .2s ease; }
.pj-repo__text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; border-bottom: 1px dashed transparent; transition: border-color .2s ease; }
.pj-repo:hover .pj-repo__logo, .pj-repo:focus-visible .pj-repo__logo { transform: scale(1.06); background: #000; }
.pj-repo:hover .pj-repo__text, .pj-repo:focus-visible .pj-repo__text { border-bottom-color: currentColor; }

/* «گالری تصاویر» (پروژه بدون نسخه‌ی آنلاین): تصویرهای کوچک کنار هم جای دکمه‌ی «مشاهده‌ی آنلاین»؛ کلیک = PhotoSwipe */
.pj-gal { margin-top: 16px; }
.pj-devices .pj-gal { margin-top: 18px; }
.pj-gal__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: bold; color: var(--text); }
.pj-gal__head i { margin-inline-end: 4px; }
.pj-gal__head small { font-size: 12px; font-weight: normal; color: var(--muted); }
.pj-gal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pj-gal[data-count="1"] .pj-gal__grid { grid-template-columns: 1fr; }
.pj-gal[data-count="2"] .pj-gal__grid, .pj-gal[data-count="4"] .pj-gal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pj-gal[data-count="5"] .pj-gal__item:first-child { grid-column: span 2; aspect-ratio: auto; } /* ارتفاع همان ردیف (تصویر کناری ۴:۳) */
.pj-gal__item { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #e4e4e4; cursor: zoom-in; }
.pj-gal[data-count="1"] .pj-gal__item { aspect-ratio: 16 / 10; }
.pj-gal__item img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .35s ease; }
.pj-gal__item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: background-color .25s ease; pointer-events: none; }
.pj-gal__item:hover img, .pj-gal__item:focus-visible img { transform: scale(1.06); }
.pj-gal__item:hover::after, .pj-gal__item:focus-visible::after { background: rgba(0, 0, 0, .12); }
.pj-gal__item:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.pj-gal__item[aria-busy="true"] { cursor: progress; opacity: .75; }
.pj-gal__more { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55); color: #fff; font-size: 20px; font-weight: bold; direction: ltr; }
.pj-gal__screens { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--muted) !important; text-decoration: none !important; }
.pj-gal__screens:hover, .pj-gal__screens:focus-visible { color: var(--text) !important; }
