/* ============================================================
   exhibition-detail.css — Үзэсгэлэнгийн дэлгэрэнгүй хуудас
   ed- prefix. Минимал стайл, maroon + gold брэнд
   ============================================================ */

.ed-body { background: #ffffff; }


/* ─── BREADCRUMB ─── */
.ed-breadcrumb { font-size: .82rem; }
.ed-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ed-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.ed-breadcrumb a:hover { color: var(--maroon); }
.ed-breadcrumb [aria-current="page"] {
  color: var(--maroon);
  font-weight: 700;
}
.ed-breadcrumb i { font-size: .55rem; color: #bbb; }


/* ═══════════════════════════════════════════════════════════
   BANNER — постер бүтэн харагдана (cover crop биш)
   2 layout: --landscape (хөндлөн постер) / --portrait (босоо постер)
   ═══════════════════════════════════════════════════════════ */
.ed-banner {
  position: relative;
  background: linear-gradient(180deg, #2b0001 0%, #3B0002 55%, #2b0001 100%);
  overflow: hidden;
  isolation: isolate;
  padding: 36px 0;
}
.ed-banner-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/tamga-pattern.png');
  background-size: 220px;
  background-repeat: repeat;
  opacity: .05;
  filter: invert(1) sepia(1) hue-rotate(15deg) saturate(2);
  z-index: -1;
  pointer-events: none;
}
.ed-banner-inner {
  display: flex;
  gap: 40px;
  align-items: center;
}
.ed-banner-poster {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(201, 162, 74, .25);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.ed-banner-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ed-banner-info {
  flex: 1 1 auto;
  color: #fff;
  min-width: 0;
}

/* ─── VERSION 1 — Landscape (хөндлөн) постер: дээр постер, доор мэдээлэл ─── */
.ed-banner--v1 .ed-banner-inner {
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
}
.ed-banner--v1 .ed-banner-poster {
  width: 100%;
  max-height: 460px;
  aspect-ratio: 16 / 7;
}
.ed-banner--v1 .ed-banner-info {
  text-align: left;
}

/* ─── VERSION 2 — Portrait (босоо) постер: зүүн талд постер, баруунд мэдээлэл ─── */
.ed-banner--v2 .ed-banner-inner {
  flex-direction: row;
  align-items: center;
  gap: 48px;
}
.ed-banner--v2 .ed-banner-poster {
  flex: 0 0 360px;
  width: 360px;
  height: 540px;
  aspect-ratio: 2 / 3;
}
/* v2: banner баруун багана дотор товч мэдээлэл + "Тасалбар авах" (хажуу талд) */
.ed-banner--v2 .ed-banner-inner { align-items: stretch; }
.ed-banner--v2 .ed-banner-info { display: flex; flex-direction: column; }
/* flex багана дотор статус badge full-width болохоос сэргийлэх — компакт pill */
.ed-banner--v2 .ed-banner-status { align-self: flex-start; }
.ed-banner-extra {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
/* meta + "Тасалбар авах/Хуваалцах"-ыг хүрэн banner-ийн доод хэсэгт тулгах */
.ed-banner--v2 .ed-banner-extra { flex: 1 1 auto; display: flex; flex-direction: column; }
.ed-banner--v2 .ed-banner-extra .ed-meta-actions { margin-top: auto; }
.ed-banner-extra .ed-meta-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 30px;
  padding-bottom: 0;
  border-bottom: none;
}
.ed-banner-extra .ed-meta-label { color: rgba(255, 255, 255, .62); }
.ed-banner-extra .ed-meta-label i { color: var(--gold-light); }
.ed-banner-extra .ed-meta-cell strong { color: #fff; }
.ed-banner-extra .ed-meta-actions { padding-top: 20px; }
.ed-banner-extra .ed-share-label { color: rgba(255, 255, 255, .62); }
/* Хуваалцах icon — бараан дэвсгэрт тунгалаг/outline (цагаан хүрээ) */
.ed-banner-extra .ed-share-btn {
  background: transparent;
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
}
.ed-banner-extra .ed-share-btn i { color: #fff; }
.ed-banner-extra .ed-share-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
}
.ed-banner-extra .ed-share-btn:hover i { color: var(--maroon-deep); }

.ed-banner-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--maroon);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--gold-deep);
  margin-bottom: 16px;
}
.ed-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2ea043;
  box-shadow: 0 0 0 0 rgba(46, 227, 137, .7);
  animation: ed-pulse 1.8s infinite;
}
@keyframes ed-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 227, 137, .7); }
  60%      { box-shadow: 0 0 0 10px rgba(46, 227, 137, 0); }
}

.ed-banner-cat {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.ed-banner-title {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: .005em;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .45);
}
.ed-banner-meta {
  font-size: clamp(.92rem, 1.4vw, 1.05rem);
  color: rgba(255, 255, 255, .9);
  margin: 0;
  letter-spacing: .02em;
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════
   META BAR
   ═══════════════════════════════════════════════════════════ */
.ed-meta {
  padding: 38px 0 30px;
  background: #faf8f3;
  border-bottom: 1px solid #ece6d4;
  scroll-margin-top: 80px;
}

.ed-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 36px;
  padding-bottom: 26px;
  border-bottom: 1px solid #ece6d4;
}
.ed-meta-cell { display: flex; flex-direction: column; gap: 6px; }
.ed-meta-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.ed-meta-label i { color: var(--gold-deep); }
.ed-meta-cell strong {
  font-size: .98rem;
  font-weight: 700;
  color: var(--maroon);
}

.ed-meta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 24px;
}
.ed-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.ed-share-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.ed-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d4d4d4;
  color: var(--maroon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: .8rem;
  transition: all .2s;
}
.ed-share-btn i { color: var(--maroon); transition: color .2s; }
.ed-share-btn:hover {
  background: var(--maroon);
  border-color: var(--maroon);
  transform: translateY(-2px);
}
.ed-share-btn:hover i { color: #fff; }


/* ═══════════════════════════════════════════════════════════
   ANCHOR NAV
   ═══════════════════════════════════════════════════════════ */
.ed-anchor-nav {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #ece6d4;
  box-shadow: 0 4px 14px rgba(59, 0, 2, .05);
}
.ed-anchor-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  overflow-x: auto;
}
.ed-anchor {
  display: inline-block;
  padding: 18px 22px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.ed-anchor:hover { color: var(--maroon); }
.ed-anchor.active {
  color: var(--maroon);
  border-bottom-color: var(--maroon);
}


/* ═══════════════════════════════════════════════════════════
   SECTION SHARED
   ═══════════════════════════════════════════════════════════ */
.ed-section {
  padding: 80px 0;
  background: #ffffff;
  scroll-margin-top: 130px;
}
.ed-section-alt { background: #faf8f3; }

.ed-section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid #ece6d4;
}
.ed-section-num {
  font-family: 'Courier New', monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--gold-deep);
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}

.ed-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #faf8f3;
  border: 1px solid #ece6d4;
  color: var(--maroon);
  flex-shrink: 0;
  transition: background .2s;
}
.ed-section-icon i {
  color: var(--maroon);
  font-size: 1rem;
}
.ed-section-head:hover .ed-section-icon {
  background: var(--maroon);
}
.ed-section-head:hover .ed-section-icon i { color: var(--gold-light); }
.ed-section-head h2 {
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  font-weight: 700;
  color: var(--maroon);
  margin: 0;
  letter-spacing: .005em;
  flex: 1;
}
.ed-section-line { display: none; }


/* ═══════════════════════════════════════════════════════════
   ABOUT (prose + sidebar)
   ═══════════════════════════════════════════════════════════ */
.ed-prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px) 1fr;
  gap: 50px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.ed-prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--maroon);
  margin: 30px 0 14px;
}
.ed-prose h3:first-of-type { margin-top: 26px; }
.ed-prose p {
  font-size: .98rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 14px;
}
.ed-prose p strong { color: var(--maroon); }
.ed-prose a {
  color: var(--maroon);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-deep);
}
.ed-prose a:hover { background: #faf8f3; }

.ed-lead {
  font-size: 1.12rem !important;
  line-height: 1.75 !important;
  color: var(--maroon) !important;
  font-weight: 500;
  padding-left: 18px;
  border-left: 3px solid var(--gold-deep);
  background: #faf8f3;
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 20px !important;
}
.ed-lead strong { color: var(--maroon); font-weight: 700; }

.ed-highlights {
  list-style: none;
  margin: 18px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ed-highlights li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: #faf8f3;
  border-left: 3px solid var(--gold-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.ed-highlights li i {
  color: var(--gold-deep);
  font-size: 1rem;
  margin-top: 4px;
  flex-shrink: 0;
}
.ed-highlights li div { display: flex; flex-direction: column; gap: 4px; }
.ed-highlights li strong {
  color: var(--maroon);
  font-weight: 700;
  font-size: .98rem;
}
.ed-highlights li span {
  color: var(--text);
  font-size: .88rem;
  line-height: 1.55;
}

/* Sidebar */
.ed-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 140px;
}

.ed-side-card {
  background: #fff;
  border: 1px solid #ece6d4;
  border-radius: var(--radius);
  padding: 22px;
}
.ed-side-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--maroon);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-deep);
}
.ed-side-card h4 i { color: var(--gold-deep); }
.ed-side-card p { font-size: .92rem; color: var(--text); margin: 0 0 6px; }
.ed-side-muted { color: var(--muted); font-size: .85rem; }

.ed-lang-list, .ed-access-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .88rem;
  color: var(--text);
}
.ed-lang-list li, .ed-access-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ed-lang-flag {
  display: inline-block;
  background: var(--maroon);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 7px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}
.ed-access-list i { color: var(--gold-deep); }

.ed-side-cta {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: #fff;
  border: none;
}
.ed-side-cta h4 {
  color: var(--gold-light);
  border-bottom-color: rgba(201, 162, 74, .3);
}
.ed-side-cta h4 i { color: var(--gold-light); }
.ed-side-cta p { color: rgba(255, 255, 255, .85); font-size: .88rem; }
.ed-side-cta .btn { margin-top: 12px; width: 100%; justify-content: center; }
.ed-side-cta .btn-primary {
  background: var(--gold);
  color: var(--maroon-deep);
}
.ed-side-cta .btn-primary:hover { background: var(--gold-light); }
.ed-side-cta .btn-primary i { color: var(--maroon-deep); }


/* ═══════════════════════════════════════════════════════════
   MEDIA TABS (Зураг / Видео)
   ═══════════════════════════════════════════════════════════ */
.ed-media-tabs {
  display: flex;
  gap: 4px;
  background: #fff;
  padding: 4px;
  border-radius: 100px;
  border: 1px solid #ece6d4;
  width: max-content;
  margin: 0 0 32px;
}
.ed-media-tab {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  padding: 10px 22px;
  border-radius: 100px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .2s;
}
.ed-media-tab i { color: var(--gold-deep); transition: color .2s; }
.ed-media-tab em {
  font-style: normal;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
  background: #faf8f3;
  padding: 2px 8px;
  border-radius: 100px;
  transition: all .2s;
}
.ed-media-tab:hover { color: var(--maroon); }
.ed-media-tab:hover i { color: var(--maroon); }
.ed-media-tab.active {
  background: var(--maroon);
  color: #fff;
}
.ed-media-tab.active i { color: var(--gold-light); }
.ed-media-tab.active em {
  background: var(--gold);
  color: var(--maroon-deep);
}

.ed-media-panel { display: none; }
.ed-media-panel.active { display: block; }

.ed-media-foot {
  text-align: center;
  margin-top: 32px;
}


/* ═══════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════ */
.ed-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}
.ed-gal {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--gray);
  text-decoration: none;
}
.ed-gal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s;
}
.ed-gal:hover img { transform: scale(1.06); }
.ed-gal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(59,0,2,.7) 100%);
  opacity: 0;
  transition: opacity .25s;
}
.ed-gal:hover::after { opacity: 1; }

.ed-gal-caption {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  z-index: 1;
  opacity: 0;
  transition: opacity .25s;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.ed-gal:hover .ed-gal-caption { opacity: 1; }

.ed-gal-large {
  grid-column: span 2;
  grid-row: span 2;
}

.ed-gallery-foot {
  text-align: center;
  margin-top: 36px;
}


/* ═══════════════════════════════════════════════════════════
   VIDEOS
   ═══════════════════════════════════════════════════════════ */
.ed-videos {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 22px;
}

.ed-video {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ece6d4;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all .25s;
}
.ed-video:hover {
  border-color: var(--maroon);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(59, 0, 2, .12);
}

.ed-video-main {
  grid-column: 1;
  grid-row: span 2;
}

.ed-video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray);
}
.ed-video-main .ed-video-thumb { aspect-ratio: auto; flex: 1; min-height: 280px; }
.ed-video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s;
}
.ed-video:hover .ed-video-thumb img { transform: scale(1.04); }
.ed-video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.5) 100%);
}

.ed-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 2px solid #fff;
  z-index: 1;
  transition: all .2s;
}
.ed-video-main .ed-video-play { width: 72px; height: 72px; font-size: 1.3rem; }
.ed-video:hover .ed-video-play { transform: translate(-50%, -50%) scale(1.1); }
.ed-video-play i { color: #fff; padding-left: 3px; }
.ed-video-time {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, .8);
  color: #fff;
  font-size: .74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  z-index: 1;
}

.ed-video-info {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ed-video-main .ed-video-info { padding: 24px 28px 26px; gap: 10px; }
.ed-video-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.ed-video-info h4 {
  font-size: .98rem;
  font-weight: 700;
  color: var(--maroon);
  margin: 0;
  line-height: 1.35;
}
.ed-video-main .ed-video-info h4 { font-size: 1.25rem; }
.ed-video-info p {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}
.ed-video-meta {
  font-size: .76rem;
  color: var(--muted);
  margin-top: auto;
}

.ed-videos-foot {
  text-align: center;
  margin-top: 30px;
}


/* ═══════════════════════════════════════════════════════════
   PARTNERS
   ═══════════════════════════════════════════════════════════ */
.ed-partners-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 720px;
  margin: -16px 0 36px;
}
.ed-partners-intro strong { color: var(--maroon); }

.ed-partners-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  border-top: 1px solid #ece6d4;
}

.ed-partner {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 26px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ece6d4;
  border-radius: 0;
  padding: 26px 4px;
  align-items: center;
  transition: background .2s;
}
.ed-partner:hover {
  background: #faf8f3;
  transform: none;
  box-shadow: none;
}

.ed-partner-main {
  border-bottom: 1px solid #ece6d4;
  background: linear-gradient(90deg, rgba(59,0,2,.04) 0%, transparent 100%);
  padding: 30px 4px 30px 18px;
  border-left: none;
  position: relative;
}
.ed-partner-main::before {
  content: '';
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  background: var(--maroon);
}

.ed-partner-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #faf8f3;
  border: 1px solid #ece6d4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ed-partner-logo i { color: var(--maroon); font-size: 1.2rem; }
.ed-partner-main .ed-partner-logo {
  background: var(--maroon);
  border-color: var(--maroon);
}
.ed-partner-main .ed-partner-logo i { color: var(--gold-light); }

.ed-partner-body { display: flex; flex-direction: column; gap: 4px; }
.ed-partner-role {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.ed-partner-body h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--maroon);
  margin: 0;
  letter-spacing: .005em;
}
.ed-partner-body p {
  font-size: .85rem;
  color: var(--text);
  line-height: 1.55;
  margin: 4px 0 0;
}
.ed-partner-link {
  align-self: center;
  font-size: .76rem;
  font-weight: 600;
  color: var(--maroon);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: gap .2s;
}
.ed-partner-link:hover { gap: 10px; }
.ed-partner-link i { font-size: .68rem; color: var(--gold-deep); }


/* ═══════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════ */
.ed-cta {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: #fff;
  text-align: center;
}
.ed-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: .01em;
}
.ed-cta p {
  font-size: 1rem;
  color: rgba(255, 255, 255, .85);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.65;
}
.ed-cta-buttons {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.ed-cta .btn-primary {
  background: var(--gold);
  color: var(--maroon-deep);
}
.ed-cta .btn-primary:hover { background: var(--gold-light); }
.ed-cta .btn-primary i { color: var(--maroon-deep); }
.ed-cta .btn-ghost-light {
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}
.ed-cta .btn-ghost-light i { color: var(--gold-light); }
.ed-cta .btn-ghost-light:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--gold);
}


/* ═══════════════════════════════════════════════════════════
   RELATED
   ═══════════════════════════════════════════════════════════ */
.ed-related {
  padding: 70px 0 90px;
  background: #faf8f3;
}

.ed-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ed-rel-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #ece6d4;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 12px;
  gap: 10px;
  transition: all .25s;
}
.ed-rel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(59, 0, 2, .1);
  border-color: var(--maroon);
}

.ed-rel-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--gray);
}
.ed-rel-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s;
}
.ed-rel-card:hover .ed-rel-img img { transform: scale(1.06); }

.ed-rel-type {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  color: var(--maroon);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid #d8cdb0;
}

.ed-rel-card h4 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--maroon);
  margin: 0;
  letter-spacing: .01em;
  line-height: 1.3;
  padding: 0 6px;
}
.ed-rel-meta {
  font-size: .74rem;
  color: var(--muted);
  padding: 0 6px 4px;
  margin-top: auto;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .ed-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .ed-prose-grid { grid-template-columns: 1fr; gap: 36px; }
  .ed-side { position: static; }
  .ed-gallery { grid-template-columns: repeat(3, 1fr); }
  .ed-videos { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .ed-video-main { grid-column: 1 / -1; grid-row: auto; }
  .ed-video-main .ed-video-thumb { min-height: 240px; }
  .ed-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  /* Portrait layout-ыг mobile дээр stack болгож landscape шиг харуулна */
  .ed-banner--v2 .ed-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .ed-banner--v2 .ed-banner-poster {
    flex: 0 0 auto;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    height: auto;
    aspect-ratio: 2 / 3;
  }
}

@media (max-width: 768px) {
  .ed-banner { padding: 24px 0; }
  .ed-banner-inner { gap: 22px; }
  .ed-banner--v1 .ed-banner-poster {
    max-height: 280px;
    aspect-ratio: 16 / 9;
  }
  .ed-banner--v2 .ed-banner-poster {
    max-width: 280px;
  }
  .ed-banner-title { font-size: 1.4rem; }
  .ed-banner-meta { font-size: .88rem; }
  .ed-meta { padding: 28px 0 24px; }
  .ed-meta-grid { grid-template-columns: 1fr; gap: 14px; }
  .ed-meta-actions { flex-direction: column; align-items: stretch; }
  .ed-share { margin-left: 0; justify-content: center; }
  .ed-section { padding: 56px 0; }
  .ed-anchor-nav { top: 0; }
  .ed-anchor { padding: 14px 14px; font-size: .72rem; }

  .ed-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .ed-gal-large { grid-column: span 2; grid-row: span 2; }

  .ed-videos { grid-template-columns: 1fr; }

  .ed-partner {
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 20px 4px;
  }
  .ed-partner .ed-partner-link { grid-column: 2; align-self: flex-start; margin-top: 4px; }
  .ed-partner-logo { width: 48px; height: 48px; }
  .ed-partner-logo i { font-size: 1.05rem; }

  .ed-related-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   IMAGE LIGHTBOX — зургийн popup gallery (gallery slider)
   ═══════════════════════════════════════════════════════════ */
.ed-gallery .ed-gal { cursor: zoom-in; }
.ed-lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(59, 0, 2, .95);
  display: flex; align-items: center; justify-content: center;
  padding: 48px;
}
.ed-lightbox[hidden] { display: none; }
.ed-lightbox-figure {
  margin: 0; max-width: 100%; max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.ed-lightbox-figure img {
  max-width: 100%; max-height: 80vh; object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7); border-radius: var(--radius);
}
.ed-lightbox-caption {
  color: rgba(255, 255, 255, .88); font-size: .95rem; text-align: center; max-width: 760px;
}
.ed-lightbox-count {
  position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .8); font-size: .82rem; letter-spacing: .14em; font-weight: 700;
}
.ed-lightbox-close {
  position: absolute; top: 22px; right: 24px; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: var(--maroon); border: none; cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; transition: all .2s; z-index: 2001;
}
.ed-lightbox-close i { color: var(--maroon); }
.ed-lightbox-close:hover { background: var(--maroon); transform: rotate(90deg); }
.ed-lightbox-close:hover i { color: #fff; }
.ed-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: rgba(0, 0, 0, .35); color: #fff; font-size: 1.2rem; cursor: pointer; z-index: 2001;
  display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s;
}
.ed-lightbox-nav i { color: #fff; }
.ed-lightbox-nav:hover { background: rgba(0, 0, 0, .55); transform: translateY(-50%) scale(1.06); }
.ed-lightbox-prev { left: 24px; }
.ed-lightbox-next { right: 24px; }
@media (max-width: 600px) {
  .ed-lightbox { padding: 16px; }
  .ed-lightbox-nav { width: 46px; height: 46px; }
  .ed-lightbox-prev { left: 10px; }
  .ed-lightbox-next { right: 10px; }
}
