/* تصميم البوستر بصورة خلفية.
 *
 * كملفّ التصميم النصّي: مصدر واحد يقرأه bot.py عند الرسم ويقرأه محرّر التطبيق
 * عند المعاينة، فلا تفترق المعاينة عن المنشور.
 *
 * المتغيّرات:
 *   --image      رابط الصورة أو data: URI
 *   --font       اسم الخط
 *   --h-size     حجم العنوان
 *   --mark       لون مربّع اسم الصفحة
 *   --focus      موضع الصورة داخل الإطار (center top افتراضاً)
 */

.photo-poster {
  position: relative;
  width: 1080px;
  height: 1350px;
  overflow: hidden;
  font-family: var(--font), sans-serif;
  direction: rtl;
  color: #fff;
  background: #000;
  box-sizing: border-box;
}
.photo-poster *, .photo-poster *::before, .photo-poster *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}

.photo-poster .bg {
  position: absolute; inset: 0;
  background-image: var(--image);
  background-size: cover;
  background-position: var(--focus, center top);
}
/* darkened at the head so the page mark reads, and heavily at the foot so the
   headline sits on black rather than on whatever the photo happens to show */
.photo-poster .shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.50) 0%, rgba(0,0,0,0) 17%),
    linear-gradient(to bottom, rgba(0,0,0,0) 34%, rgba(0,0,0,.45) 48%,
                    rgba(0,0,0,.88) 64%, rgba(0,0,0,.97) 78%, #000 100%);
}
.photo-poster .mark {
  position: absolute; top: 54px; right: 54px; width: 258px; height: 86px;
  background: var(--mark); display: flex; align-items: center; justify-content: center;
  font-size: 60px; font-weight: 700; line-height: 1; padding-bottom: 6px; letter-spacing: -1px;
}
.photo-poster .block { position: absolute; left: 9.5%; right: 9.5%; bottom: 120px; text-align: center; }
.photo-poster .h {
  font-size: var(--h-size); font-weight: 800; line-height: 1.4;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}
.photo-poster .src { margin-top: 26px; font-size: 28px; font-weight: 400; color: rgba(255,255,255,.72); }
