/* ============================================================================
 * HANUKKAH 2026 seasonal homepage banner.
 * Remove after Hanukkah 2026 (end of December 2026): this file, assets/hanukkah-2026/,
 * the include/enqueue in functions.php, and any front-page.php hook.
 * (Plus inc/hanukkah-2026-banner.php and assets/js/ts-hanukkah-2026.js — see REMOVE-HANUKKAH-2026.md.)
 * Auto-expires after 13.12.2026 Israel time (switch: triples_solar_hanukkah_2026_auto_expire()).
 * ============================================================================
 * Scoped to #ts-hanukkah-2026 (no collision with #ts-main .ts-banner). Never crops the artwork:
 * the frame has the exact aspect ratio of the active asset and media use object-fit: contain.
 */
#ts-hanukkah-2026 {
  /* --ts-hk26-clear = height of the FIXED #ts-hdr stack + a small breath (--ts-hk26-gap), so the banner's
   * orange top edge starts just below the floating header pill. Do NOT copy the solar hero's pt-32 (8rem)
   * here: that left a 52px (desktop) / ~60px (mobile) strip of page background under the header (1.1.4.6 bug).
   * Header stack (ts-site.css / ts-inner.css, measured on the live page):
   *   >= 1024px : #ts-hdr padding-top 10px + .ts-hdr-bar 66px  → bar bottom 76px
   *   <  1024px : #ts-hdr padding-top  8px + .ts-hdr-bar 60px  → bar bottom 68px
   *   <=  380px : #ts-hdr padding-top  6px + .ts-hdr-bar 60px  → bar bottom 66px
   * (WP admin bar: html margin-top and #ts-hdr top shift together, so no extra offset is needed.) */
  --ts-hk26-gap: 6px;
  --ts-hk26-clear: calc(8px + 60px + var(--ts-hk26-gap));
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: var(--ts-hk26-clear) 0 0;
  /* the breath above the artwork = page background of the active theme (never a white sliver on dark) */
  background: #FFFFFF;
}
html[data-theme="dark"] #ts-hanukkah-2026 { background: #16171b; }
@media (max-width: 380px) {
  #ts-hanukkah-2026 { --ts-hk26-clear: calc(6px + 60px + var(--ts-hk26-gap)); }
}
@media (min-width: 1024px) {
  #ts-hanukkah-2026 { --ts-hk26-clear: calc(10px + 66px + var(--ts-hk26-gap)); }
}
/* static front-page fallback: <main class="ts-front-content pt-24"> already clears the header */
#ts-main.ts-front-content > #ts-hanukkah-2026 { padding-top: 0; margin-bottom: 2rem; }

#ts-hanukkah-2026 .ts-hk26-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  aspect-ratio: 800 / 600;
  overflow: hidden;
  background: #fbf6ef; /* light artwork edge colour while the poster loads */
}
html[data-theme="dark"] #ts-hanukkah-2026 .ts-hk26-frame { background: #0c0f18; }
@media (min-width: 768px) {
  #ts-hanukkah-2026 .ts-hk26-frame { aspect-ratio: 1920 / 500; }
}

#ts-hanukkah-2026 .ts-hk26-frame img,
#ts-hanukkah-2026 .ts-hk26-frame video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
#ts-hanukkah-2026 .ts-hk26-frame [hidden] { display: none !important; }
/* animated layers sit above the poster; the poster stays underneath as the instant stand-in */
#ts-hanukkah-2026 .ts-hk26-layer { z-index: 1; pointer-events: none; }
/* the video stays rendered (browsers may refuse to play display:none video) but invisible until it plays */
#ts-hanukkah-2026 .ts-hk26-video { opacity: 0; transition: opacity .25s ease; }
#ts-hanukkah-2026 .ts-hk26-video.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  #ts-hanukkah-2026 .ts-hk26-video, #ts-hanukkah-2026 .ts-hk26-anim { display: none !important; }
}
