/* =========================================================================
   گالری پروژه‌ها — تسلاکالا
   -------------------------------------------------------------------------
   زبان طراحی از صفحهٔ «ارتباط با ما» (style/css/contact.css) گرفته شده است:
     هیروی کرم‌رنگ گرادیانی · کارت سفید با کادر #CCD5D3 و شعاع 16
     دکمهٔ قرصی 50px · بلوک طلایی #FFD500 · تیتر بخش وسط‌چین ۳۲px
   ⚠️ قالب box-sizing سراسری ندارد → همه‌چیز داخل .tkg خودش ریست می‌کند.
   ========================================================================= */

.tkg,
.tkg *,
.tkg *::before,
.tkg *::after {
  box-sizing: border-box;
}


.tkg {
  /* Gray scale — همان نام‌گذاری contact.css */
  --ink: #060707;          /* Gray/950 */
  --ink-2: #394040;        /* Gray/700 */
  --muted: #7E928F;        /* Gray/400 */
  --line: #E4E9E9;         /* Gray/100 */
  --line-2: #CCD5D3;       /* Gray/200 */
  --bg: #F5F6F6;
  --surface: #FFFFFF;

  /* Brand */
  --cream: #FFF2C5;
  --cream-soft: #FFFBEA;
  --gold: #FFD500;
  --amber: #FF9900;        /* Primary/500 */
  --amber-hover: #FFBD1B;
  --blue: #2A4ACA;

  --shadow-card: 0px 2px 4px -2px #0607070D, 0px 4px 6px -1px #0607071A;
  --shadow-lift: 0px 10px 10px 0px #0607070A, 0px 20px 25px -5px #0607071A;

  --r-card: 16px;
  --r-box: 8px;
  --r-pill: 50px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  display: block;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Yekan Bakh', 'Estedad', Tahoma, sans-serif;
  line-height: 1.7;
}

.tkg [hidden], .tkg[hidden] { display: none !important; }
.tkg img { max-width: 100%; height: auto; display: block; }
.tkg svg { width: 1em; height: 1em; display: block; flex: none; }
/* ⚠️ :where() عمداً استفاده شده — ویژگی (specificity) صفر می‌دهد.
   با `.tkg a` معمولی، این ریست از خودِ `.tkg-btn-primary` قوی‌تر می‌شد و
   رنگ دکمه‌ها را می‌خورد (متن مشکی روی پس‌زمینهٔ مشکی). */
.tkg :where(a) { text-decoration: none; color: inherit; }
.tkg :where(button) { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

/* عرض ستون اصلی = همان ۱۱۱۰px صفحهٔ ارتباط با ما */
.tkg-wrap {
  width: 1110px;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 16px;
}

/* =========================================================================
   ۱) هیرو — الگوی .header صفحهٔ ارتباط با ما
   ========================================================================= */
.tkg-hero {
  background: linear-gradient(180deg, #FFF2C5 0%, #FFFFFF 99%);
  padding-block: 56px 72px;
  text-align: center;
}

.tkg-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.tkg-crumbs a { color: var(--ink-2); transition: color .2s var(--ease); }
.tkg-crumbs a:hover { color: var(--ink); }
.tkg-crumbs span[aria-hidden] { color: var(--line-2); }
.tkg-crumb-current { color: var(--muted); }

.tkg-hero-title {
  margin: 0;
  font-size: 40px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}

.tkg-hero-intro {
  margin: 16px auto 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 2;
  font-weight: 400;
  color: var(--ink-2);
}
.tkg-hero-intro p { margin: 0 0 8px; }
.tkg-hero-intro p:last-child { margin-bottom: 0; }

/* آمار — کارت سفید، همان کادر و سایهٔ .method-card */
.tkg-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.tkg-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 180px;
  padding: 24px 32px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.tkg-stat-num { font-size: 32px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.tkg-stat-lbl { font-size: 16px; font-weight: 500; color: var(--ink-2); }

/* =========================================================================
   ۲) نوار فیلتر
   ========================================================================= */
.tkg-filterbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.tkg-filters-scroll {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-block: 20px;
}

.tkg-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 11px 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.tkg-pill:hover { border-color: var(--gold); box-shadow: var(--shadow-card); }
.tkg-pill.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 700;
}
.tkg-pill-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding-inline: 7px;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.tkg-pill.is-active .tkg-pill-n { background: rgba(6, 7, 7, .10); color: var(--ink); }

/* =========================================================================
   ۳) شبکهٔ پروژه‌ها
   ========================================================================= */
.tkg-grid-wrap { padding-block: 56px 0; }

.tkg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  transition: opacity .18s var(--ease);
}
.tkg-grid.is-loading { opacity: .35; pointer-events: none; }

.tkg-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  animation: tkg-in .45s var(--ease) both;
}
.tkg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--gold);
}
.tkg-card.is-featured { grid-column: span 2; }

@keyframes tkg-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.tkg-card-link { display: block; height: 100%; }

.tkg-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
}
.tkg-card.is-featured .tkg-card-media { aspect-ratio: 16 / 9; }

.tkg-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.tkg-card:hover .tkg-card-img { transform: scale(1.05); }

.tkg-card-noimg { background: linear-gradient(135deg, #FFF6DC 0%, #FFFFFF 100%); }

.tkg-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 7, 7, .18) 0%, rgba(6, 7, 7, 0) 38%, rgba(6, 7, 7, .42) 100%);
  opacity: .9;
  transition: opacity .3s var(--ease);
}
.tkg-card:hover .tkg-card-shade { opacity: 1; }

.tkg-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.tkg-chip-cat {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
}

.tkg-card-counts {
  position: absolute;
  inset-block-end: 12px;
  inset-inline-start: 12px;
  display: flex;
  gap: 6px;
}
.tkg-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(6, 7, 7, .70);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.tkg-count svg { width: 13px; height: 13px; fill: currentColor; }
.tkg-count-video { background: var(--gold); color: var(--ink); }

.tkg-card-cta {
  position: absolute;
  inset-block-end: 12px;
  inset-inline-end: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.tkg-card-cta svg { width: 14px; height: 14px; }
.tkg-card:hover .tkg-card-cta { opacity: 1; transform: none; }

.tkg-card-body { padding: 24px; }

.tkg-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tkg-card.is-featured .tkg-card-title { font-size: 24px; }

.tkg-card-desc {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.9;
  font-weight: 400;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tkg-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.tkg-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tkg-card-meta svg { width: 16px; height: 16px; color: var(--line-2); }

/* حالت خالی */
.tkg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  background: var(--cream-soft);
  color: var(--ink-2);
  text-align: center;
}
.tkg-empty svg { width: 56px; height: 56px; color: var(--gold); }
.tkg-empty p { margin: 0; font-size: 18px; font-weight: 500; }

/* دکمهٔ بارگذاری بیشتر */
.tkg-more-wrap { display: flex; justify-content: center; margin-top: 40px; }
.tkg-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  transition: background .24s var(--ease);
}
.tkg-more:hover { background: var(--ink-2); }
.tkg-more.is-busy { pointer-events: none; opacity: .7; }

.tkg-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  display: none;
  animation: tkg-spin .7s linear infinite;
}
.tkg-more.is-busy .tkg-spinner { display: block; }
@keyframes tkg-spin { to { transform: rotate(360deg); } }

/* =========================================================================
   ۴) دکمه‌ها — الگوی .collaboration-btn / .whatsapp-btn
   ========================================================================= */
.tkg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  transition: background .24s var(--ease), border-color .24s var(--ease), color .24s var(--ease);
}
.tkg-btn svg { width: 20px; height: 20px; }

.tkg-btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.tkg-btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }

.tkg-btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.tkg-btn-ghost:hover { background: var(--ink); color: #fff; }

.tkg-btn-amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.tkg-btn-amber:hover { background: var(--amber-hover); border-color: var(--amber-hover); }

.tkg-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
}
.tkg-link svg { width: 16px; height: 16px; }

/* =========================================================================
   ۵) بلوک طلایی پایانی — الگوی .collaboration
   ========================================================================= */
.tkg-cta { padding-block: 80px 96px; }
.tkg-cta-inner {
  background: var(--gold);
  border-radius: var(--r-card);
  padding: 64px 40px;
  text-align: center;
}
.tkg-cta-text h2 { margin: 0 0 12px; font-size: 32px; font-weight: 700; color: var(--ink); }
.tkg-cta-text p { margin: 0 auto; max-width: 620px; font-size: 18px; font-weight: 400; color: var(--ink); }
.tkg-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

/* =========================================================================
   ۶) صفحهٔ پروژه — هیرو
   ========================================================================= */
.tkg-shero {
  background: linear-gradient(180deg, #FFF2C5 0%, #FFFFFF 99%);
  padding-block: 40px 56px;
  text-align: center;
}

.tkg-shero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.tkg-shero-tags .tkg-chip {
  background: var(--surface);
  border: 1px solid var(--line-2);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.tkg-shero-tags .tkg-chip:hover { background: var(--gold); border-color: var(--gold); }

.tkg-shero-title {
  margin: 0 auto;
  max-width: 900px;
  font-size: 36px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
}
.tkg-shero-sub {
  margin: 16px auto 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 2;
  font-weight: 400;
  color: var(--ink-2);
}

.tkg-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 0;
}
.tkg-fact {
  min-width: 200px;
  padding: 20px 28px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.tkg-fact dt { margin: 0 0 4px; font-size: 14px; font-weight: 400; color: var(--muted); }
.tkg-fact dd { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }

/* =========================================================================
   ۷) صفحهٔ پروژه — استیج تصاویر
   ========================================================================= */
.tkg-stage-wrap { padding-block: 8px 0; }

.tkg-stage {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
  gap: 16px;
}

.tkg-stage-main,
.tkg-stage-thumb {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-card);
  padding: 0;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.tkg-stage-main:hover,
.tkg-stage-thumb:hover { border-color: var(--gold); box-shadow: var(--shadow-lift); }
.tkg-stage-main { aspect-ratio: 16 / 10; }
.tkg-stage-main img,
.tkg-stage-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tkg-stage-main:hover img,
.tkg-stage-thumb:hover img { transform: scale(1.04); }

.tkg-stage-side {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tkg-stage-thumb { height: 100%; }

.tkg-play {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translate(50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(6, 7, 7, .24);
  transition: transform .28s var(--ease), background .28s var(--ease);
}
.tkg-play svg { width: 28px; height: 28px; fill: var(--ink); }
.tkg-play-sm { width: 44px; height: 44px; }
.tkg-play-sm svg { width: 18px; height: 18px; }
.tkg *:hover > .tkg-play { transform: translate(50%, -50%) scale(1.07); }

.tkg-zoom {
  position: absolute;
  inset-block-end: 16px;
  inset-inline-end: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.tkg-zoom svg { width: 20px; height: 20px; }
.tkg-stage-main:hover .tkg-zoom { opacity: 1; transform: none; }

.tkg-more-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 7, 7, .62);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  backdrop-filter: blur(2px);
}

/* =========================================================================
   ۸) صفحهٔ پروژه — بدنه
   ========================================================================= */
.tkg-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  padding-block: 56px 0;
  align-items: start;
}

.tkg-h2 {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.tkg-h2-n { font-size: 14px; font-weight: 400; color: var(--muted); }
.tkg-body-main > .tkg-h2:not(:first-child) { margin-top: 48px; }

.tkg-prose {
  font-size: 16px;
  line-height: 2.1;
  font-weight: 400;
  color: var(--ink-2);
}
.tkg-prose p { margin: 0 0 16px; }
.tkg-prose h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 28px 0 12px; }
.tkg-prose ul { list-style: disc; margin: 0 0 16px; padding-inline-start: 22px; }
.tkg-prose ol { list-style: decimal; margin: 0 0 16px; padding-inline-start: 22px; }
.tkg-prose li { margin-bottom: 8px; display: list-item; }
.tkg-prose img { border-radius: var(--r-box); margin: 12px 0; }
.tkg-prose a { color: var(--blue); text-decoration: underline; }

/* ویدیوها */
.tkg-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tkg-video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #0B0D0D;
  padding: 0;
  box-shadow: var(--shadow-card);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.tkg-video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--gold); }
.tkg-video-card img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s var(--ease), transform .5s var(--ease); }
.tkg-video-card:hover img { opacity: .66; transform: scale(1.04); }
.tkg-video-title {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: 28px 16px 16px;
  background: linear-gradient(180deg, rgba(6, 7, 7, 0), rgba(6, 7, 7, .82));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: start;
}

/* تصاویر */
.tkg-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tkg-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 0;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.tkg-photo:hover { border-color: var(--gold); box-shadow: var(--shadow-lift); }
.tkg-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tkg-photo:hover img { transform: scale(1.06); }
.tkg-photo-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 7, 7, .26);
  color: var(--ink);
  opacity: 0;
  transition: opacity .26s var(--ease);
}
.tkg-photo-zoom svg {
  width: 44px;
  height: 44px;
  padding: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-sizing: border-box;
}
.tkg-photo:hover .tkg-photo-zoom { opacity: 1; }

/* ستون کناری */
.tkg-body-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }

.tkg-panel {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
}
.tkg-panel-title { margin: 0 0 16px; font-size: 20px; font-weight: 700; color: var(--ink); }

.tkg-specs { margin: 0; }
.tkg-spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px dashed var(--line);
  font-size: 16px;
}
.tkg-spec:last-child { border-bottom: 0; padding-bottom: 0; }
.tkg-spec dt { margin: 0; color: var(--muted); font-weight: 400; flex: none; }
.tkg-spec dd { margin: 0; color: var(--ink); font-weight: 700; text-align: end; }

/* پنل CTA طلایی — نسخهٔ کوچک .collaboration */
.tkg-panel-cta {
  background: var(--gold);
  border-color: var(--gold);
  text-align: center;
}
.tkg-panel-cta p { margin: 0 0 24px; font-size: 16px; line-height: 1.9; color: var(--ink); }
.tkg-panel-cta .tkg-btn { width: 100%; }
.tkg-panel-cta .tkg-btn + .tkg-btn { margin-top: 12px; }

/* پروژه‌های مرتبط */
.tkg-related { padding-block: 72px 0; }
.tkg-related-head { text-align: center; margin-bottom: 40px; }
.tkg-related-head .tkg-h2 { display: block; margin: 0 0 12px; font-size: 32px; }

/* =========================================================================
   ۹) لایت‌باکس
   ========================================================================= */
.tkg-lb {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(6, 7, 7, .96);
  backdrop-filter: blur(10px);
  animation: tkg-fade .22s var(--ease);
}
.tkg-lb[hidden] { display: none; }
@keyframes tkg-fade { from { opacity: 0; } to { opacity: 1; } }

.tkg-lb-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
}
.tkg-lb-counter { font-weight: 700; color: var(--gold); }
.tkg-lb-caption { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255, 255, 255, .62); }
.tkg-lb-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.tkg-lb-close:hover { background: var(--gold); color: var(--ink); }
.tkg-lb-close svg { width: 20px; height: 20px; }

.tkg-lb-stage {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 80px;
  min-height: 0;
}
.tkg-lb-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-box);
  animation: tkg-pop .28s var(--ease);
}
.tkg-lb-stage video {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--r-box);
  background: #000;
}
.tkg-lb-frame {
  width: min(100%, 1100px);
  aspect-ratio: 16 / 9;
  max-height: 100%;
  border: 0;
  border-radius: var(--r-box);
  background: #000;
}
@keyframes tkg-pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

.tkg-lb-nav {
  position: absolute;
  inset-block-start: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.tkg-lb-nav:hover { background: var(--gold); color: var(--ink); }
.tkg-lb-nav svg { width: 24px; height: 24px; }
.tkg-lb-prev { inset-inline-start: 16px; }
.tkg-lb-next { inset-inline-end: 16px; }
.tkg-lb-nav[hidden] { display: none; }

.tkg-lb-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 20px 20px;
  scrollbar-width: none;
}
.tkg-lb-strip::-webkit-scrollbar { display: none; }
.tkg-lb-thumb {
  position: relative;
  flex: none;
  width: 88px;
  height: 60px;
  border-radius: var(--r-box);
  overflow: hidden;
  border: 2px solid transparent;
  opacity: .5;
  transition: opacity .2s var(--ease), border-color .2s var(--ease);
  padding: 0;
  background: #111;
}
.tkg-lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tkg-lb-thumb.is-active { opacity: 1; border-color: var(--gold); }
.tkg-lb-thumb:hover { opacity: .85; }
.tkg-lb-thumb .tkg-lb-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 7, 7, .40);
  color: var(--gold);
}
.tkg-lb-thumb .tkg-lb-thumb-play svg { width: 18px; height: 18px; fill: currentColor; }

body.tkg-lb-open { overflow: hidden; }

/* =========================================================================
   ۱۰) واکنش‌گرایی — نقاط شکست همان contact.css
   ========================================================================= */
@media (max-width: 1200px) {
  .tkg-body { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 1024px) {
  .tkg-hero { padding-block: 48px 56px; }
  .tkg-hero-title { font-size: 34px; }
  .tkg-shero-title { font-size: 30px; }
  .tkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tkg-card.is-featured { grid-column: span 2; }
  .tkg-body { grid-template-columns: minmax(0, 1fr); }
  .tkg-body-side { position: static; }
  .tkg-stage { grid-template-columns: minmax(0, 1fr); }
  .tkg-stage-side { grid-template-rows: minmax(0, 1fr); grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-columns: none; }
  .tkg-stage-thumb { aspect-ratio: 4 / 3; height: auto; }
  .tkg-cta { padding-block: 56px 72px; }
  .tkg-cta-inner { padding: 48px 24px; }
}

@media (max-width: 767px) {
  .tkg-hero { padding-block: 32px 40px; }
  .tkg-hero-title { font-size: 28px; }
  .tkg-hero-intro { font-size: 16px; margin-top: 12px; }
  .tkg-crumbs { font-size: 13px; margin-bottom: 16px; }
  .tkg-stats { gap: 8px; margin-top: 28px; }
  .tkg-stat { flex: 1 1 30%; min-width: 0; padding: 16px 12px; }
  .tkg-stat-num { font-size: 24px; }
  .tkg-stat-lbl { font-size: 13px; }

  .tkg-filterbar .tkg-wrap { padding-inline: 0; }
  .tkg-filters-scroll {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 14px 16px;
  }
  .tkg-filters-scroll::-webkit-scrollbar { display: none; }
  .tkg-pill { font-size: 14px; padding: 9px 18px; }

  .tkg-grid-wrap { padding-block: 32px 0; }
  .tkg-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tkg-card.is-featured { grid-column: auto; }
  .tkg-card.is-featured .tkg-card-media { aspect-ratio: 4 / 3; }
  .tkg-card.is-featured .tkg-card-title { font-size: 20px; }
  .tkg-card-body { padding: 20px; }
  .tkg-card-cta { opacity: 1; transform: none; }

  .tkg-empty { padding: 48px 16px; }
  .tkg-empty p { font-size: 16px; }

  .tkg-cta { padding-block: 40px 56px; }
  .tkg-cta-inner { padding: 40px 20px; border-radius: var(--r-card); }
  .tkg-cta-text h2 { font-size: 24px; }
  .tkg-cta-text p { font-size: 16px; }
  .tkg-cta-actions { margin-top: 28px; gap: 8px; flex-direction: column; }
  .tkg-cta-actions .tkg-btn { width: 100%; }

  .tkg-shero { padding-block: 24px 40px; }
  .tkg-shero-sub { font-size: 16px; }
  .tkg-facts { gap: 8px; }
  .tkg-fact { flex: 1 1 46%; min-width: 0; padding: 14px 16px; }
  .tkg-fact dd { font-size: 16px; }

  .tkg-stage { gap: 8px; }
  .tkg-stage-main { aspect-ratio: 4 / 3; }
  .tkg-stage-side { display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; }
  .tkg-stage-side::-webkit-scrollbar { display: none; }
  .tkg-stage-thumb { flex: none; width: 128px; }

  .tkg-body { padding-block: 40px 0; gap: 24px; }
  .tkg-h2 { font-size: 20px; }
  .tkg-body-main > .tkg-h2:not(:first-child) { margin-top: 36px; }
  .tkg-prose { font-size: 15px; line-height: 2; }
  .tkg-videos-grid { grid-template-columns: minmax(0, 1fr); }
  .tkg-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tkg-photo-zoom { opacity: 1; background: transparent; align-items: flex-end; justify-content: flex-start; padding: 8px; }
  .tkg-photo-zoom svg { width: 32px; height: 32px; padding: 8px; }
  .tkg-panel { padding: 24px 20px; }

  .tkg-related { padding-block: 48px 0; }
  .tkg-related-head { margin-bottom: 24px; }
  .tkg-related-head .tkg-h2 { font-size: 24px; }

  .tkg-lb-stage { padding: 0 12px; }
  .tkg-lb-nav { width: 44px; height: 44px; }
  .tkg-lb-prev { inset-inline-start: 8px; }
  .tkg-lb-next { inset-inline-end: 8px; }
  .tkg-lb-thumb { width: 68px; height: 48px; }
  .tkg-play { width: 56px; height: 56px; }
  .tkg-play svg { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .tkg *,
  .tkg *::before,
  .tkg *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* Stable related-project cards */
.tkg-related .tkg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tkg-related-card { overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-card); }
.tkg-related-card a { display: block; color: inherit; text-decoration: none; }
.tkg-related-media { position: relative; height: 240px; overflow: hidden; background: var(--bg); }
.tkg-related-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tkg-related-card:hover .tkg-related-media img { transform: scale(1.035); }
.tkg-related-media span { position: absolute; top: 12px; right: 12px; padding: 5px 9px; border-radius: 50px; background: var(--gold); font-size: 11px; font-weight: 700; }
.tkg-related-copy { padding: 18px; }
.tkg-related-copy h3 { min-height: 52px; margin: 0 0 14px; font-size: 16px; line-height: 1.65; }
.tkg-related-copy strong { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 12px; }
.tkg-related-copy svg { width: 15px; }
@media (max-width: 1024px) { .tkg-related .tkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .tkg-related .tkg-grid { grid-template-columns: minmax(0, 1fr); } .tkg-related-media { height: 220px; } }
.tkg-related { padding-bottom: 72px; }
@media (max-width: 680px) { .tkg-related { padding-bottom: 48px; } }
