/* Yair Saltz — v7 Dual-Experience Stylesheet (Wide Editorial Web >=960px | Dedicated Mobile App <=959px) */
@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@500;700;900&family=Heebo:wght@300;400;500;600;700;800&display=swap');

:root {
  --ym4-linen: #FCF9F2;
  --ym4-parchment: #FBF5E8;
  --ym4-cream-card: rgba(255, 253, 249, 0.92);
  --ym4-ink: #1E3246;
  --ym4-ink-soft: #4A6075;
  --ym4-navy: #1B3B5A;
  --ym4-sky: #256D9B;
  --ym4-gold: #C8963E;
  --ym4-gold-bright: #E5B45B;
  --ym4-gold-soft: rgba(200, 150, 62, 0.28);
  --ym4-shadow-rich: 0 22px 52px -12px rgba(27, 59, 90, 0.13), 0 4px 16px rgba(180, 132, 52, 0.08);
}

/* =========================================================================
   0. HERMETIC HORIZONTAL OVERFLOW LOCK (0px RTL/LTR Drift Guaranteed)
   ========================================================================= */
html {
  scroll-behavior: smooth;
  max-width: 100% !important;
  overflow-x: clip !important;
  overscroll-behavior-x: none;
}

body,
body[class*="elementor-kit-"],
#page,
#content,
.site-main {
  max-width: 100% !important;
  overflow-x: clip !important;
  overscroll-behavior-x: none;
}

@supports not (overflow-x: clip) {
  html, body {
    overflow-x: hidden !important;
  }
}

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

#site-header.site-header,
.page-header .entry-title,
.ym3-mobile-bar,
.ym5-hp-field {
  display: none !important;
}

body,
body[class*="elementor-kit-"] {
  background-color: var(--ym4-linen) !important;
  background-image:
    radial-gradient(at 15% 10%, rgba(253, 238, 202, 0.45) 0px, transparent 50%),
    radial-gradient(at 85% 25%, rgba(214, 236, 252, 0.45) 0px, transparent 55%) !important;
  color: var(--ym4-ink);
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
}

button,
a,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Web vs Mobile visibility split */
@media (min-width: 960px) {
  .ym7-mob-only {
    display: none !important;
  }
  body:not(.elementor-editor-active) {
    padding-top: 66px;
  }
}

@media (max-width: 959px) {
  .ym7-web-only {
    display: none !important;
  }
}

/* =========================================================================
   1A. WEB/DESKTOP HEADER (>= 960px)
   ========================================================================= */
.ym3-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 995;
  background: rgba(252, 249, 242, 0.94);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(200, 150, 62, 0.26);
  box-shadow: 0 4px 20px rgba(27, 59, 90, 0.06);
  direction: rtl;
  font-family: 'Heebo', sans-serif;
}

body.admin-bar .ym3-navbar { top: 32px; }

.ym3-navbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 11px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ym3-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none !important;
  color: var(--ym4-navy) !important;
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 900;
  font-size: 1.3rem;
  white-space: nowrap;
}

.ym3-brand svg {
  width: 25px;
  height: 25px;
  color: var(--ym4-gold);
  flex-shrink: 0;
}

.ym3-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ym3-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none !important;
  color: var(--ym4-navy) !important;
  font-size: 0.94rem;
  font-weight: 600;
  transition: all 0.22s ease;
}

.ym3-nav-links a:hover {
  background: rgba(200, 150, 62, 0.12);
  color: #9A6B1F !important;
}

.ym3-nav-links a.ym3-nav-timeline {
  background: linear-gradient(135deg, #FDF3DC 0%, #F7E4B8 100%);
  color: #784F12 !important;
  border: 1px solid rgba(200, 150, 62, 0.42);
  font-weight: 700;
}

.ym3-nav-links a.ym3-nav-cta {
  background: linear-gradient(135deg, #256D9B 0%, #1B3B5A 100%) !important;
  color: #FFFFFF !important;
  padding: 8px 20px !important;
  box-shadow: 0 6px 16px rgba(27, 59, 90, 0.22);
}

/* =========================================================================
   1B. DEDICATED MOBILE APP SHELL & 5-VIEW ARCHITECTURE (<= 959px)
   ========================================================================= */
@media (max-width: 959px) {
  @media (max-width: 600px) {
    #wpadminbar { position: fixed !important; }
  }

  .ym7-mobile-shell {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 996;
    background: rgba(253, 250, 243, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(200, 150, 62, 0.32);
    box-shadow: 0 6px 22px rgba(27, 59, 90, 0.08);
    font-family: 'Heebo', sans-serif;
  }

  body.admin-bar .ym7-mobile-shell { top: 32px; }
  @media (max-width: 782px) { body.admin-bar .ym7-mobile-shell { top: 46px; } }

  body.ym7-app-home:not(.elementor-editor-active) {
    padding-top: 102px !important;
    padding-bottom: 20px !important;
  }

  body.ym7-app-timeline:not(.elementor-editor-active) {
    padding-top: 50px !important;
    padding-bottom: 20px !important;
  }

  .ym7-app-topbar {
    height: 44px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    max-width: 100%;
  }

  .ym7-app-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none !important;
    color: var(--ym4-navy) !important;
    min-height: 40px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .ym7-app-heart {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, #FEF3C7 0%, #F4DFA8 100%);
    color: #9A6B1F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .ym7-app-brand-txt {
    font-family: 'Frank Ruhl Libre', serif;
    font-weight: 900;
    font-size: 0.96rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ym7-app-top-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 4px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FDF3DC 0%, #F5DFA6 100%);
    border: 1px solid rgba(200, 150, 62, 0.5);
    color: #6E470D !important;
    text-decoration: none !important;
    font-size: 0.77rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* 5-Tab App Switcher (Zero edge crowding at 340px-390px) */
  .ym7-app-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    padding: 3px 6px 6px;
    width: 100%;
  }

  button.ym7-tab-btn,
  button.ym7-tab-btn:focus,
  button.ym7-tab-btn:hover {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 48px;
    padding: 4px 2px !important;
    border-radius: 12px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: #4A6075 !important;
    font-family: 'Heebo', sans-serif;
    font-size: 0.67rem !important;
    letter-spacing: -0.01em;
    font-weight: 700;
    line-height: 1.12;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    box-shadow: none !important;
    transition: background 0.16s ease, color 0.16s ease, transform 0.12s ease;
  }

  button.ym7-tab-btn span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  button.ym7-tab-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  button.ym7-tab-btn:active {
    transform: scale(0.95);
  }

  button.ym7-tab-btn.is-active,
  button.ym7-tab-btn.is-active:focus,
  button.ym7-tab-btn.is-active:hover {
    background: var(--ym4-navy) !important;
    border-color: var(--ym4-navy) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(27, 59, 90, 0.22) !important;
  }

  button.ym7-tab-btn.is-active svg {
    color: #FDE68A;
  }

  /* Sub-Tab & Quick-Jump Segmented Pill Bar (Zero Overflow / Zero Clipping!) */
  .elementor-widget-shortcode:has(#ym7-projects-subtabs) {
    position: sticky;
    top: 104px;
    z-index: 85;
  }
  body.admin-bar .elementor-widget-shortcode:has(#ym7-projects-subtabs) {
    top: 150px;
  }

  .ym7-subtabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 5px;
    border-radius: 16px;
    background: rgba(239, 231, 214, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 150, 62, 0.36);
    box-shadow: 0 6px 16px rgba(27, 59, 90, 0.08);
    margin-bottom: 8px;
    width: 100%;
    max-width: 100%;
  }

  button.ym7-subtab-btn,
  button.ym7-subtab-btn:focus,
  button.ym7-subtab-btn:hover {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 42px;
    padding: 6px 4px !important;
    border-radius: 11px !important;
    background: transparent !important;
    border: none !important;
    color: var(--ym4-navy) !important;
    font-family: 'Heebo', sans-serif;
    font-size: 0.77rem !important;
    font-weight: 800;
    line-height: 1.18 !important;
    white-space: normal !important;
    overflow-wrap: break-word;
    overflow: hidden;
    text-align: center !important;
    cursor: pointer;
    box-shadow: none !important;
  }

  button.ym7-subtab-btn.is-active,
  button.ym7-subtab-btn.is-active:focus,
  button.ym7-subtab-btn.is-active:hover {
    background: #FFFFFF !important;
    color: #8A5A14 !important;
    box-shadow: 0 3px 10px rgba(27, 59, 90, 0.12) !important;
  }

  /* Mobile Screen 1: Compact Side-by-Side Profile Card + Accordion */
  .ym7-mobile-profile-wrap {
    padding: 10px 12px 0;
  }

  .ym7-profile-card {
    background: linear-gradient(155deg, #FFFEFA 0%, #FAF1DF 100%);
    border: 1px solid rgba(200, 150, 62, 0.4);
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 12px 28px rgba(27, 59, 90, 0.08);
  }

  .ym7-profile-row {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .ym7-profile-avatar {
    width: 84px;
    height: 98px;
    flex-shrink: 0;
    border-radius: 18px;
    padding: 3px;
    background: linear-gradient(145deg, #FBF0D4 0%, #CFA052 60%, #FFF8E6 100%);
    box-shadow: 0 6px 18px rgba(200, 150, 62, 0.3);
  }

  .ym7-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
    border-radius: 15px;
    display: block;
  }

  .ym7-profile-headlines {
    flex: 1 1 auto;
    min-width: 0;
  }

  .ym7-profile-kicker {
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    color: #9A6B1F;
    margin-bottom: 2px;
  }

  .ym7-profile-name {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--ym4-navy);
    margin: 0 0 3px;
    line-height: 1.1;
  }

  .ym7-profile-tagline {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.42;
    color: var(--ym4-ink-soft);
    font-weight: 500;
  }

  /* Expandable Story Accordion */
  .ym7-story-accordion {
    margin-top: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(200, 150, 62, 0.3);
    overflow: hidden;
  }

  .ym7-accordion-trigger {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 9px 14px;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--ym4-navy);
    cursor: pointer;
  }

  .ym7-accordion-trigger::-webkit-details-marker {
    display: none;
  }

  .ym7-chevron {
    color: var(--ym4-gold);
    font-size: 1rem;
    transition: transform 0.2s ease;
  }

  .ym7-story-accordion[open] .ym7-chevron {
    transform: rotate(180deg);
  }

  .ym7-accordion-content {
    padding: 4px 14px 14px;
    border-top: 1px solid rgba(200, 150, 62, 0.18);
    font-size: 0.92rem;
    line-height: 1.68;
    color: var(--ym4-ink);
  }

  .ym7-accordion-content p {
    margin: 0 0 8px;
  }

  .ym7-inline-tl-link {
    display: inline-block;
    margin-top: 4px;
    font-weight: 800;
    color: var(--ym4-sky) !important;
    text-decoration: none !important;
  }

  /* 2x2 Visual Bento Hub Cards on Mobile Screen 1 */
  .ym7-bento-hub {
    margin-top: 16px;
  }

  .ym7-bento-heading {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--ym4-navy);
    margin: 0 2px 8px;
  }

  .ym7-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  button.ym7-bento-card,
  button.ym7-bento-card:focus,
  button.ym7-bento-card:hover {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    padding: 0 !important;
    border-radius: 18px !important;
    overflow: hidden;
    background: #FFFFFF !important;
    border: 1px solid rgba(200, 150, 62, 0.38) !important;
    box-shadow: 0 8px 20px rgba(27, 59, 90, 0.08) !important;
    text-align: right;
    cursor: pointer;
    transition: transform 0.14s ease;
  }

  button.ym7-bento-card:active {
    transform: scale(0.97);
  }

  .ym7-bento-thumb {
    height: 76px;
    width: 100%;
    overflow: hidden;
    background: #FAF2E1;
  }

  .ym7-bento-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .ym7-bento-meta {
    padding: 9px 11px 11px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .ym7-bento-meta strong {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 1.06rem;
    font-weight: 900;
    color: var(--ym4-navy);
    line-height: 1.2;
  }

  .ym7-bento-meta span {
    font-size: 0.77rem;
    color: var(--ym4-ink-soft);
    font-weight: 600;
  }

  .ym7-bento-extra-row {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  button.ym7-mini-link-btn,
  button.ym7-mini-link-btn:focus,
  button.ym7-mini-link-btn:hover {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 44px;
    padding: 8px 10px !important;
    border-radius: 14px !important;
    background: #FFFDF8 !important;
    border: 1px solid rgba(200, 150, 62, 0.42) !important;
    color: var(--ym4-navy) !important;
    font-family: 'Heebo', sans-serif;
    font-size: 0.82rem !important;
    font-weight: 800;
    line-height: 1.2;
    white-space: normal !important;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(27, 59, 90, 0.06) !important;
  }

  button.ym7-mini-link-btn svg {
    color: var(--ym4-gold);
    flex-shrink: 0;
  }

  .ym7-timeline-banner {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1B3B5A 0%, #256D9B 100%);
    color: #FFFFFF !important;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(27, 59, 90, 0.2);
  }

  .ym7-tl-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .ym7-tl-banner-text strong {
    font-size: 0.96rem;
    font-weight: 800;
  }

  .ym7-tl-banner-text span {
    font-size: 0.78rem;
    color: #DBEAFE;
  }

  .ym7-tl-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
  }

  /* =======================================================================
     5-SCREEN EXCLUSIVE VIEW VISIBILITY RULES (HOMEPAGE MOBILE APP MODE)
     ======================================================================= */
  /* Screen 1: HOME (default) */
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="home"] #about-yair,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="home"] #story-bowl,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="home"] #soccer,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="home"] #projects,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="home"] #galleries,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="home"] #contact,
  body.ym7-app-home:not(.elementor-editor-active) .ym7-web-hero-row {
    display: none !important;
  }

  body.ym7-app-home:not(.elementor-editor-active) #hero {
    padding: 8px 12px 18px !important;
    background: transparent !important;
    background-image: none !important;
  }
  body.ym7-app-home:not(.elementor-editor-active) #hero::before {
    display: none !important;
  }

  /* Screen 2: STORY BOWL */
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="bowl"] #ym7-mobile-profile,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="bowl"] #hero,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="bowl"] #about-yair,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="bowl"] #soccer,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="bowl"] #projects,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="bowl"] #galleries,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="bowl"] #contact {
    display: none !important;
  }

  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="bowl"] #story-bowl {
    padding: 14px 12px 24px !important;
    gap: 10px !important;
  }

  /* Screen 3: SOCCER STADIUM (Game right at top, story in drawer below!) */
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="soccer"] #ym7-mobile-profile,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="soccer"] #hero,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="soccer"] #about-yair,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="soccer"] #story-bowl,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="soccer"] #projects,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="soccer"] #galleries,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="soccer"] #contact,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="soccer"] #football,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="soccer"] #soccer > .e-con-inner > .elementor-widget-heading,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="soccer"] #soccer > .elementor-widget-heading {
    display: none !important;
  }

  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="soccer"] #soccer {
    padding: 8px 12px 20px !important;
  }

  /* Screen 4: PROJECTS — All 3 Projects (Weekly Shiur, Even Al Even, Birkat Yair) Always Visible! */
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="projects"] #ym7-mobile-profile,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="projects"] #hero,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="projects"] #about-yair,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="projects"] #story-bowl,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="projects"] #soccer,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="projects"] #galleries,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="projects"] #contact,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="projects"] #projects > .e-con-inner > .elementor-widget-heading,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="projects"] #projects > .elementor-widget-heading,
  body.ym7-app-home:not(.elementor-editor-active) .ym7-even-intro-row {
    display: none !important;
  }

  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="projects"] #projects {
    padding: 8px 12px 26px !important;
    gap: 16px !important;
  }

  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="projects"] #shiur,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="projects"] #even-al-even,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="projects"] #birkat-yair {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Screen 5: GALLERY & CONTACT (Segmented: Yair Photos | Memorial Photos | Contact) */
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="gallery"] #ym7-mobile-profile,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="gallery"] #hero,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="gallery"] #about-yair,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="gallery"] #story-bowl,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="gallery"] #soccer,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="gallery"] #projects {
    display: none !important;
  }

  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="gallery"] #galleries {
    padding: 10px 12px 16px !important;
    gap: 10px !important;
    background: transparent !important;
  }

  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="gallery"][data-ym7-gsub="yair-gal"] #memorial-gallery,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="gallery"][data-ym7-gsub="yair-gal"] #contact {
    display: none !important;
  }

  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="gallery"][data-ym7-gsub="mem-gal"] #yair-gallery,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="gallery"][data-ym7-gsub="mem-gal"] #contact {
    display: none !important;
  }

  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="gallery"][data-ym7-gsub="contact"] #yair-gallery,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="gallery"][data-ym7-gsub="contact"] #memorial-gallery {
    display: none !important;
  }

  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="gallery"][data-ym7-gsub="contact"] #galleries {
    padding-bottom: 0 !important;
  }

  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="gallery"][data-ym7-gsub="contact"] #contact {
    padding-top: 6px !important;
    border-top: none !important;
  }
}

/* =========================================================================
   2. Editorial Images, Uncropped Galleries & Mobile Button Polish
   ========================================================================= */
.ym3-hero-portrait img {
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center 14%;
  border-radius: 30px !important;
  padding: 6px;
  background: linear-gradient(145deg, #FBF0D4 0%, #CFA052 50%, #FFF8E6 100%);
  box-shadow:
    0 0 42px rgba(229, 180, 91, 0.38),
    0 20px 44px rgba(27, 59, 90, 0.16) !important;
}

.ym3-section-img img {
  width: 100%;
  max-height: 410px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 22px !important;
  padding: 5px;
  background: #FFFFFF;
  box-shadow: 0 16px 38px rgba(27, 59, 90, 0.12), 0 2px 8px rgba(200, 150, 62, 0.12) !important;
}

.ym3-book-cover-click img {
  max-height: 420px;
  width: auto;
  margin: 0 auto;
  border-radius: 18px !important;
  box-shadow: -14px 18px 38px rgba(27, 59, 90, 0.24), 0 0 28px rgba(200, 150, 62, 0.22) !important;
}

#yair-gallery .gallery-item img,
#memorial-gallery .gallery-item img,
.ym5-grid-gallery .gallery-item img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3.6;
  object-fit: cover;
  object-position: center 12% !important;
  border-radius: 16px !important;
  border: 1px solid rgba(200, 150, 62, 0.28) !important;
  display: block;
}

@media (max-width: 959px) {
  .ym3-section-img img {
    max-height: 260px;
    border-radius: 18px !important;
  }

  .ym3-book-cover-click img {
    max-height: 240px !important;
  }

  .ym6-btn-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
  }

  .ym6-btn-group .elementor-widget-button,
  .elementor-widget-button.ym6-action-btn,
  .elementor-widget-button,
  .elementor-button-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .ym6-action-btn .elementor-button,
  .elementor-widget-button .elementor-button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 11px 14px !important;
    font-size: 0.92rem !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .elementor-button-content-wrapper {
    max-width: 100% !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .elementor-button-text {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    text-align: center !important;
  }

  .ym5-alt-station {
    flex-direction: column-reverse !important;
  }

  #yair-gallery .gallery,
  #memorial-gallery .gallery,
  .ym5-grid-gallery .gallery {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  #yair-gallery .gallery-item,
  #memorial-gallery .gallery-item,
  .ym5-grid-gallery .gallery-item {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }

  #yair-gallery .gallery-item:last-child:nth-child(odd),
  #memorial-gallery .gallery-item:last-child:nth-child(odd),
  .ym5-grid-gallery .gallery-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 5px) !important;
    justify-self: center;
  }

  #yair-gallery .gallery-icon,
  #memorial-gallery .gallery-icon,
  .ym5-grid-gallery .gallery-icon {
    padding: 0 !important;
    margin: 0 !important;
  }

  #yair-gallery .gallery-item img,
  #memorial-gallery .gallery-item img,
  .ym5-grid-gallery .gallery-item img {
    aspect-ratio: 1 / 1.08 !important;
    object-fit: cover !important;
    object-position: center 10% !important;
    border-radius: 14px !important;
  }
}

/* WhatsApp Share Pill */
.ym-wa-share-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(241, 251, 245, 0.95);
  border: 1px solid rgba(31, 168, 85, 0.36);
  color: #166A37 !important;
  font-family: 'Heebo', sans-serif;
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(31, 168, 85, 0.08);
}

.ym-wa-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: currentColor;
}

/* =========================================================================
   3. [yair_candles] — Sanctuary Candle Tray (Compact on Mobile Screen 1!)
   ========================================================================= */
.ym4-candle-sanctuary {
  direction: rtl;
  max-width: 820px;
  margin: 14px auto 0;
  padding: 30px 26px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 244, 212, 0.9) 0%, rgba(255, 253, 248, 0.94) 68%),
    #FFFDF9;
  border: 1px solid rgba(200, 150, 62, 0.36);
  box-shadow: var(--ym4-shadow-rich), inset 0 1px 0 #FFFFFF;
  text-align: center;
}

.ym4-kicker-ornament {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ym4-gold);
  margin-bottom: 4px;
}

.ym4-serif-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(1.35rem, 2.8vw, 2.05rem);
  font-weight: 900;
  color: var(--ym4-navy);
  margin: 0 0 6px;
}

.ym4-candle-sub {
  color: var(--ym4-ink-soft);
  font-size: 0.95rem;
  margin: 0 0 16px;
}

.ym4-candles-tray-stage {
  position: relative;
  max-width: 680px;
  margin: 0 auto 16px;
  padding: 16px 14px 12px;
  border-radius: 22px;
  background: radial-gradient(ellipse at 50% 45%, #2B2118 0%, #1C1611 100%);
  border: 2px solid #C8963E;
  box-shadow: inset 0 0 36px rgba(255, 184, 56, 0.22), 0 14px 32px rgba(27, 38, 54, 0.18);
}

.ym4-candles-tray-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  min-height: 54px;
  padding: 10px 6px 2px;
  overflow: visible;
}

.ym4-candles-tray-shelf {
  height: 6px;
  margin: 2px 10px 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, #8A6428 0%, #F4D284 50%, #8A6428 100%);
  box-shadow: 0 3px 12px rgba(251, 191, 36, 0.35);
}

.ym-mini-candle {
  display: inline-flex;
  filter: drop-shadow(0 0 7px rgba(255, 185, 56, 0.45));
  animation: ymPopIn 0.45s ease-out;
}

.ym-mini-candle .ym-mini-flame {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: ymSafeFlicker 2.1s ease-in-out infinite alternate;
}
.ym-mini-candle:nth-child(2n) .ym-mini-flame { animation-duration: 1.75s; animation-delay: -0.6s; }
.ym-mini-candle:nth-child(3n) .ym-mini-flame { animation-duration: 2.45s; animation-delay: -1.1s; }

@keyframes ymSafeFlicker {
  0% { opacity: 0.9; transform: scaleY(0.94) scaleX(1.03); }
  50% { opacity: 1; transform: scaleY(1.07) scaleX(0.96); }
  100% { opacity: 0.95; transform: scaleY(0.98) scaleX(1.02); }
}

@keyframes ymPopIn {
  0% { opacity: 0; transform: translateY(8px) scale(0.85); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.ym4-candle-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(253, 230, 138, 0.35);
  color: #FEF3C7;
  font-size: 0.86rem;
}

.ym4-candle-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

button.ym4-light-btn,
button.ym4-light-btn:focus {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #FFF8E6 0%, #F7DFA4 100%) !important;
  border: 1.5px solid #C8963E !important;
  color: #5C3D0E !important;
  font-family: 'Heebo', sans-serif;
  font-weight: 800;
  font-size: 0.96rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(200, 150, 62, 0.24) !important;
}

@media (max-width: 959px) {
  .ym4-candle-sanctuary {
    margin-top: 2px;
    padding: 16px 12px;
    border-radius: 22px;
  }

  .ym4-kicker-ornament,
  .ym4-candle-sub {
    display: none;
  }

  .ym4-serif-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }

  .ym4-candles-tray-stage {
    padding: 10px 8px 10px;
    margin-bottom: 12px;
    border-radius: 18px;
  }

  .ym4-candles-tray-grid {
    gap: 6px;
    padding: 8px 4px 2px;
  }

  .ym-mini-candle svg {
    width: 21px;
    height: 36px;
  }

  .ym4-candle-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .ym4-candle-actions button.ym4-light-btn,
  .ym4-candle-actions .ym-wa-share-pill {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 46px;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    white-space: normal !important;
    text-align: center;
    box-sizing: border-box !important;
  }

  .ym4-candle-actions button.ym4-light-btn svg {
    width: 18px;
    height: 28px;
    flex-shrink: 0;
  }
}

.ym-candle-feedback {
  margin-top: 6px;
  min-height: 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ym4-sky);
}

/* =========================================================================
   4. [yair_story_bowl] — Dedicated Mobile Story Reading Switch
   ========================================================================= */
.ysb4-wrapper {
  direction: rtl;
  max-width: 900px;
  margin: 0 auto;
}

.ysb4-stage {
  position: relative;
  background: radial-gradient(circle at 50% 34%, #FBF3E4 0%, #FBF5E8 52%, #F4E9D4 100%);
  border: 1.5px solid rgba(200, 150, 62, 0.38);
  border-radius: 32px;
  padding: 34px 26px 32px;
  text-align: center;
  box-shadow: var(--ym4-shadow-rich), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.ysb4-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ysb4-sparkle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFFBEB 0%, #F59E0B 70%, transparent 100%);
  box-shadow: 0 0 12px #FBBF24;
  animation: ysbSparkleFloat 4.2s ease-in-out infinite;
}
.ysb4-sparkle.s1 { top: 24%; left: 32%; }
.ysb4-sparkle.s2 { top: 18%; right: 34%; animation-delay: -1.3s; width: 9px; height: 9px; }
.ysb4-sparkle.s3 { top: 36%; left: 26%; animation-delay: -2.4s; }
.ysb4-sparkle.s4 { top: 32%; right: 27%; animation-delay: -0.8s; }
.ysb4-sparkle.s5 { top: 14%; left: 49%; animation-delay: -3.1s; width: 6px; height: 6px; }

@keyframes ysbSparkleFloat {
  0%, 100% { opacity: 0.35; transform: translateY(0) scale(0.85); }
  50% { opacity: 0.95; transform: translateY(-14px) scale(1.2); }
}

button.ysb4-vessel-trigger,
button.ysb4-vessel-trigger:hover,
button.ysb4-vessel-trigger:focus,
button.ysb4-vessel-trigger:active {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer;
  padding: 0 !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px;
  max-width: 100% !important;
  width: 100% !important;
}

.ysb4-vessel-halo {
  position: relative;
  width: min(62vw, 285px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}

.ysb4-vessel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000000 56%, rgba(0,0,0,0.6) 66%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 50%, #000000 56%, rgba(0,0,0,0.6) 66%, transparent 74%);
}

.ysb4-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #D99B38 0%, #B3761E 100%);
  color: #FFFFFF;
  font-family: 'Heebo', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(179, 118, 30, 0.32);
  margin-top: -10px;
  position: relative;
  z-index: 2;
}

.ysb4-meta-caption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: #6E5A3E;
  font-weight: 600;
}

.ysb4-parchment-letter {
  display: none;
  position: relative;
  margin: 26px auto 0;
  max-width: 760px;
  background: radial-gradient(ellipse at top right, #FFFDF9 0%, #FAF2E1 100%);
  border: 1px solid #DEC393;
  border-radius: 20px;
  padding: 32px 30px 26px;
  text-align: right;
  box-shadow: 0 20px 44px rgba(68, 48, 20, 0.13);
  direction: rtl;
}

.ysb4-parchment-letter.is-open {
  display: block;
  animation: ysbLetterUnfold 0.32s ease-out;
}

@keyframes ysbLetterUnfold {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.ysb4-wax-seal {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #E5B45B 0%, #B47B22 75%, #8C5B12 100%);
  color: #FFFBEB;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FDE68A;
}

.ysb4-letter-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.ysb4-letter-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

button.ym6-story-close-btn,
button.ym6-story-close-btn:focus,
button.ym6-story-close-btn:hover {
  min-height: 40px;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  background: #F4EBDC !important;
  border: 1px solid rgba(200, 150, 62, 0.45) !important;
  color: var(--ym4-navy) !important;
  font-family: 'Heebo', sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.ysb4-type-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(200, 150, 62, 0.16);
  color: #7B5213;
  font-weight: 700;
  font-size: 0.84rem;
}

.ysb4-teller {
  font-size: 0.9rem;
  color: #7A674C;
  font-weight: 600;
}

.ysb4-letter-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 900;
  color: var(--ym4-navy);
  margin: 0 0 12px;
  line-height: 1.3;
}

.ysb4-letter-prose {
  font-size: 1.06rem;
  line-height: 1.82;
  color: #2B3B4C;
}

.ysb4-letter-media {
  position: relative !important;
  margin: 14px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #FFFFFF;
  padding: 5px;
  box-shadow: 0 8px 22px rgba(45, 32, 14, 0.12);
}

.ysb4-letter-media iframe,
.ysb4-letter-media video {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 10px;
  border: 0;
  display: block;
}

.ysb4-letter-media img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.ysb4-letter-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(200, 150, 62, 0.26);
}

button.ysb4-btn-another,
button.ysb4-btn-another:focus {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px !important;
  border-radius: 999px !important;
  background: var(--ym4-navy) !important;
  color: #FFFFFF !important;
  border: none !important;
  font-family: 'Heebo', sans-serif;
  font-weight: 800;
  font-size: 0.96rem;
  cursor: pointer;
}

.ysb4-share-memory-link {
  color: var(--ym4-sky) !important;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
}

@media (max-width: 959px) {
  .ysb4-stage {
    padding: 18px 12px !important;
    border-radius: 22px;
  }

  .ysb4-vessel-halo {
    width: min(56vw, 205px);
  }

  /* On Mobile, when a story is drawn, switch cleanly to full Story Reading mode! */
  .ysb4-stage.has-open-story .ysb-bowl-btn,
  .ysb4-stage.has-open-story .ysb4-meta-caption {
    display: none !important;
  }

  .ysb4-parchment-letter {
    margin-top: 0;
    padding: 18px 14px;
    border-radius: 18px;
  }

  .ysb4-wax-seal {
    display: none;
  }

  .ysb4-cta-pill {
    padding: 11px 18px;
    font-size: 0.92rem;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .ysb4-letter-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .ysb4-letter-footer button.ysb4-btn-another {
    width: 100%;
  }
}

/* =========================================================================
   5. [yair_soccer_game] — Dedicated 1-Screen Mobile Game Arena
   ========================================================================= */
.ysg4-arena {
  display: block !important;
  font-family: 'Heebo', sans-serif;
  max-width: 720px;
  margin: 10px auto;
  border-radius: 28px;
  overflow: hidden;
  background-color: #14532D;
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.34) 0%, rgba(15, 23, 42, 0.05) 45%, rgba(6, 46, 22, 0.35) 100%),
    var(--ysg-pitch-bg);
  background-size: cover;
  background-position: center 62%;
  box-shadow: 0 22px 50px rgba(15, 38, 24, 0.24), inset 0 0 0 2px rgba(255, 255, 255, 0.42);
  position: relative;
  user-select: none;
  touch-action: manipulation;
}

.ysg4-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 20px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.ysg4-hud-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ysg4-live-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.ysg4-hud-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: #FFFFFF !important;
}

.ysg4-scoreboard {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ysg4-score-box { display: flex; align-items: baseline; gap: 5px; }
.ysg4-score-lbl { font-size: 0.8rem; color: #CBD5E1; font-weight: 600; }
.ysg4-score-box strong { font-size: 1.3rem; font-weight: 900; color: #FACC15; }
.ysg4-score-box small { font-size: 0.85rem; color: #94A3B8; }
.ysg4-score-divider { width: 1px; height: 20px; background: rgba(255, 255, 255, 0.2); }
.ysg4-shot-dots { display: flex; gap: 5px; }
.ysg4-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); border: 1px solid rgba(255, 255, 255, 0.45); }
.ysg4-dot.is-goal { background: #4ADE80; border-color: #BBF7D0; box-shadow: 0 0 8px #4ADE80; }
.ysg4-dot.is-saved { background: #FB7185; border-color: #FECDD3; }

.ysg4-pitch-stage {
  position: relative;
  height: 310px;
  max-width: 580px;
  margin: 12px auto 4px;
  perspective: 750px;
}

.ysg4-field-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.ysg4-goal-wrap { position: relative; width: min(90%, 380px); height: 150px; margin: 6px auto 0; z-index: 2; }
.ysg4-goal-depth-back { position: absolute; inset: 10px 16px 0 16px; border: 2.5px solid rgba(226, 232, 240, 0.55); border-bottom: none; border-radius: 6px 6px 0 0; pointer-events: none; }

.ysg4-goal-net {
  position: absolute;
  inset: 6px 6px 0 6px;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.34) 0px, rgba(255,255,255,0.34) 1.5px, transparent 1.5px, transparent 14px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.34) 0px, rgba(255,255,255,0.34) 1.5px, transparent 1.5px, transparent 14px);
  background-color: rgba(15, 23, 42, 0.18);
  border-radius: 8px 8px 0 0;
  transform-origin: top center;
}
.ysg4-goal-net.is-rippling { animation: ysgNetWave 0.65s ease-out; }
@keyframes ysgNetWave {
  0% { transform: scale(1); }
  30% { transform: scaleY(1.06) scaleX(1.03); background-color: rgba(250, 204, 21, 0.22); }
  65% { transform: scaleY(0.98) scaleX(0.99); }
  100% { transform: scale(1); }
}

.ysg4-goal-frame {
  position: absolute;
  inset: 0;
  border-top: 8px solid #F8FAFC;
  border-left: 8px solid #F8FAFC;
  border-right: 8px solid #F8FAFC;
  border-radius: 9px 9px 0 0;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.25), 0 -4px 18px rgba(0, 0, 0, 0.22);
}

.ysg4-keeper-shadow {
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 64px;
  height: 11px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  filter: blur(3px);
  transform: translateX(-50%);
  transition: left 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.15);
}

.ysg-keeper {
  width: 86px;
  height: 106px;
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  transition: left 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.15), transform 0.26s ease;
  z-index: 3;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.32));
}
@keyframes keeperReady {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}
.ysg-keeper.ready { animation: keeperReady 0.72s infinite ease-in-out; }
.ysg-keeper.dive-left { transform: translateX(-50%) rotate(-24deg) translateY(-8px) scale(1.04); }
.ysg-keeper.dive-right { transform: translateX(-50%) rotate(24deg) translateY(-8px) scale(1.04); }
.ysg-keeper.dive-center { transform: translateX(-50%) translateY(-12px) scale(1.06); }

.ysg4-goal-banner {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%) scale(0.5);
  opacity: 0;
  z-index: 8;
  padding: 7px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FACC15 0%, #EA580C 100%);
  color: #FFFFFF;
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 900;
  font-size: 1.9rem;
  box-shadow: 0 12px 32px rgba(234, 88, 12, 0.5);
  border: 2px solid #FFFFFF;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.ysg4-goal-banner.is-visible { opacity: 1; transform: translateX(-50%) scale(1); }

.ysg4-aimer { position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%); width: min(86%, 280px); z-index: 5; }
.ysg4-aim-track { height: 11px; border-radius: 999px; background: rgba(15, 23, 42, 0.62); border: 1.5px solid rgba(255, 255, 255, 0.72); position: relative; }
.ysg4-aim-zones { position: absolute; inset: 2px; border-radius: 999px; background: linear-gradient(90deg, #4ADE80 0%, #FACC15 50%, #4ADE80 100%); opacity: 0.75; }
.ysg4-aim-puck { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFFFFF 0%, #FACC15 70%); border: 3px solid #0F172A; position: absolute; top: -5px; left: 50%; transform: translateX(-50%); box-shadow: 0 0 10px rgba(250, 204, 21, 0.9); }

.ysg4-ball-shadow { position: absolute; bottom: 12px; left: 50%; width: 38px; height: 10px; border-radius: 50%; background: rgba(0, 0, 0, 0.48); filter: blur(2.5px); transform: translateX(-50%); transition: all 0.48s cubic-bezier(0.22, 1, 0.36, 1); z-index: 3; }
.ysg4-ball-shadow.shadow-pos-1 { bottom: 138px; left: 22%; transform: translateX(-50%) scale(0.45); opacity: 0.25; }
.ysg4-ball-shadow.shadow-pos-2 { bottom: 138px; left: 36%; transform: translateX(-50%) scale(0.45); opacity: 0.25; }
.ysg4-ball-shadow.shadow-pos-3 { bottom: 142px; left: 50%; transform: translateX(-50%) scale(0.42); opacity: 0.22; }
.ysg4-ball-shadow.shadow-pos-4 { bottom: 138px; left: 64%; transform: translateX(-50%) scale(0.45); opacity: 0.25; }
.ysg4-ball-shadow.shadow-pos-5 { bottom: 138px; left: 78%; transform: translateX(-50%) scale(0.45); opacity: 0.25; }

.ysg4-ball-3d { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); transition: all 0.48s cubic-bezier(0.2, 0.95, 0.34, 1.06); z-index: 6; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35)); }
.ysg4-ball-3d.shoot-pos-1 { bottom: 185px; left: 22%; transform: translateX(-50%) scale(0.56) rotate(-420deg); }
.ysg4-ball-3d.shoot-pos-2 { bottom: 178px; left: 36%; transform: translateX(-50%) scale(0.58) rotate(-260deg); }
.ysg4-ball-3d.shoot-pos-3 { bottom: 192px; left: 50%; transform: translateX(-50%) scale(0.56) rotate(320deg); }
.ysg4-ball-3d.shoot-pos-4 { bottom: 178px; left: 64%; transform: translateX(-50%) scale(0.58) rotate(260deg); }
.ysg4-ball-3d.shoot-pos-5 { bottom: 185px; left: 78%; transform: translateX(-50%) scale(0.56) rotate(420deg); }

.ysg4-footer-bar {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.88) 100%);
  backdrop-filter: blur(8px);
  padding: 15px 18px 18px;
  text-align: center;
}

button.ysg4-shoot-cta,
button.ysg4-reset-cta,
button.ysg4-shoot-cta:focus,
button.ysg4-reset-cta:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  background: linear-gradient(135deg, #FDE047 0%, #F59E0B 100%) !important;
  color: #0F172A !important;
  border: 2px solid #FFFFFF !important;
  padding: 12px 36px !important;
  border-radius: 999px !important;
  font-family: 'Heebo', sans-serif;
  font-size: 1.12rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45) !important;
}

button.ysg4-shoot-cta:active {
  transform: scale(0.96);
}

button.ysg4-reset-cta { display: none; margin-top: 8px; }
button.ysg4-shoot-cta:disabled { opacity: 0.55; cursor: not-allowed; }
.ysg4-commentary { margin-top: 8px; min-height: 24px; color: #F8FAFC; font-weight: 700; font-size: 0.98rem; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55); }

@media (max-width: 959px) {
  .ysg4-arena { border-radius: 22px; margin: 2px auto 12px; }
  .ysg4-hud { padding: 9px 12px; gap: 6px; }
  .ysg4-live-pill { display: none; }
  .ysg4-hud-brand { width: 100%; justify-content: center; }
  h3.ysg4-hud-title { font-size: 1.05rem !important; line-height: 1.25 !important; text-align: center !important; }
  .ysg4-scoreboard { width: 100%; justify-content: space-between; background: rgba(15, 23, 42, 0.48); padding: 5px 12px; border-radius: 10px; }
  .ysg4-score-box strong { font-size: 1.15rem; }
  .ysg4-pitch-stage { height: 244px; margin: 6px auto 2px; }
  .ysg4-goal-wrap { width: min(88%, 296px); height: 112px; margin-top: 6px; }
  .ysg4-goal-frame { border-top-width: 6.5px; border-left-width: 6.5px; border-right-width: 6.5px; }
  .ysg-keeper { width: 66px; height: 82px; }
  .ysg4-keeper-shadow { width: 48px; height: 9px; }
  .ysg4-goal-banner { top: 26px; font-size: 1.45rem; padding: 5px 18px; }
  .ysg4-aimer { bottom: 54px; width: min(84%, 230px); }
  .ysg4-ball-3d { bottom: 8px; }
  .ysg4-ball-3d svg { width: 40px; height: 40px; }
  .ysg4-ball-shadow { bottom: 7px; width: 30px; height: 8px; }
  .ysg4-ball-3d.shoot-pos-1 { bottom: 142px; left: 22%; transform: translateX(-50%) scale(0.58) rotate(-420deg); }
  .ysg4-ball-3d.shoot-pos-2 { bottom: 136px; left: 36%; transform: translateX(-50%) scale(0.6) rotate(-260deg); }
  .ysg4-ball-3d.shoot-pos-3 { bottom: 148px; left: 50%; transform: translateX(-50%) scale(0.58) rotate(320deg); }
  .ysg4-ball-3d.shoot-pos-4 { bottom: 136px; left: 64%; transform: translateX(-50%) scale(0.6) rotate(260deg); }
  .ysg4-ball-3d.shoot-pos-5 { bottom: 142px; left: 78%; transform: translateX(-50%) scale(0.58) rotate(420deg); }
  .ysg4-ball-shadow.shadow-pos-1,
  .ysg4-ball-shadow.shadow-pos-2,
  .ysg4-ball-shadow.shadow-pos-3,
  .ysg4-ball-shadow.shadow-pos-4,
  .ysg4-ball-shadow.shadow-pos-5 { bottom: 110px; }
  .ysg4-footer-bar { padding: 11px 12px 14px; }
  button.ysg4-shoot-cta,
  button.ysg4-reset-cta { width: 100%; max-width: 280px; min-height: 54px; font-size: 1.1rem; }
  .ysg4-commentary { font-size: 0.9rem; margin-top: 6px; min-height: 20px; }
}

/* =========================================================================
   6. [yair_even_al_even] — Ashlar Wall + Compact 2-Col Mobile Stone Chips
   ========================================================================= */
.ym4-even-stage { direction: rtl; margin-top: 4px; }

.ym4-jlm-wall-panorama {
  border-radius: 26px;
  overflow: hidden;
  background-color: #E8D8BC;
  background-image: var(--ym-jlm-bg);
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(200, 150, 62, 0.5);
  box-shadow: 0 20px 46px rgba(92, 68, 34, 0.16);
  position: relative;
}

.ym4-jlm-overlay {
  background: linear-gradient(180deg, rgba(255, 251, 240, 0.74) 0%, rgba(253, 246, 230, 0.56) 45%, rgba(44, 31, 15, 0.62) 100%);
  padding: 26px 20px 20px;
  text-align: center;
}

.ym4-jlm-kicker { display: inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(255, 253, 248, 0.88); color: #85581A; font-size: 0.83rem; font-weight: 700; margin-bottom: 6px; }
.ym4-jlm-title { font-family: 'Frank Ruhl Libre', serif; font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 900; color: #3E2A10; margin: 0 0 12px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); }

.ym4-masonry-viewport {
  max-width: 720px;
  margin: 0 auto 14px;
  padding: 14px 10px 0;
  min-height: 124px;
  max-height: 215px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(255, 250, 240, 0.36);
  backdrop-filter: blur(3px);
  border-radius: 16px 16px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.ym4-masonry-wall { display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; width: 100%; }
.ym4-stone-course { display: flex; justify-content: center; gap: 4px; width: 100%; }
.ym4-stone-course:nth-child(even) { padding-right: 18px; }

.ym-ashlar-stone {
  width: 78px;
  height: 32px;
  border-radius: 3px;
  position: relative;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.45) 0%, transparent 65%), linear-gradient(165deg, #F5EBDA 0%, #E4D0B0 58%, #CBB089 100%);
  border: 1px solid #9A7E56;
  box-shadow: inset 0 0 0 3px rgba(247, 239, 224, 0.65), inset 2px 2px 4px rgba(255, 255, 255, 0.85), inset -2px -3px 5px rgba(112, 84, 44, 0.38), 0 3px 5px rgba(42, 28, 10, 0.28);
  animation: ymStoneSettle 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.ym-ashlar-stone.v2 { width: 92px; background-color: #E8D5B5; }
.ym-ashlar-stone.v3 { width: 66px; background: linear-gradient(165deg, #F2E3CE 0%, #DFC7A4 58%, #C5A67B 100%); }
.ym-ashlar-stone.v4 { width: 84px; background: linear-gradient(165deg, #F7EFE2 0%, #E5D4B7 58%, #CEB48E 100%); }
.ym-ashlar-stone.has-sprig::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 6px;
  width: 12px;
  height: 9px;
  border-radius: 80% 0 80% 0;
  background: linear-gradient(135deg, #65A30D, #3F6212);
  box-shadow: 7px 2px 0 -1px #4D7C0F;
  transform: rotate(-18deg);
}
@keyframes ymStoneSettle {
  0% { opacity: 0; transform: translateY(-22px) scale(0.9); filter: brightness(1.3); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: brightness(1); }
}

.ym4-masonry-foundation { height: 9px; margin-top: 3px; border-radius: 3px; background: linear-gradient(90deg, #8B6F47 0%, #B8996C 50%, #8B6F47 100%); }
.ym4-jlm-footer-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.ym4-stone-total-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 18px; border-radius: 999px; background: rgba(28, 22, 16, 0.84); border: 1px solid rgba(253, 230, 138, 0.5); color: #FFFBEB; font-weight: 700; font-size: 0.9rem; }

.ym4-tablets-section { margin-top: 22px; }
.ym4-tablets-prompt { text-align: center; font-weight: 700; font-size: 1.04rem; color: var(--ym4-navy); margin: 0 0 14px; }
.ym4-tablets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }

button.ym4-stone-tablet,
button.ym4-stone-tablet:focus {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 18px !important;
  border-radius: 20px !important;
  background: linear-gradient(160deg, #FFFDF9 0%, #F7EFE0 100%) !important;
  border: 1px solid rgba(200, 150, 62, 0.38) !important;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 8px 20px rgba(92, 68, 34, 0.07) !important;
  text-align: right;
  cursor: pointer;
  font-family: 'Heebo', sans-serif;
}

.ym4-tablet-icon { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #FEF3C7 0%, #F6DFB0 100%); color: #8C5B12; display: flex; align-items: center; justify-content: center; padding: 9px; flex-shrink: 0; }
.ym4-tablet-icon svg { width: 100%; height: 100%; }
.ym4-tablet-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ym4-tablet-title { font-family: 'Frank Ruhl Libre', serif; font-size: 1.2rem; font-weight: 900; color: var(--ym4-navy); }
.ym4-tablet-desc { font-size: 0.9rem; color: var(--ym4-ink-soft); }
.ym4-tablet-plus { font-size: 0.84rem; font-weight: 800; color: var(--ym4-gold); }

@media (max-width: 959px) {
  .ym4-jlm-overlay { padding: 14px 10px 12px; }
  .ym4-jlm-kicker { display: none; }
  .ym4-jlm-title { font-size: 1.3rem; margin-bottom: 8px; }
  .ym4-masonry-viewport { min-height: 98px; max-height: 150px; margin-bottom: 10px; padding-top: 10px; }
  .ym-ashlar-stone { width: 46px; height: 21px; }
  .ym-ashlar-stone.v2 { width: 54px; }
  .ym-ashlar-stone.v3 { width: 40px; }
  .ym-ashlar-stone.v4 { width: 50px; }
  .ym4-jlm-footer-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .ym4-jlm-footer-bar .ym4-stone-total-pill,
  .ym4-jlm-footer-bar .ym-wa-share-pill {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 9px 12px !important;
    font-size: 0.85rem !important;
    min-height: 43px;
    white-space: normal !important;
    text-align: center;
    box-sizing: border-box !important;
  }
  .ym4-tablets-section { margin-top: 12px; }
  .ym4-tablets-prompt { font-size: 0.92rem; margin-bottom: 8px; }
  .ym4-tablets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  button.ym4-stone-tablet,
  button.ym4-stone-tablet:focus {
    width: 100% !important;
    min-height: 58px;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 9px 9px !important;
    border-radius: 14px !important;
  }
  button.ym4-stone-tablet:active { transform: scale(0.97); }
  button.ym4-stone-tablet:last-child:nth-child(odd) { grid-column: 1 / -1; justify-content: center !important; }
  .ym4-tablet-icon { width: 32px; height: 32px; padding: 6px; border-radius: 9px; }
  .ym4-tablet-title { font-size: 0.96rem; line-height: 1.18; }
  .ym4-tablet-desc { font-size: 0.74rem; line-height: 1.22; white-space: normal !important; }
  .ym4-tablet-plus { display: none !important; }
}

.ym4-stone-blessing-card {
  display: none;
  max-width: 640px;
  margin: 16px auto 0;
  background: radial-gradient(circle at top, #FFFDF9 0%, #FAF1DE 100%);
  border: 1.5px solid var(--ym4-gold);
  border-radius: 22px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--ym4-shadow-rich);
}
.ym-chosen-stone-pill { display: inline-block; padding: 5px 15px; border-radius: 999px; background: #FEF3C7; color: #85581A; font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.ym-daily-quote { font-family: 'Frank Ruhl Libre', serif; font-size: 1.16rem; color: var(--ym4-navy); line-height: 1.6; margin: 8px 0 14px; }

.ym-stone-particle {
  position: fixed;
  border-radius: 3px;
  pointer-events: none;
  z-index: 100099;
  animation: ymParticleFly 0.7s ease-out forwards;
}
@keyframes ymParticleFly {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.25); }
}

/* =========================================================================
   7. Contact Postcard ([yair_contact_form]) & Site Footer Band (#contact)
   ========================================================================= */
#contact { border-top: 1px solid rgba(200, 150, 62, 0.25); }
.ym5-contact-postcard { outline: 1px solid rgba(200, 150, 62, 0.18); outline-offset: -8px; }
.ym5-contact-form { width: 100%; display: flex; flex-direction: column; gap: 12px; font-family: 'Heebo', sans-serif; }
.ym5-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .ym5-field-row { grid-template-columns: 1fr; gap: 10px; } }
.ym5-field-group { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.ym5-label { font-size: 0.9rem; font-weight: 700; color: var(--ym4-navy); }
.ym5-req { color: #C8963E; }
.ym5-opt { font-weight: 500; font-size: 0.82rem; color: var(--ym4-ink-soft); }

input.ym5-input,
textarea.ym5-input {
  width: 100% !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(200, 150, 62, 0.42) !important;
  border-radius: 13px !important;
  padding: 11px 14px !important;
  font-family: 'Heebo', sans-serif !important;
  font-size: 16px !important;
  color: var(--ym4-ink) !important;
  box-shadow: inset 0 2px 4px rgba(27, 59, 90, 0.03) !important;
}
textarea.ym5-textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
input.ym5-input:focus,
textarea.ym5-input:focus { outline: none !important; border-color: var(--ym4-gold) !important; box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.18) !important; }

.ym5-upload-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 13px;
  background: #FFFDF7;
  border: 1.5px dashed rgba(200, 150, 62, 0.62);
  color: var(--ym4-navy);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.ym5-upload-dropzone svg { color: var(--ym4-gold); flex-shrink: 0; }
.ym5-file-input { display: none !important; }

.ym5-photo-preview { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 12px; border-radius: 12px; background: #FFFFFF; border: 1px solid rgba(200, 150, 62, 0.36); }
.ym5-photo-preview[hidden] { display: none !important; }
.ym5-photo-preview img { width: 52px; height: 52px; object-fit: cover; border-radius: 9px; border: 1px solid rgba(200, 150, 62, 0.3); flex-shrink: 0; }
.ym5-photo-preview-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
#ycf-preview-name { font-size: 0.84rem; color: var(--ym4-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }

button.ym5-photo-remove,
button.ym5-photo-remove:focus,
button.ym5-photo-remove:hover {
  min-height: 36px;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  background: #FEF2F2 !important;
  border: 1px solid #FECACA !important;
  color: #B91C1C !important;
  font-family: 'Heebo', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

button.ym5-submit-btn,
button.ym5-submit-btn:focus {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  padding: 12px 28px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #256D9B 0%, #1B3B5A 100%) !important;
  border: none !important;
  color: #FFFFFF !important;
  font-family: 'Heebo', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(27, 59, 90, 0.22) !important;
  margin-top: 2px;
}
button.ym5-submit-btn:disabled { opacity: 0.65; cursor: wait; }

.ym5-form-status { font-size: 0.94rem; font-weight: 700; text-align: center; }
.ym5-form-status.is-success { padding: 11px 14px; border-radius: 13px; background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.ym5-form-status.is-error { padding: 10px 14px; border-radius: 13px; background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }

.ym5-footer-band {
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(200, 150, 62, 0.32);
  border-radius: 26px;
  padding: 26px 30px 20px;
  box-shadow: 0 14px 36px rgba(27, 59, 90, 0.07);
  font-family: 'Heebo', sans-serif;
}

.ym5-footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid rgba(200, 150, 62, 0.22); }
.ym5-footer-identity { display: flex; align-items: center; gap: 14px; }
.ym5-footer-emblem { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, #FDF3DC 0%, #F4DFA8 100%); border: 1px solid rgba(200, 150, 62, 0.42); color: #9A6B1F; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ym5-footer-brand-title { display: block; font-family: 'Frank Ruhl Libre', serif; font-size: 1.24rem; font-weight: 900; color: var(--ym4-navy); }
.ym5-footer-brand-sub { margin: 2px 0 0; font-size: 0.9rem; color: var(--ym4-ink-soft); }
.ym5-footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ym5-back-top-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: #FAF3E3; border: 1px solid rgba(200, 150, 62, 0.38); color: var(--ym4-navy) !important; text-decoration: none !important; font-size: 0.9rem; font-weight: 700; }

.ym5-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; padding: 14px 0; border-bottom: 1px solid rgba(200, 150, 62, 0.18); }
.ym5-footer-links a { display: inline-flex; align-items: center; min-height: 38px; padding: 4px 8px; color: var(--ym4-navy) !important; text-decoration: none !important; font-size: 0.92rem; font-weight: 600; }
.ym5-footer-bottom-note { padding-top: 12px; text-align: center; font-size: 0.86rem; color: var(--ym4-ink-soft); font-weight: 600; }

@media (max-width: 959px) {
  .ym5-field-row { grid-template-columns: 1fr; gap: 10px; }
  .ym5-footer-band { padding: 18px 14px 16px; border-radius: 22px; }
  .ym5-footer-top { flex-direction: column; align-items: stretch; text-align: center; }
  .ym5-footer-identity { flex-direction: column; gap: 8px; }
  .ym5-footer-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .ym5-footer-actions .ym-wa-share-pill,
  .ym5-footer-actions .ym5-back-top-btn { width: 100% !important; max-width: 100% !important; min-width: 0 !important; white-space: normal !important; box-sizing: border-box !important; }
}

/* =========================================================================
   8. Book Introduction Lightbox Modal
   ========================================================================= */
body:not(.elementor-editor-active) #birkat-intro-modal-source { display: none; }
body.elementor-editor-active #birkat-intro-modal-source { border: 2px dashed var(--ym4-gold) !important; background: #FFFBEB !important; padding: 20px !important; border-radius: 18px !important; margin-top: 18px !important; }

.ym3-modal-backdrop { position: fixed; inset: 0; z-index: 100060 !important; background: rgba(15, 23, 42, 0.75); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 14px; direction: rtl; }
.ym3-modal-backdrop.is-open { display: flex; }
.ym3-modal-dialog { background: radial-gradient(ellipse at top, #FFFDF9 0%, #FAF2E1 100%); border: 2px solid var(--ym4-gold); border-radius: 22px; max-width: 680px; width: 100%; max-height: 88dvh; overflow-y: auto; padding: 24px 20px; position: relative; box-shadow: 0 28px 64px rgba(0, 0, 0, 0.4); }
#ym3-birkat-modal h3, #ym3-birkat-modal .elementor-heading-title { color: var(--ym4-navy) !important; padding-left: 48px !important; }

button.ym3-modal-close,
button.ym3-modal-close:focus {
  position: sticky !important;
  top: 0 !important;
  z-index: 30 !important;
  float: left;
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  border: 1px solid rgba(200, 150, 62, 0.45) !important;
  background: #FFFFFF !important;
  color: var(--ym4-navy) !important;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
}

/* v7.1.0 Universal Mobile Containment Guard & Portrait Polish */
@media (max-width: 959px) {
  .ym7-profile-avatar {
    overflow: hidden;
  }
  .ym7-profile-avatar img {
    transform: scale(1.72);
    transform-origin: center 13%;
  }
  button,
  .elementor-button,
  .ym-wa-share-pill,
  .ym5-back-top-btn,
  .ym4-stone-total-pill,
  .ym4-candle-counter-pill,
  .ysb4-cta-pill {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .ym4-candle-counter-pill {
    white-space: normal !important;
    text-align: center;
    padding: 6px 12px;
  }
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="gallery"][data-ym7-gsub="contact"] .elementor-54,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="gallery"][data-ym7-gsub="contact"] #galleries,
  body.ym7-app-home:not(.elementor-editor-active)[data-ym7-tab="gallery"][data-ym7-gsub="contact"] #galleries > .e-con-inner {
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}
