:root {
  --ink: #12231F;
  --panel: #1B322C;
  --parchment: #EDE8DA;
  --sage: #9FB0A8;
  --amber: #E8A33D;
  --line: rgba(237, 232, 218, 0.14);
}

/* ---- Promo dialog: everything lives inside this one dialog ---- */
.promo-dialog {
  padding: 0;
  border: none;
  border-radius: 14px;
  background: var(--ink);
  color: var(--parchment);
  width: min(92vw, 640px);
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  box-sizing: border-box;
  font-family: 'Inter', 'UKIJ', system-ui, sans-serif;
}
.promo-dialog::backdrop {
  background: rgba(9, 16, 14, 0.72);
}

.promo-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--panel);
  color: var(--parchment);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.promo-close:hover { background: rgba(237, 232, 218, 0.16); }

.promo-content {
  padding: 22px 32px 22px
}

h4 {
  font-family: 'Fraunces', 'UKIJ', serif;
  font-weight: 500;
  font-size: clamp(18px, 5vw, 24px);
  line-height: 1.15;
  margin: 0 auto 18px;
  text-align: center;
  direction: rtl;
}

.description {
  font-family: 'Fraunces', 'UKIJ', serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--sage);
  margin: 0 0 24px;
  direction: rtl;
  text-align: right;
}

.download-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  height: 44px;
  margin: 0 0 24px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--amber);
  text-decoration: none;
}
.download-link:hover {
  text-decoration: underline;
}
.download-badge {
  height: 150px;
  width: auto;
  flex-shrink: 0;
}

/* ---- Embedded gallery ---- */
.gallery {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.gallery-viewport {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-viewport img {
  width: auto;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.gallery-nav:hover { background: rgba(0, 0, 0, 0.75); }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }

.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}
.gallery-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}
.gallery-dots button.active {
  background: #fff;
}