/* Meirav Haber – recreated from the Wix site */
:root {
  --brown: #342216;
  --cream: #FEE9BD;
  --gold: #FDDE9C;
  --teal: #91D6D3;
  --rust: #6B2D1B;
  --ink: #414141;
  --plaster: #cfae9f;
  --wrap: 980px;
  --font-title: "Amatic SC", "Arial Narrow", sans-serif;
  --font-script: "Sofia", "Amatic SC", cursive;  /* stands in for Wix's "Coquette" */
  --font-menu: "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Verdana, sans-serif;
  --font-body: Tahoma, Verdana, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 14px/1.6 var(--font-body); color: var(--ink);
  background: var(--plaster) url("../img/plaster.webp") center top / cover fixed no-repeat;
}
main { flex: 1; }
img { max-width: 100%; }
a { color: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 6px 10px; z-index: 100; }
.center { text-align: center; }

/* ---------- header ---------- */
.site-header { background: var(--brown); padding: 10px 0; position: relative; z-index: 5; }
.hdr-frame { border-top: 2px solid #fff; border-bottom: 2px solid #fff; }
.hdr-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 10px 0 6px;
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "logo main" "sub sub";
  align-items: start; column-gap: 40px;
}
.logo {
  grid-area: logo; font: 700 56px/1.1 var(--font-title); letter-spacing: .3em; color: var(--cream);
  text-decoration: none; white-space: nowrap; margin-left: -2px;
  text-shadow: 0 1px 0 #c9a77a, 0 2px 3px rgba(0,0,0,.45);
}
.nav-main { grid-area: main; justify-self: end; display: flex; gap: 0; margin-top: 12px; }
.nav-main a { font: 15px var(--font-menu); color: var(--cream); text-decoration: none; padding: 4px 14px; }
.nav-main a:last-child { padding-right: 0; }
.nav-main a:hover, .nav-main a[aria-current] { color: var(--teal); }
.nav-sub { grid-area: sub; display: flex; flex-wrap: wrap; column-gap: 33px; margin-top: 2px; }
.nav-sub a { font: 700 24px/1.4 var(--font-script); color: var(--gold); text-decoration: none; }
.nav-sub a:hover, .nav-sub a[aria-current] { color: #fff3d6; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--brown); color: var(--cream); font: 12px var(--font-menu);
  display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; padding: 12px 16px;
  border-top: 2px solid #fff; box-shadow: 0 -8px 0 var(--brown) inset;
}
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }

/* ---------- home slideshow ---------- */
.hero { position: relative; margin-top: 30px; aspect-ratio: 2 / 1; max-height: calc(100vh - 190px); min-height: 220px; width: 100%; overflow: hidden; background: #2a1c12; }
.hero-track, .hero-slide { position: absolute; inset: 0; margin: 0; }
.hero-slide { opacity: 0; transition: opacity .9s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 14px; cursor: pointer; }
.hero-arrow svg { width: 20px; height: 40px; fill: none; stroke: #fff; stroke-width: 2; filter: drop-shadow(0 0 2px rgba(0,0,0,.6)); }
.hero-arrow.prev { left: 4%; } .hero-arrow.next { right: 4%; }
.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 9px; }
.hero-dots button { width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 1px solid #fff; background: rgba(255,255,255,.75); cursor: pointer; }
.hero-dots button[aria-selected="true"] { background: transparent; width: 10px; height: 10px; margin-top: -1.5px; border-width: 2px; }

/* ---------- panels / galleries ---------- */
.panel { max-width: var(--wrap); margin: 20px auto 48px; background: rgba(0,0,0,.94); border-radius: 4px; padding: 18px 20px 24px; box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.page-title { font: 700 30px/1.2 var(--font-script); color: var(--gold); margin: 0 0 14px 2px; }
.empty { color: var(--cream); }
.empty a { color: var(--gold); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile-btn { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: zoom-in; border-radius: 3px; }
.tile-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.tile-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: #1d1410; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .3s; }
.tile-btn:hover .tile-img img { transform: scale(1.04); filter: brightness(1.08); }
.badge { position: absolute; font: 11px var(--font-body); color: #fff; background: rgba(0,0,0,.6); border-radius: 10px; padding: 2px 8px; }
.badge.count { right: 6px; bottom: 6px; }
.badge.play { left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 20px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; padding: 0 0 0 4px; }
.tile-title { display: block; color: var(--cream); font: 15px/1.3 var(--font-body); margin: 9px 2px 2px; }
.tile-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--gold); opacity: .85; font: 11px/1.45 var(--font-body); margin: 0 2px; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(12,8,5,.96); display: none; grid-template-rows: minmax(0,1fr) auto; color: var(--cream); }
.lb.open { display: grid; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 48px 64px 8px; }
.lb-stage img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px); object-fit: contain; display: block; user-select: none; }
.lb-stage .lb-video { width: min(100%, calc((100vh - 220px) * 16 / 9)); aspect-ratio: 16 / 9; }
.lb-stage .lb-video iframe, .lb-stage .lb-video video { width: 100%; height: 100%; border: 0; background: #000; }
.lb-cap { padding: 10px 64px 18px; max-width: 980px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; }
.lb-title { font: 17px var(--font-body); color: var(--cream); margin: 0; }
.lb-desc { grid-column: 1; font: 13px/1.5 var(--font-body); color: var(--gold); margin: 0; white-space: pre-line; }
.lb-count { grid-column: 2; grid-row: 1; font: 12px var(--font-body); color: #d9c6a5; align-self: center; display: flex; gap: 12px; align-items: center; }
.lb button { background: none; border: 0; color: #fff; cursor: pointer; }
.lb-close { position: absolute; top: 8px; right: 12px; font-size: 34px; line-height: 1; padding: 6px 10px; z-index: 2; }
.lb-nav { position: absolute; top: 0; bottom: 0; width: 64px; display: grid; place-items: center; z-index: 1; }
.lb-nav svg { width: 22px; height: 44px; fill: none; stroke: #fff; stroke-width: 2; }
.lb-prev { left: 0; } .lb-next { right: 0; }
.lb-play { font: 12px var(--font-body); color: var(--cream) !important; border: 1px solid #8a7356 !important; border-radius: 12px; padding: 2px 10px; }

/* ---------- films ---------- */
body.page-film { background: #000; }
.film { max-width: var(--wrap); margin: 0 auto; padding: 60px 0 40px; color: #fff; }
.film-sep { position: relative; }
.film-sep::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.75) 0%, rgba(255,255,255,.25) 45%, transparent 75%); }
.film-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
.film-grid.has-laurels { grid-template-columns: 150px minmax(0, 1fr) 150px; column-gap: 26px; row-gap: 26px; }
.film-video { aspect-ratio: 16 / 9; width: 100%; max-width: 703px; margin: 0 auto; }
.film-grid.has-laurels .film-video { grid-column: 2; grid-row: 1 / span 3; }
.film-video iframe, .film-video video { width: 100%; height: 100%; border: 0; display: block; background: #111; }
.laurel { max-width: 140px; max-height: 92px; object-fit: contain; justify-self: center; }
.laurel.side-l { grid-column: 1; } .laurel.side-r { grid-column: 3; }
.laurel-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: 30px; }
/* Sylvia has 13 laurels: 3 + 3 beside the video, and 7 that must stay on one centered row.
   STAN (12) keeps the shared row above. Equal tracks keep the seventh from wrapping. */
.laurel-row.laurel-row-7 {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  justify-content: center;
  justify-items: center;
  align-items: center;
  column-gap: 14px;
  row-gap: 14px;
  width: 100%;
}
.laurel-row.laurel-row-7 .laurel {
  min-width: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 92px;
}
/* Wrapper is invisible on desktop so STAN and Sylvia's row stay on the images themselves. */
.laurel-frame { display: contents; }
.film-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; margin-bottom: 40px; }
.film-heading h2 { font: italic 25px/1.3 Georgia, "Times New Roman", serif; letter-spacing: .06em; color: #fff; margin: 0; }
.pill { font: 13px var(--font-menu); color: #fff; text-decoration: none; padding: 5px 14px; border-radius: 16px; background: #4a3a2e; border: 1px solid #b9a58a; }
.pill:hover { background: #6b5442; }
.film:last-child { padding-bottom: 90px; }

/* ---------- about ---------- */
.about { position: relative; min-height: 760px; padding: 10px 16px 60px;
  background: #000 var(--about-bg) center top / cover no-repeat;
  box-shadow: inset 0 0 120px 40px rgba(0,0,0,.85); }
.about-box { position: relative; max-width: 505px; margin: 0 auto 0 calc(50% - 350px); background: rgba(0,0,0,.95); color: var(--cream);
  padding: 30px 14px 18px; text-align: left; font: 13px/1.6 var(--font-body); }
.about-text p { margin: 0 0 1.2em; }
.about-text a { color: var(--cream); font-size: 12px; }
.about-avatar { display: block; margin: 0 auto 12px; width: 80px; height: 80px; border-radius: 4px; }
.btn-wood { display: block; width: 160px; margin: 0 auto; text-align: center; text-decoration: none;
  font: 700 25px/1.1 var(--font-title); color: var(--cream); padding: 3px 0 4px; border-radius: 6px;
  background: linear-gradient(#8a5a2b, #5b3816 55%, #3d240e); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 4px rgba(0,0,0,.6); }
.btn-wood:hover { filter: brightness(1.15); }
.tape { position: absolute; top: -14px; width: 70px; height: 30px; background: rgba(160,160,160,.55); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.tape-l { left: -18px; transform: rotate(-40deg); } .tape-r { right: -18px; transform: rotate(40deg); }

/* ---------- contact ---------- */
body.page-contact main { background: #fff; }
.contact-inner { max-width: var(--wrap); margin: 0 auto; padding: 20px 0 50px; display: grid; grid-template-columns: 300px 1fr; gap: 42px; align-items: start; }
.contact-photo { width: 100%; height: auto; border: 2px solid #8a8a8a; display: block; }
.contact-side { min-width: 0; }
.bubble { position: relative; background: url("../../media/thumb/site/speech-bubble.webp") center / 100% 100% no-repeat;
  aspect-ratio: 600 / 445; max-width: 470px; width: 100%; padding: 8% 12% 20%; text-align: center; color: #2b1b10;
  display: flex; flex-direction: column; align-items: center; justify-content: center; box-sizing: border-box; overflow: hidden; }
.bubble h1 { font: 700 46px/1.05 var(--font-title); letter-spacing: .04em; margin: 0 0 6px; color: #2b1b10;
  max-width: 100%; overflow-wrap: anywhere; }
.bubble-lead { margin: 0; font: 16px/1.4 var(--font-body); color: #2b1b10; max-width: 100%; }
.bubble p { margin: 0; font: 20px/1.6 var(--font-body); }
.bubble a { text-decoration: none; color: #2b1b10; }
.bubble a:hover { text-decoration: underline; }
.contact-form { display: grid; gap: 12px; max-width: 425px; margin-top: 8px; }
.contact-form label { display: grid; gap: 4px; font: 13px var(--font-body); color: var(--rust); }
.contact-form label > span { font-weight: 700; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #b08a78; border-radius: 4px;
  padding: 9px 11px; font: 15px/1.4 var(--font-body); color: #2b1b10; background: #fffaf4;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--rust);
}
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 425px; width: 100%;
  background: var(--rust); color: #fff; border: 0; cursor: pointer;
  text-decoration: none; font: 15px var(--font-body); padding: 10px 0; border-radius: 4px; }
.btn-submit img { width: 34px; height: auto; filter: brightness(1.2); }
.btn-submit:hover { background: #84391f; }
.social { display: flex; gap: 12px; align-items: center; margin: 26px 0 0 0; }
.social img { width: 48px; height: 48px; display: block; }
.social .handle { color: var(--rust); text-decoration: none; font-size: 14px; }
.thanks { padding: 60px 20px 80px; }
.thanks-box { max-width: 480px; margin: 0 auto; text-align: center; color: var(--rust); }
.thanks-box h1 { font: 700 48px/1.1 var(--font-title); letter-spacing: .04em; margin: 0 0 12px; color: #2b1b10; }
.thanks-box p { margin: 0 0 16px; font-size: 16px; }
.thanks-box .btn-submit { max-width: 260px; margin: 0 auto; }
.thanks-box a:not(.btn-submit) { color: var(--rust); }
.the-end { display: block; width: 100%; height: auto; aspect-ratio: 1936 / 1288; object-fit: cover; max-height: 900px; }
body.page-contact .site-footer { border-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hdr-inner, .panel, .film, .contact-inner { margin-left: 16px; margin-right: 16px; }
  .hdr-inner { max-width: none; }
  .film, .contact-inner { max-width: none; }
  .about-box { margin: 0 auto; }
}
@media (max-width: 760px) {
  .site-header { padding: 6px 0; }
  .hdr-inner { grid-template-columns: 1fr; grid-template-areas: "logo" "main" "sub"; justify-items: center; text-align: center; padding: 8px 0 6px; }
  .logo { font-size: 42px; letter-spacing: .22em; margin-right: -.22em; }
  .nav-main { justify-self: center; margin-top: 2px; flex-wrap: wrap; justify-content: center; }
  .nav-main a { padding: 4px 9px; font-size: 14px; }
  .nav-main a:last-child { padding-right: 9px; }
  .nav-sub { justify-content: center; column-gap: 16px; }
  .nav-sub a { font-size: 19px; }
  .hero { margin-top: 0; aspect-ratio: 4 / 5; max-height: calc(100vh - 230px); }
  .hero-arrow.prev { left: 0; } .hero-arrow.next { right: 0; }
  .panel { margin: 12px 10px 30px; padding: 14px 12px 18px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tile-title { font-size: 13px; }
  .film { padding: 36px 0 24px; }
  .film-grid.has-laurels { grid-template-columns: 1fr 1fr; }
  .film-grid.has-laurels .film-video { grid-column: 1 / -1; grid-row: 1; }
  .laurel.side-l, .laurel.side-r { grid-column: auto; grid-row: auto !important; max-width: 120px; }
  .laurel-row { justify-content: center; }
  /* Sylvia only: one 2-column grid for all 13 laurels, same cell size.
     Each badge is shifted and scaled so its artwork, not its transparent or black padding, fills the cell.
     The desktop 3+3+7 rules above are left as they are. */
  .film:has(.laurel-row-7) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 16px;
    align-items: start;
  }
  .film:has(.laurel-row-7) .film-grid,
  .film:has(.laurel-row-7) .laurel-row-7 {
    display: contents;
  }
  .film:has(.laurel-row-7) .film-video {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0 0 2px;
  }
  .film:has(.laurel-row-7) .laurel-frame {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1.45;
    overflow: hidden;
    min-width: 0;
  }
  /* L.A.A.F. (sylvia-13) moves into the left cell of the row above.
     Los Angeles (sylvia-11) takes the centered last spot. Animaze stays on the right. */
  .film:has(.laurel-row-7) .laurel-frame:has(img[src*="sylvia-13"]) { order: 1; }
  .film:has(.laurel-row-7) .laurel-frame:has(img[src*="sylvia-12"]) { order: 2; }
  .film:has(.laurel-row-7) .laurel-frame:has(img[src*="sylvia-11"]) {
    order: 3;
    grid-column: 1 / -1;
    width: calc((100% - 14px) / 2);
    justify-self: center;
  }
  .film:has(.laurel-row-7) .laurel {
    position: absolute;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
  }
  .film:has(.laurel-row-7) img[src*="sylvia-01"] { width: 110.4%; left: -5.2%; top: 4%; }
  .film:has(.laurel-row-7) img[src*="sylvia-02"] { width: 101.3%; left: -0.8%; top: -1.5%; }
  .film:has(.laurel-row-7) img[src*="sylvia-03"] { width: 66.9%; left: 16.5%; top: 0; }
  .film:has(.laurel-row-7) img[src*="sylvia-04"] { width: 104.2%; left: -2.1%; top: -0.1%; }
  .film:has(.laurel-row-7) img[src*="sylvia-05"] { width: 83.5%; left: 8.3%; top: 0; }
  .film:has(.laurel-row-7) img[src*="sylvia-06"] { width: 110.9%; left: -5.4%; top: -1.9%; }
  .film:has(.laurel-row-7) img[src*="sylvia-07"],
  .film:has(.laurel-row-7) img[src*="sylvia-08"],
  .film:has(.laurel-row-7) img[src*="sylvia-09"],
  .film:has(.laurel-row-7) img[src*="sylvia-13"] { width: 104.2%; left: -2.1%; top: -0.2%; }
  .film:has(.laurel-row-7) img[src*="sylvia-10"] { width: 116.2%; left: -7.3%; top: 14.9%; }
  .film:has(.laurel-row-7) img[src*="sylvia-11"] { width: 114.2%; left: -7.2%; top: 2.5%; }
  .film:has(.laurel-row-7) img[src*="sylvia-12"] { width: 99.7%; left: 0.2%; top: -6.9%; }
  .about { padding-top: 24px; min-height: 0; }
  .contact-inner { grid-template-columns: 1fr; gap: 20px; }
  .contact-photo { max-width: 300px; margin: 0 auto; }
  .bubble { margin: 0 auto; padding: 10% 11% 18%; }
  .bubble h1 { font-size: clamp(28px, 9.5vw, 40px); letter-spacing: .02em; }
  .bubble-lead { font-size: 14px; padding: 0 4px; }
  .contact-form { max-width: none; width: 100%; }
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea { font-size: 16px; } /* avoid iOS zoom */
  .btn-submit { max-width: none; }
  .thanks { padding: 40px 16px 60px; }
  .thanks-box h1 { font-size: 40px; }
  .lb-stage { padding: 48px 8px 4px; }
  .lb-cap { padding: 8px 14px 16px; }
  .lb-nav { width: 44px; }
}
@media (max-width: 430px) {
  .logo { font-size: clamp(30px, 10.5vw, 40px); letter-spacing: .16em; margin-right: -.16em; }
  .nav-sub a { font-size: 17px; }
  .bubble { padding: 11% 12% 20%; }
  .bubble h1 { font-size: clamp(26px, 8.8vw, 34px); letter-spacing: .01em; margin-bottom: 4px; }
  .bubble-lead { font-size: 13px; line-height: 1.35; }
  .contact-form { gap: 10px; }
  .contact-form textarea { min-height: 96px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.tile-price { color: var(--gold); font-weight: bold; margin-left: 6px; }
