/* ===========================================================
   יוראי כהן – אתר הנצחה
   קובץ עיצוב ראשי. הצבעים והגופנים מרוכזים במשתנים למטה.
   =========================================================== */

:root {
  --black: #000;
  --white: #fff;
  --paper: #fcfafa;        /* רקע בהיר של אזור הפתיחה והסרטון */
  --text-dark: #000;
  --text-muted: #545454;   /* טקסט כרטיסי הזיכרונות */
  --heading-dark: #333;
  --popup-title: #2b3a8f;  /* כותרת חלון "שתפו זיכרון" */
  --header-h: 72px;
  --content-w: 980px;

  --font-display: "Heebo", "Arial Black", sans-serif;      /* כותרות כבדות */
  --font-body: "Heebo", "Assistant", Arial, sans-serif;     /* טקסט רץ */
  --font-nav: "Oswald", "Heebo", sans-serif;                /* תפריט */
  --font-card: "Assistant", "Heebo", sans-serif;            /* כרטיסי זיכרון */
  --font-dates: "Oswald", "Heebo", sans-serif;              /* תאריכים */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #8f8d89 url("../assets/img/bg-concrete.webp") center / cover fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { width: min(var(--content-w), calc(100% - 40px)); margin-inline: auto; }

/* ---------- כותרת עליונה ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
}
.site-header .inner {
  width: min(1100px, 100%); height: 100%;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.nav { display: flex; align-items: center; height: 44px; }
.nav a {
  font-family: var(--font-nav); font-weight: 200; font-size: 15px;
  color: var(--white); text-decoration: none;
  padding: 0 34px; height: 100%; display: flex; align-items: center;
  border-inline-start: 1px solid rgba(255,255,255,.85);
  transition: color .2s;
}
.nav a:first-child { border-inline-start: 0; }
.nav a:hover { color: #bdbdbd; }
.nav a.active { color: #8c8c8c; }
.lang {
  position: absolute; inset-inline-end: 24px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-nav); font-weight: 300; font-size: 12px; letter-spacing: .08em;
}
.lang a { color: #bbb; text-decoration: none; padding: 4px 6px; }
.lang a.current { color: var(--white); border-bottom: 1px solid var(--white); }
.menu-toggle { display: none; }

/* ---------- אזור פתיחה ---------- */
.hero {
  background: var(--paper);
  border-bottom: 15px solid var(--black);
}
.hero .container {
  width: min(1000px, calc(100% - 40px));
  display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "photo text"; align-items: end; gap: 20px;
  min-height: 568px; direction: ltr; /* התמונה תמיד משמאל, כמו במקור */
}
.hero-photo { grid-area: photo; }
.hero-text { grid-area: text; direction: rtl; }
[dir=ltr] .hero-text { direction: ltr; }
.hero-photo { align-self: end; cursor: zoom-in; justify-self: center; }
.hero-photo img { width: 485px; max-width: 100%; margin-top: 16px; }
.hero-text { text-align: center; align-self: center; padding-bottom: 40px; }
.hero-text .helmet { width: 87px; margin: 0 auto 6px; }
.hero-title {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--font-display); font-weight: 800; font-size: 60px; line-height: 1.1;
  letter-spacing: .01em; margin: 0; white-space: nowrap;
}
.hero-title .stroke { width: 75px; height: 8px; fill: currentColor; flex: none; }
.hero-title .stroke.flip { transform: scaleX(-1); }
.hero-quote {
  font-weight: 700; font-size: 15px; letter-spacing: .2em; line-height: 1.5;
  max-width: 260px; margin: 14px auto 0;
}
.hero-dates {
  font-family: var(--font-dates); font-weight: 400; font-size: 15px; letter-spacing: .5em;
  margin-top: 18px; direction: ltr;
}

/* ---------- סרטון ---------- */
.video-section { background: var(--paper); padding: 36px 0 70px; position: relative; }
.video-section .bees { position: absolute; width: 115px; left: calc(50% - 445px); top: 36px; }
.video-text { text-align: center; font-weight: 700; font-size: 18px; line-height: 1.45; max-width: 640px; margin: 0 auto 30px; }
.video-text p { margin: 0; }
.video-frame { position: relative; width: 100%; aspect-ratio: 980 / 488; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- סיפור חיים + גלריה מתחלפת ---------- */
.bio {
  position: relative; color: var(--white); padding: 40px 0 70px;
  background: url("../assets/img/bg-concrete.webp") center / cover fixed;
}
.bio::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.30); }
.bio > * { position: relative; }
.section-title {
  font-family: var(--font-display); font-weight: 800; font-size: 42px; line-height: 1.2;
  text-align: center; margin: 0 0 40px;
}
.bio-text { width: min(1010px, calc(100% - 40px)); margin: 0 auto; font-size: 20px; line-height: 1.4; }
.bio-text p { margin: 0 0 .1em; }
.bio-text p.gap { margin-bottom: 1.2em; }

.slider { position: relative; width: min(990px, calc(100% - 40px)); margin: 34px auto 0; }
.slider-track-wrap { overflow: hidden; }
.slider-track { display: flex; gap: 30px; transition: transform .6s ease; }
.slide { flex: 0 0 calc((100% - 30px) / 2); aspect-ratio: 1; cursor: zoom-in; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 45px; height: 80px; border: 0; background: transparent; cursor: pointer;
  color: var(--white); font-size: 40px; line-height: 1; opacity: .9;
}
.slider-btn:hover { opacity: 1; }
.slider-btn.left { left: -50px; }
.slider-btn.right { right: -50px; }

/* ---------- סיפור גבורתו ---------- */
.heroism {
  background: #fafafa url("../assets/img/bg-heroism.webp") center / cover;
  padding: 34px 0 60px;
}
.heroism .section-title { color: var(--heading-dark); margin-bottom: 22px; }
.heroism-text { font-size: 18px; line-height: 1.4; }
.heroism-text p { margin: 0; }

/* ---------- זיכרונות ---------- */
.memories { padding: 10px 0 0; }
.memories-title {
  font-family: var(--font-body); font-weight: 700; font-size: 60px; color: var(--white);
  text-shadow: rgba(0,0,0,.4) 0 4px 5px; text-align: center; margin: 0 0 24px;
}
.memory-grid {
  width: min(1000px, calc(100% - 40px)); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 49px; align-items: start;
}
.memory-card { background: var(--white); padding: 0 8px 14px; }
.memory-card .photo { width: 100%; aspect-ratio: 269 / 358; object-fit: cover; margin: 0 auto; cursor: zoom-in; }
.memory-card .photo.placeholder { background: var(--white); cursor: default; }
.memory-card .body {
  font-family: var(--font-card); font-weight: 600; font-size: 15px; color: var(--text-muted);
  white-space: pre-line; padding: 18px 0 8px; line-height: 1.25;
}
.memory-card .name { font-family: var(--font-card); font-style: italic; font-weight: 600; font-size: 15px; color: var(--text-muted); padding: 0 19px; }
.btn {
  display: inline-block; font-family: var(--font-body); font-size: 15px; text-decoration: none; cursor: pointer;
  background: var(--white); color: #000; border: 1px solid #000; padding: 9px 24px; min-width: 142px; text-align: center;
  transition: background .2s, color .2s;
}
.btn:hover { background: #000; color: #fff; }
.btn.dark { background: #000; color: #fff; border-color: #000; }
.btn.dark:hover { background: #fff; color: #000; }
.memories-actions { text-align: center; padding: 34px 0 20px; display: grid; justify-items: center; gap: 37px; }

/* ---------- כותרת תחתונה ---------- */
.site-footer {
  position: relative; padding: 50px 0 22px; color: var(--white); text-align: center;
  background: url("../assets/img/bg-concrete.webp") center / cover;
}
.site-footer::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.site-footer > * { position: relative; }
.map { width: min(980px, calc(100% - 40px)); height: 202px; margin: 0 auto 36px; border: 0; display: block; }
.footer-note { font-weight: 700; font-size: 14px; margin: 0; }

/* ---------- חלון "שתפו זיכרון" ---------- */
.popup {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, rgba(120,120,120,.35) 0 3px, rgba(255,255,255,.25) 3px 9px);
}
.popup.open { display: flex; }
.popup-box {
  position: relative; width: min(862px, calc(100% - 24px)); min-height: 520px; padding: 40px 20px 30px;
  background: url("../assets/img/bg-lightbox.webp") center / cover;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.popup-box::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.35); }
.popup-box > * { position: relative; }
.popup-title {
  font-family: var(--font-display); font-weight: 900; font-size: 40px; color: var(--popup-title);
  text-shadow: 0 0 6px #fff, 0 0 12px #fff; margin: 0 0 16px; text-align: center;
}
.popup input[type=text], .popup textarea {
  width: 304px; max-width: 100%; border: 2px solid #8a8a8a; background: rgba(255,255,255,.92);
  font-family: var(--font-body); font-size: 14px; padding: 10px 12px;
}
.popup textarea { height: 142px; resize: vertical; }
.upload-label {
  width: 180px; border: 2px solid #8a8a8a; background: rgba(255,255,255,.92); font-size: 13px; color: #555;
  padding: 7px; text-align: center; cursor: pointer; margin-top: 14px;
}
.upload-label input { display: none; }
.popup-submit {
  margin-top: 12px; font-size: 22px; letter-spacing: .06em; padding: 20px 36px; border-radius: 40px;
  border: 0; background: #fff; cursor: pointer; font-family: var(--font-body);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.popup-back { font-weight: 700; font-size: 12px; background: #fff; border: 0; padding: 7px 8px; cursor: pointer; margin-top: 12px; font-family: var(--font-body); }
.popup-close { position: absolute; top: 10px; inset-inline-end: 14px; background: none; border: 0; font-size: 28px; cursor: pointer; color: #333; }
.popup-thanks { display: none; font-size: 22px; font-weight: 700; text-align: center; padding: 60px 0; }

/* ---------- הגדלת תמונה ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; padding: 10px 18px; }
.lightbox .lb-close { top: 10px; inset-inline-end: 14px; font-size: 34px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- עמודי משנה ---------- */
.page-bg { position: relative; background-size: cover; background-position: center; }
.gallery-page { min-height: calc(100vh - var(--header-h) - 120px); padding: 70px 0 90px; background-image: url("../assets/img/bg-gallery.webp"); }
.gallery-page h1 { font-family: var(--font-display); font-weight: 800; font-size: 50px; color: #3a3a3a; text-align: center; margin: 0 0 70px; }
.album-grid { display: grid; grid-template-columns: repeat(3, 180px); justify-content: center; gap: 46px 50px; }
.album-grid .btn { width: 180px; padding: 14px 6px; font-weight: 700; font-size: 14px; }
.album-grid .btn:nth-child(4) { grid-column: 3; }
.upload-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 46px; flex-wrap: wrap; }
.upload-row img { width: 95px; }
.upload-row p { margin: 0; font-size: 16px; color: #222; }
.upload-row .btn { min-width: 142px; font-weight: 700; padding: 9px 20px; }

.event-page { background-image: url("../assets/img/bg-event.webp"); color: #fff; padding: 30px 0 80px; }
.event-page::before, .competitors-page::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.event-page > *, .competitors-page > * { position: relative; }
.event-head { display: flex; align-items: center; justify-content: space-between; width: min(824px, calc(100% - 40px)); margin: 0 auto; gap: 16px; }
.event-head img { width: 96px; height: 96px; object-fit: cover; }
.event-head h1 { font-family: var(--font-display); font-weight: 800; font-size: 56px; margin: 0; text-align: center; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.event-text { text-align: center; font-size: 18px; font-weight: 700; line-height: 1.45; text-shadow: 0 1px 4px rgba(0,0,0,.8); margin: 10px auto 40px; max-width: 805px; white-space: pre-line; }
.event-cards { width: min(1180px, calc(100% - 40px)); margin: 0 auto; background: rgba(40,40,40,.62); padding: 30px 20px 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; justify-items: center; }
.event-card { display: grid; justify-items: center; gap: 13px; }
.event-card img { width: 260px; height: 325px; object-fit: cover; }

.competitors-page { background-image: url("../assets/img/bg-event.webp"); color: #fff; padding: 70px 0 60px; text-align: center; }
.competitors-page .text { font-family: var(--font-display); font-weight: 700; font-size: 29px; line-height: 1.3; white-space: pre-line; max-width: 600px; margin: 0 auto 16px; text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.competitors-page .actions { display: flex; justify-content: center; gap: 24px; }

.commemoration-page { background: #000; }
.comm-intro { position: relative; padding: 34px 0 30px; color: #fff; background: url("../assets/img/bg-concrete.webp") center / cover; }
.comm-intro::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.comm-intro p { position: relative; font-size: 22px; font-weight: 700; line-height: 1.5; text-align: center; max-width: 740px; margin: 0 auto; }
.garden { position: relative; min-height: 640px; background: url("../assets/img/bg-cactus.webp") center / cover; }
.garden .sign { position: absolute; top: 24px; inset-inline-end: 17%; width: 600px; max-width: 70%; }
.garden .pin { position: absolute; bottom: 30px; inset-inline-end: 15%; display: flex; align-items: center; gap: 8px; text-decoration: none; color: #1a4bb4; font-weight: 700; background: rgba(255,255,255,.8); padding: 6px 12px; border-radius: 20px; }
.garden .pin svg { width: 26px; height: 26px; }

/* ---------- מובייל ---------- */
@media (max-width: 900px) {
  .nav a { padding: 0 16px; font-size: 14px; }
  .hero .container { grid-template-columns: 1fr; grid-template-areas: "text" "photo"; min-height: 0; padding-top: 30px; }
  .hero-text { padding-bottom: 0; }
  .hero-photo img { margin: 10px auto 0; width: 380px; }
  .hero-title { font-size: 44px; }
  .video-section .bees { display: none; }
  .memory-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .slider-btn.left { left: -8px; text-shadow: 0 0 6px #000; }
  .slider-btn.right { right: -8px; text-shadow: 0 0 6px #000; }
  .album-grid { grid-template-columns: repeat(2, 160px); }
  .album-grid .btn { width: 160px; }
  .album-grid .btn:nth-child(4) { grid-column: auto; }
  body, .bio { background-attachment: scroll; }
}
@media (max-width: 600px) {
  .site-header .inner { justify-content: flex-start; padding-inline: 16px; }
  .menu-toggle { display: block; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }
  .nav { display: none; position: absolute; top: var(--header-h); inset-inline: 0; height: auto; flex-direction: column; background: #000; padding: 8px 0 14px; }
  .nav.open { display: flex; }
  .nav a { border: 0; height: auto; padding: 12px; font-size: 17px; }
  .hero-title { font-size: 38px; gap: 8px; }
  .hero-title .stroke { width: 40px; }
  .section-title { font-size: 30px; }
  .memories-title { font-size: 40px; }
  .bio-text { font-size: 17px; }
  .slide { flex: 0 0 100%; }
  .memory-grid { grid-template-columns: 1fr; }
  .event-head h1 { font-size: 34px; }
  .event-head img { width: 60px; height: 60px; }
  .event-cards { grid-template-columns: 1fr; }
  .competitors-page .text { font-size: 21px; }
  .popup-title { font-size: 28px; }
}

/* ---------- סרטון: תמונה עם כפתור ניגון (נטען רק בלחיצה – מהיר יותר ועובד גם בתצוגה) ---------- */
.video-facade { position: absolute; inset: 0; display: block; background: #000; cursor: pointer; }
.video-facade img { width: 100%; height: 100%; object-fit: contain; }
.video-facade .play {
  position: absolute; top: 50%; left: 50%; width: 78px; height: 55px; transform: translate(-50%, -50%);
  background: #e00; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.4); transition: transform .2s, background .2s;
}
.video-facade .play::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff;
}
.video-facade:hover .play { transform: translate(-50%, -50%) scale(1.08); background: #f00; }

/* ---------- טופס זיכרון ---------- */
.hp { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.popup-error { display: none; color: #a00; font-weight: 700; background: rgba(255,255,255,.9); padding: 6px 12px; margin: 0; }
.popup-submit[disabled] { opacity: .6; cursor: wait; }

[hidden] { display: none !important; }

/* ---------- יום זיכרון: פס עליון ---------- */
.memorial-banner { display: none; background: #1a1a1a; color: #f2d29b; text-align: center; font-size: 16px; padding: 10px 16px; border-top: 1px solid #333; }
.memorial-banner a { color: #fff; font-weight: 700; margin-inline-start: 10px; }
body.memorial-day .memorial-banner { display: block; position: sticky; top: var(--header-h); z-index: 45; }

/* ---------- הדלקת נר ---------- */
.candles { background: #000; color: #fff; text-align: center; padding: 50px 0 60px; border-bottom: 15px solid #000; }
.candles .section-title { color: #fff; margin: 0 0 10px; }
.candles-lead { font-size: 18px; margin: 0 auto 26px; max-width: 640px; color: #ddd; }
.candle-form { display: grid; grid-template-columns: 1fr 2fr auto; gap: 10px; max-width: 860px; margin: 0 auto; align-items: stretch; }
.candle-form input, .candle-form textarea { font-family: var(--font-body); font-size: 15px; padding: 10px 12px; border: 1px solid #fff; background: #fff; color: #000; border-radius: 0; height: 44px; resize: none; width: 100%; }
.candle-form .btn { height: 44px; }
.candle-form .btn:hover { background: #f2d29b; color: #000; border-color: #f2d29b; }
.candle-form .msg { grid-column: 1 / -1; min-height: 1.4em; margin: 4px 0 0; color: #f2d29b; font-weight: 700; }
.candle-count { font-family: var(--font-dates); letter-spacing: .08em; color: #bbb; margin: 10px 0 0; }
.candle-count b { color: #f2d29b; font-size: 20px; }
.candle-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 34px; text-align: center; }
.candle-wall > .empty { grid-column: 1 / -1; color: #aaa; }
.candle-card { padding: 16px 10px 14px; border: 1px solid rgba(255,255,255,.14); animation: rise .6s ease both; }
.candle-card.new { border-color: #f2d29b; }
.candle-card .who { font-weight: 800; font-size: 16px; margin-top: 10px; }
.candle-card .words { font-family: var(--font-card); font-size: 14px; line-height: 1.4; color: #ccc; margin-top: 4px; overflow-wrap: anywhere; }
.candle-more { margin-top: 26px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.candle { position: relative; width: 26px; height: 74px; margin: 0 auto; }
.candle .wax { position: absolute; bottom: 0; left: 0; right: 0; height: 52px; border-radius: 3px; background: linear-gradient(90deg, #d9d4cc, #fff 45%, #cfc9bf); }
.candle .wax::before { content: ""; position: absolute; top: -3px; left: 0; right: 0; height: 7px; border-radius: 50%; background: #eee9e1; }
.candle .wick { position: absolute; bottom: 51px; left: 50%; width: 2px; height: 8px; background: #2b2118; transform: translateX(-50%); }
.candle .flame { position: absolute; bottom: 56px; left: 50%; width: 14px; height: 24px; margin-left: -7px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 80%, #fff 0 18%, #ffe7a3 30%, #f5b54a 58%, rgba(232,120,30,0) 75%);
  transform-origin: 50% 90%; animation: flicker 2.4s ease-in-out infinite alternate; filter: drop-shadow(0 0 6px rgba(255,190,90,.9)); }
.candle .glow { position: absolute; bottom: 40px; left: 50%; width: 120px; height: 120px; margin-left: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(255,190,90,.22), transparent 65%); pointer-events: none; }
.candle.big { transform: scale(1.5); margin: 14px auto 34px; }
@keyframes flicker { 0% { transform: rotate(-2deg); } 25% { transform: rotate(1.5deg) scaleY(1.06); } 50% { transform: rotate(-1deg) scaleY(.96); } 75% { transform: rotate(2deg) scaleY(1.04); } 100% { transform: rotate(-1.5deg); } }
@media (max-width: 700px) {
  .candle-form { grid-template-columns: 1fr; }
  .candle-form textarea { height: 80px; }
  .candle-wall { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .candle .flame, .candle-card { animation: none; } }
/* אזור הנרות מוצג רק בימי זיכרון */
.candles { display: none; }
body.memorial-day .candles { display: block; }

/* ---------- יום זיכרון: גלריית תמונות מתחלפת ---------- */
.md-gallery { position: relative; max-width: 860px; height: min(70vh, 580px); margin: 0 auto 40px; background: #0b0b0b; overflow: hidden; }
.md-track { position: absolute; inset: 0; }
.md-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.md-slide.on { opacity: 1; }
.md-slide img { width: 100%; height: 100%; object-fit: contain; }
.md-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.45); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; z-index: 2; }
.md-btn:hover { background: #fff; color: #000; }
.md-prev { left: 12px; } .md-next { right: 12px; }
.md-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.md-dots button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.md-dots button.on { background: #fff; }
@media (max-width: 600px) { .md-gallery { height: min(62vh, 520px); margin-bottom: 30px; } .md-btn { width: 38px; height: 38px; font-size: 24px; } }
.md-btn { direction: ltr; }
.md-gallery + .candle.big { margin-top: 64px; }

/* ---------- הנצחה: מה עשינו לזכרו ---------- */
.comm-projects { padding: 46px 0 70px; background: url("../assets/img/bg-concrete.webp") center / cover; }
.comm-projects .section-title { margin: 0 0 30px; }
.projects { width: min(1000px, calc(100% - 40px)); margin: 0 auto; display: grid; gap: 30px; }
.project { display: grid; grid-template-columns: 360px 1fr; background: #fff; }
.project img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; cursor: zoom-in; }
.project-body { padding: 26px 30px; }
.project-when { font-family: var(--font-dates); letter-spacing: .12em; font-size: 13px; color: #777; margin: 0 0 6px; }
.project h3 { font-family: var(--font-display); font-weight: 800; font-size: 30px; margin: 0 0 10px; }
.project p { font-size: 17px; line-height: 1.5; margin: 0 0 18px; }
@media (max-width: 760px) { .project { grid-template-columns: 1fr; } .project img { min-height: 0; aspect-ratio: 4 / 3; } }
.project img[src*="video-thumb"] { object-fit: contain; background: #000; }
.wines { width: min(1000px, calc(100% - 40px)); margin: 30px auto 0; background: #fff; padding: 34px 30px 36px; text-align: center; }
.wines h3 { font-family: var(--font-display); font-weight: 800; font-size: 34px; margin: 0 0 10px; }
.wines > p:not(.project-when) { font-size: 17px; line-height: 1.5; max-width: 640px; margin: 0 auto 26px; }
.wine-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.wine { text-decoration: none; color: #000; display: grid; justify-items: center; gap: 8px; }
.wine img { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: contain; transition: transform .3s; }
.wine:hover img { transform: translateY(-6px); }
.wine span { font-weight: 700; font-size: 16px; border-bottom: 1px solid transparent; }
.wine:hover span { border-bottom-color: #000; }
@media (max-width: 700px) { .wine-row { grid-template-columns: repeat(2, 1fr); } }
.project img[src*="report-13"] { object-fit: contain; background: #000; }
/* Sataf dessert */
.dessert { width: min(1000px, calc(100% - 40px)); margin: 30px auto 0; background: #fff; padding: 40px 30px 42px; text-align: center; border-top: 4px solid #e6c84a; }
.dessert h3 { font-family: var(--font-display); font-weight: 800; font-size: 34px; margin: 0 0 14px; }
.dessert p { font-size: 17px; line-height: 1.6; max-width: 620px; margin: 0 auto 18px; }
.dessert .dessert-lead { font-family: var(--font-display); font-size: 22px; font-style: italic; color: #555; }
.dessert .flavors { list-style: none; padding: 0; margin: 6px 0 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.dessert .flavors li { border: 1px solid #000; padding: 6px 16px; font-weight: 700; font-size: 15px; }
.dessert .flavors li:nth-child(1) { background: #f6eaa8; }
.dessert .flavors li:nth-child(2) { background: #f7dde2; }
.dessert .flavors li:nth-child(3) { background: #e3f0d6; }
.dessert .dessert-where { color: #444; }
.project img[src*="hat-crossfighter"] { object-fit: contain; background: #1c1c1c; }
.dessert-pins { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; margin: 0 0 24px; }
.dessert-pins .pin { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #1a4bb4; font-weight: 700; font-size: 16px; }
.dessert-pins .pin svg { width: 22px; height: 22px; }
.dessert-pins .pin:hover { text-decoration: underline; }
html[dir="ltr"] .album-grid .btn:nth-child(4) { grid-column: 1; }
@media (max-width: 900px) { html[dir="ltr"] .album-grid .btn:nth-child(4) { grid-column: auto; } }
.dessert-photos { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 12px; align-items: center; margin: 8px auto 26px; max-width: 820px; }
.dessert-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; cursor: zoom-in; }
.dessert-photos img:nth-child(2) { aspect-ratio: 3 / 4; }
@media (max-width: 600px) { .dessert-photos { grid-template-columns: 1fr 1fr; } .dessert-photos img:nth-child(2) { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 4 / 5; } }
/* Gallery from Drive */
.gal .gal-lead { text-align: center; font-size: 17px; margin: -10px 0 26px; color: #333; }
.gal-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 auto 30px; max-width: 900px; }
.gal-tab { font-family: var(--font-body); font-weight: 700; font-size: 14px; padding: 10px 20px; border: 2px solid #000; background: transparent; color: #000; cursor: pointer; }
.gal-tab[aria-selected="true"], .gal-tab:hover { background: #000; color: #fff; }
.gal-n { font-weight: 400; opacity: .6; font-size: 12px; }
.gal-n:empty { display: none; }
.gal-status { text-align: center; color: #555; }
.gal-grid { columns: 3 260px; column-gap: 12px; width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.gal-item { display: block; width: 100%; padding: 0; border: 0; margin: 0 0 12px; background: #d9d6d0; cursor: zoom-in; break-inside: avoid; min-height: 180px; overflow: hidden; }
.gal-item.ready { min-height: 0; background: none; }
.gal-item img { width: 100%; height: auto; display: block; opacity: 0; transition: opacity .5s, transform .4s; }
.gal-item.ready img { opacity: 1; }
.gal-item:hover img { transform: scale(1.03); }
.gal-more { display: block; margin: 20px auto 0; }
.gal-more[hidden] { display: none; }
.gal-popup select { width: 304px; max-width: 100%; border: 2px solid #8a8a8a; background: rgba(255,255,255,.92); font-family: var(--font-body); font-size: 14px; padding: 9px 10px; }
.gal-popup textarea { height: 90px; }
@media (max-width: 600px) { .gal-grid { columns: 2; column-gap: 8px; } .gal-item { margin-bottom: 8px; } .gal-tab { padding: 8px 14px; font-size: 13px; } }
.gal h1 { margin-bottom: 20px; }
/* Annual event at TEAM PARISI */
.event-block { width: min(1000px, calc(100% - 40px)); margin: 30px auto 0; background: #fff; padding: 40px 30px 40px; text-align: center; }
.event-block h3 { font-family: var(--font-display); font-weight: 800; font-size: 34px; margin: 0 0 20px; }
.event-block p { font-size: 17px; line-height: 1.6; max-width: 660px; margin: 0 auto 16px; }
.event-block .event-corner { font-style: italic; color: #444; }
.event-photos { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; grid-template-rows: 190px 190px; gap: 10px; margin: 0 0 28px; }
.event-photos img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.event-photos img:nth-child(1) { grid-row: 1 / 3; }
.event-photos img:nth-child(2) { grid-column: span 2; }
.dessert-pins .pin svg[fill="none"] { width: 20px; height: 20px; }
@media (max-width: 700px) {
  .event-photos { grid-template-columns: 1fr 1fr; grid-template-rows: 150px 150px 120px 120px; }
  .event-photos img:nth-child(1) { grid-row: 1 / 3; }
  .event-photos img:nth-child(2) { grid-column: auto; }
}
.event-media { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: center; text-align: start; max-width: 860px; margin: 0 auto; }
.event-media video { width: 100%; aspect-ratio: 384 / 620; background: #000; display: block; }
.ev-text p { margin-inline: 0; }
.ev-text .dessert-pins { justify-content: flex-start; }
@media (max-width: 700px) { .event-media { grid-template-columns: 1fr; text-align: center; } .event-media video { max-width: 300px; margin: 0 auto; } .ev-text .dessert-pins { justify-content: center; } }
@media (max-width: 700px) { .event-photos { grid-template-rows: 150px 150px 120px 150px; } .event-photos img:nth-child(6) { grid-column: 1 / -1; } }
.project-video { position: relative; background: #000; min-height: 260px; }
.project-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.event-photos { grid-template-columns: 1.1fr 1fr 1fr; }
.event-photos img:nth-child(2) { grid-column: span 2; }
@media (max-width: 700px) { .event-photos { grid-template-columns: 1fr 1fr; grid-template-rows: 150px 150px 130px; } .event-photos img:nth-child(2) { grid-column: auto; } .event-photos img:nth-child(5) { grid-column: auto; } .event-photos img:nth-child(6) { grid-column: auto; } .project-video { min-height: 0; aspect-ratio: 16 / 9; } }
@media (max-width: 700px) { .event-photos img:nth-child(4) { grid-column: 1 / -1; } }
html { overflow-x: clip; }
/* Yorai's garden */
.garden-about { padding: 50px 20px 60px; text-align: center; background: #fff; }
.garden-about p { font-size: 18px; line-height: 1.6; max-width: 680px; margin: 0 auto 26px; }
.garden-photos { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; width: min(1000px, 100%); margin: 0 auto 28px; }
.garden-photos img { width: 100%; height: 440px; object-fit: cover; cursor: zoom-in; }
@media (max-width: 700px) { .garden-photos { grid-template-columns: 1fr 1fr; } .garden-photos img { height: 260px; } }

.garden-about .garden-sign { display: block; width: min(560px, 90%); margin: 0 auto 22px; }
.comm-cat { display: flex; align-items: center; gap: 18px; width: min(1000px, calc(100% - 40px)); margin: 56px auto 24px; font-family: var(--font-display); font-weight: 800; font-size: 26px; color: #222; text-align: center; }
.comm-cat::before, .comm-cat::after { content: ""; flex: 1; height: 2px; background: rgba(0,0,0,.28); }
.comm-projects .section-title + .comm-cat { margin-top: 10px; }
.comm-cat + .projects, .comm-cat + .event-block, .comm-cat + .dessert { margin-top: 0; }
.event-block + .projects { margin-top: 30px; }
.garden-about { padding: 30px 20px 36px; }
.garden-about .garden-sign { margin-bottom: 10px; }
.garden-about p { margin-bottom: 16px; }
.garden-photos { margin-bottom: 18px; }
.mrlifter .event-media video { aspect-ratio: 464 / 832; }
.ml-photos img:nth-child(2) { object-position: center 20%; } .ml-photos img:nth-child(4) { object-position: center 15%; }
.mrlifter .event-photos { margin-bottom: 22px; }
.mrlifter .event-media { grid-template-columns: 230px 1fr; align-items: start; }
.mrlifter .ev-text { padding-top: 6px; }
@media (max-width: 700px) { .mrlifter .event-media { grid-template-columns: 1fr; } .mrlifter .event-media video { max-width: 260px; margin: 0 auto; } }
@media (max-width: 700px) { .mrlifter .ev-text { order: -1; padding-top: 0; } }
.garden-photos { margin-bottom: 20px; }
.garden-about p { margin-bottom: 20px; }
@media (max-width: 700px) { .event-block .ev-text { order: -1; } .event-block .event-media { gap: 22px; } }
/* מובייל: התפריט גלוי תמיד בשורה העליונה, כמו במחשב */
@media (max-width: 600px) {
  .menu-toggle { display: none !important; }
  .site-header .inner { justify-content: flex-start; padding-inline: 10px 8px; }
  .nav, .nav.open { display: flex; position: static; flex-direction: row; height: 34px; padding: 0; background: none; }
  .nav a { height: 100%; padding: 0 14px; font-size: 15px; border-inline-start: 1px solid rgba(255,255,255,.85); }
  .nav a:first-child { border-inline-start: 0; }
  .lang { inset-inline-end: 12px; }
}
@media (max-width: 360px) { .nav a { padding: 0 10px; font-size: 14px; } }
