/* Batch 48 (2026-10-06): Holiday Market B. Holiday route only; loads after batch 47 and the batch 41 background and motion tokens.
   One reusable alternating chapter row for the seven themed chapters, a shared gallery stage (4:3), tree backed narrative panels, cover plates from the
   approved ornament walls, the Tenth strip as the closing bridge. Nothing here moves on its own; motion numbers read the batch 41 tokens.
   Specificity note: older Holiday sheets style these seven ids directly (margins, frames, backgrounds with !important), so the row rules below name the ids. */

/* ---------- Row shell ---------- */
html.omhm-holiday :is(#story-makers,#story-bags,#team,#story-party,#words,#story-raffle,#story-volunteers).hm48-row{
  --hm48-gap:28px;--hm48-media:580px;--hm48-pad:clamp(28px,3.2vw,44px);--hm48-mint:#68f8b3;--hm48-red:#ef2435;
  position:relative;display:block;box-sizing:border-box;width:min(1200px,calc(100% - 48px))!important;max-width:1200px!important;
  margin:56px auto 0!important;padding:0!important;background:none!important;background-color:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;overflow:visible!important;color:#fff;
}
html.omhm-holiday :is(#story-makers,#story-bags,#team,#story-party,#words,#story-raffle,#story-volunteers).hm48-row::after{content:none!important;display:none!important}
html.omhm-holiday .hm48-row .hm48-inner{position:relative;display:grid;grid-template-columns:minmax(0,48fr) minmax(0,52fr);grid-template-rows:auto auto;column-gap:var(--hm48-gap);align-items:center;isolation:isolate}
/* Gallery column and text column swap by row; the DOM order stays heading and context, gallery, remaining narrative. */
html.omhm-holiday .hm48-row--media-left .hm48-gallery{grid-column:1;grid-row:1 / span 2}
html.omhm-holiday .hm48-row--media-left .hm48-intro{grid-column:2;grid-row:1}
html.omhm-holiday .hm48-row--media-left .hm48-rest{grid-column:2;grid-row:2}
html.omhm-holiday .hm48-row--media-right .hm48-inner{grid-template-columns:minmax(0,52fr) minmax(0,48fr)}
html.omhm-holiday .hm48-row--media-right .hm48-gallery{grid-column:2;grid-row:1 / span 2}
html.omhm-holiday .hm48-row--media-right .hm48-intro{grid-column:1;grid-row:1}
html.omhm-holiday .hm48-row--media-right .hm48-rest{grid-column:1;grid-row:2}

/* ---------- The wall inside a box (voice notes correction): an approved ornament wall photograph (ornament-wall-a, b or c; the layer is named tree), a local dark support
   and a crisp 2 px red edge, all INSIDE the panel. The tree layer is the only thing that moves: a few pixels of drift with the scroll, written by the script as --hm48-drift
   (transform only, overscan above and below so the box never shows an edge). One surface covers the text column on desktop; on one column each text block carries its own. ---------- */
.hm48-surface{position:absolute;z-index:-1;inset:0;overflow:hidden;box-sizing:border-box;border:2px solid var(--hm48-red,#ef2435);border-radius:12px;background:#0d1b12;pointer-events:none;isolation:isolate}
.hm48-tree{position:absolute;left:0;right:0;top:-28px;bottom:-28px;background-image:var(--hm48-tree-img);background-size:cover;background-repeat:no-repeat;background-position:var(--hm48-tree-pos,50% 50%);transform:translate3d(0,var(--hm48-drift,0px),0);will-change:transform}
.hm48-support{position:absolute;inset:22px;border-radius:10px;filter:blur(9px);background:linear-gradient(100deg,rgba(5,5,5,.92) 0%,rgba(5,5,5,.84) 60%,rgba(5,5,5,.76) 100%)}
html.omhm-holiday .hm48-row--media-right>.hm48-inner>.hm48-surface>.hm48-support{background:linear-gradient(260deg,rgba(5,5,5,.92) 0%,rgba(5,5,5,.84) 60%,rgba(5,5,5,.76) 100%)}
html.omhm-holiday .hm48-row .hm48-inner>.hm48-surface{grid-row:1 / span 2}
html.omhm-holiday .hm48-row--media-left .hm48-inner>.hm48-surface{grid-column:2}
html.omhm-holiday .hm48-row--media-right .hm48-inner>.hm48-surface{grid-column:1}
html.omhm-holiday .hm48-row .hm48-surface--block{display:none}

/* ---------- Narrative ---------- */
html.omhm-holiday .hm48-row .hm48-intro,html.omhm-holiday .hm48-row .hm48-rest{position:relative;z-index:1;box-sizing:border-box;min-width:0;text-align:left;margin:0;border:0;background:none}
html.omhm-holiday .hm48-row .hm48-intro{align-self:end;padding:var(--hm48-pad) var(--hm48-pad) 0}
html.omhm-holiday .hm48-row .hm48-rest{align-self:start;padding:0 var(--hm48-pad) var(--hm48-pad)}
html.omhm-holiday .hm48-row .hm48-head{margin:0 0 14px;padding:0;text-align:left;background:none;border:0;max-width:none;width:auto}
html.omhm-holiday .hm48-row .hm48-head h2{
  margin:0!important;padding:0;font-family:"OMHM Backline",cursive!important;font-weight:400!important;text-transform:none!important;letter-spacing:0!important;
  font-size:clamp(2.4rem,3.5vw,3.4rem)!important;line-height:1.08!important;color:var(--hm48-mint)!important;text-align:left!important;width:auto!important;white-space:normal;overflow-wrap:break-word;
  -webkit-text-stroke:0!important;text-shadow:none!important;paint-order:normal;
}
html.omhm-holiday .hm48-row .hm48-prose{max-width:none;margin:0;text-align:left;background:none;border:0}
html.omhm-holiday .hm48-row .hm48-prose p{margin:0!important;max-width:60ch!important;padding:0;font-family:"OMHM Tomorrow",system-ui,sans-serif;font-size:17px!important;line-height:1.62!important;font-weight:400;color:#fff!important;text-align:left!important;text-shadow:none}
html.omhm-holiday .hm48-row .hm48-prose p+p{margin-top:.8em!important}
@media(min-width:1100px){html.omhm-holiday .hm48-row .hm48-rest>p:first-of-type{margin-top:.8em!important}}

/* ---------- Gallery assembly: lid, one shared 4:3 stage, one shared label bar, in every chapter ---------- */
html.omhm-holiday .hm48-row .hm48-gallery{
  position:relative;box-sizing:border-box;width:100%;max-width:var(--hm48-media);margin:0;justify-self:center;align-self:center;container-type:inline-size;outline-offset:6px;z-index:1;
}
html.omhm-holiday .hm48-row .hm48-gallery .feature-gift-lid{
  display:block;position:relative;z-index:3;width:calc(100% + 16px)!important;max-width:none!important;height:auto;margin:0 -8px calc(-7.2cqw)!important;pointer-events:none;
}
/* The typed Raffle lid (no image exists for it): same width, the natural lid proportion 2.5:1, same overlap. */
html.omhm-holiday #story-raffle.hm48-row .hm48-gallery .feature-gift-lid.hm36-typed-lid{
  display:flex!important;width:calc(100% + 16px)!important;height:auto!important;aspect-ratio:2.5/1;margin:0 -8px calc(-7.2cqw)!important;padding:0 clamp(12px,3vw,32px)!important;
}
html.omhm-holiday #story-raffle.hm48-row .hm48-gallery .hm36-typed-title{font-size:clamp(2rem,9cqw,3.6rem)}
.hm48-stage{
  --hm48-edge:14px;--hm48-top:calc(7.2cqw + 8px);position:relative;z-index:1;box-sizing:border-box;width:100%;aspect-ratio:4/3;overflow:hidden;
  background:#101010 url('./journey-weave-tile.jpg') 0 0/94px 93px repeat;border:2px solid var(--hm48-red,#ef2435);border-radius:0 0 10px 10px;box-shadow:0 14px 22px rgba(0,0,0,.45);
}
.hm48-stage::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.38);pointer-events:none;z-index:0}
/* Before the script runs (and if every photograph fails) the server photograph fills the same stage: no change of size. */
.hm48-stage>.omhm-gallery-open{position:absolute;z-index:1;left:var(--hm48-edge);right:var(--hm48-edge);bottom:var(--hm48-edge);top:var(--hm48-top);display:block;width:auto;padding:0;border:2px solid var(--hm48-red,#ef2435);border-radius:6px;background:#080808;overflow:hidden;cursor:zoom-in;box-shadow:none}
.hm48-stage>.omhm-gallery-open .omhm-gallery-photo{display:block;width:100%!important;height:100%!important;min-height:0;max-height:none;object-fit:contain;object-position:50% 50%;background:#080808}
/* The fan: a clear lead and four narrower slices (the existing fanned photo interaction). The strip is a size container so the lead can take its photograph's own ratio. */
.hm48-strip{position:absolute;z-index:1;left:var(--hm48-edge);right:var(--hm48-edge);bottom:var(--hm48-edge);top:var(--hm48-top);display:flex;gap:6px;container-type:size;touch-action:pan-y;min-width:0}
.hm48-strip[hidden]{display:none!important}
.hm48-slot{
  position:relative;flex:1 1 0;min-width:0;padding:0;margin:0;border:2px solid var(--hm48-red,#ef2435);border-radius:6px;overflow:hidden;background:#080808;cursor:pointer;opacity:.74;
  transition:flex-grow var(--om41-accordion-ms,220ms) ease,flex-basis var(--om41-accordion-ms,220ms) ease,opacity var(--om41-crossfade-ms,450ms) ease;
}
.hm48-slot[hidden]{display:none!important}
.hm48-slot img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 30%;border:0;border-radius:0}
.hm48-slot.is-active{flex:0 0 min(74cqw,calc(100cqh * var(--photo-ratio,.8)));opacity:1}
.hm48-slot.is-active img{object-fit:contain;object-position:50% 50%;background:#080808}
/* A last batch with one photograph: the lead takes the whole stage width. */
.hm48-strip[data-slots="1"] .hm48-slot.is-active{flex:1 1 100%}
.hm48-slot:focus-visible{outline:3px solid var(--hm48-mint,#68f8b3);outline-offset:-5px}
.hm48-handoff{position:absolute;inset:0;z-index:5;pointer-events:none}
.hm48-handoff .hm48-slot{transition:none}

/* ---------- The label under the stage: previous, year and count, next, then the caption. Outside the photographs. ---------- */
.hm48-meta{position:relative;z-index:2;margin:12px 0 0;padding:8px 10px 10px;border-radius:10px;background:rgba(5,5,5,.9);box-sizing:border-box}
.hm48-bar{display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px}
.hm48-bar>button{flex:0 0 auto;min-width:44px;min-height:44px;padding:6px 12px;border:2px solid var(--hm48-mint,#68f8b3);border-radius:10px;background:#000;color:var(--hm48-mint,#68f8b3);font:700 18px/1 "OMHM Tomorrow",system-ui,sans-serif;cursor:pointer;transition:transform var(--om41-hover-ms,180ms) ease}
.hm48-bar>button:focus-visible{outline:3px solid #fff;outline-offset:2px}
@media(prefers-reduced-motion:no-preference){.hm48-bar>button:hover{transform:translateY(calc(var(--om41-hover-lift,2px) * -1))}}
.hm48-label{display:flex;flex:1 1 auto;align-items:center;justify-content:center;gap:12px;min-width:0;color:#fff;font:700 15px/1 "OMHM Tomorrow",system-ui,sans-serif;letter-spacing:.04em}
.hm48-year{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:3px 10px;border-radius:6px;background:var(--hm48-mint,#68f8b3);color:#000;font-size:14px;line-height:1;font-weight:700}
.hm48-year.is-badge{background:none;padding:0;min-height:0}
.hm48-year .om28-year-badge{display:block;width:44px;height:37px;background:url('./art-20261003/ohio-made-badge-240.webp') center/contain no-repeat;border:0;box-shadow:none}
.hm48-count{color:#fff;font-variant-numeric:tabular-nums;min-width:64px;text-align:center}
.hm48-caption{margin:6px 0 0;padding:0 4px;text-align:center;color:#fff;font:400 14px/1.4 "OMHM Tomorrow",system-ui,sans-serif}
.hm48-gallery .omhm-gallery-error{margin:8px 0 0;padding:6px 10px;border-radius:8px;background:rgba(5,5,5,.9);color:#fff;font:400 13px/1.4 "OMHM Tomorrow",system-ui,sans-serif;text-align:center}
.hm48-gallery .omhm-gallery-error[hidden]{display:none!important}
.hm48-gallery dialog{max-width:min(96vw,1100px)}

/* ---------- One column near 900 px: heading, short context, gallery, remaining narrative; each text block carries its own tree plate ---------- */
@media(max-width:1099px){
  html.omhm-holiday :is(#story-makers,#story-bags,#team,#story-party,#words,#story-raffle,#story-volunteers).hm48-row{width:calc(100% - 32px)!important;margin-top:36px!important}
  html.omhm-holiday :is(#story-makers,#story-bags,#team,#story-party,#words,#story-raffle,#story-volunteers).hm48-row{--hm48-gap:0px}
  html.omhm-holiday .hm48-row .hm48-inner,html.omhm-holiday .hm48-row--media-right .hm48-inner{display:flex;flex-direction:column;gap:20px;align-items:center}
  html.omhm-holiday .hm48-row .hm48-inner>.hm48-surface{display:none}
  html.omhm-holiday .hm48-row .hm48-surface--block{display:block}
  html.omhm-holiday .hm48-row .hm48-gallery,html.omhm-holiday .hm48-row--media-left .hm48-gallery,html.omhm-holiday .hm48-row--media-right .hm48-gallery{grid-column:auto;grid-row:auto;width:min(100%,var(--hm48-media))}
  html.omhm-holiday .hm48-row .hm48-intro,html.omhm-holiday .hm48-row .hm48-rest{--hm48-pad:22px;align-self:center;grid-column:auto;grid-row:auto;width:min(100%,720px);padding:26px 24px;isolation:isolate}
  html.omhm-holiday .hm48-row .hm48-gallery{justify-self:center;align-self:center}
  html.omhm-holiday .hm48-row .hm48-surface--block>.hm48-support{inset:5px;filter:blur(3px)}
  html.omhm-holiday .hm48-row .hm48-rest>.hm48-surface--block>.hm48-tree{background-position:var(--hm48-tree-pos-2,50% 50%)}
  html.omhm-holiday .hm48-row .hm48-head h2{font-size:clamp(2.2rem,9vw,3rem)!important}
  html.omhm-holiday .hm48-row .hm48-prose p{font-size:16.5px!important;max-width:none!important}
  .hm48-stage{--hm48-edge:10px}
  .hm48-slot{border-width:2px}
}
@media(max-width:600px){
  html.omhm-holiday :is(#story-makers,#story-bags,#team,#story-party,#words,#story-raffle,#story-volunteers).hm48-row{margin-top:32px!important}
  html.omhm-holiday .hm48-row .hm48-inner{gap:14px}
  html.omhm-holiday .hm48-row .hm48-intro,html.omhm-holiday .hm48-row .hm48-rest{padding:20px}
  html.omhm-holiday .hm48-row .hm48-intro{padding-top:30px}
  html.omhm-holiday .hm48-row .hm48-head{margin-bottom:10px}
  html.omhm-holiday .hm48-row .hm48-prose p{font-size:16px!important;line-height:1.5!important}
  html.omhm-holiday section#cta[data-hm9-tenth]{margin-top:32px!important}
}
@media(max-width:480px){
  .hm48-stage{--hm48-edge:8px}
  .hm48-slot{border-radius:5px}
  .hm48-bar{gap:8px}
}

/* ---------- Reduced motion: nothing here moves; the fan changes at once ---------- */
@media(prefers-reduced-motion:reduce){
  .hm48-slot,.hm48-bar>button{transition:none}
}

/* ---------- Chapter cover plates (the seven cards in the chapter index): one approved ornament wall crop each, still ---------- */
html.omhm-holiday #process .chapter-tree-art.hm48-cover-art{animation:none!important;transform:none!important}
html.omhm-holiday #process .chapter-tree-art.hm48-cover-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%}

/* ---------- The Tenth strip as the closing bridge (the batch 19 plaid strip style is untouched; only its place and spacing change) ---------- */
html.omhm-holiday section#cta[data-hm9-tenth]{margin:56px auto 0!important}
@media(max-width:1099px){html.omhm-holiday section#cta[data-hm9-tenth]{margin-top:36px!important}}
html.omhm-holiday #story-learned{margin-top:56px}
@media(max-width:1099px){html.omhm-holiday #story-learned{margin-top:36px}}

/* The cover cards: the darker plate overlay keeps the small labels at 4.5:1 or better on the bright ornament wall crops. */
html.omhm-holiday #process .chapter-tree-card:has(.hm48-cover-art)::after{background:linear-gradient(rgba(0,0,0,.74),rgba(0,0,0,.16) 40%,rgba(0,0,0,.2) 58%,rgba(0,0,0,.8))}
/* The Tenth strip: its two text pills read a little darker (a larger margin of safety for the mint script and the white lines on the bright plaid; the script pill is 10 px taller each side so the whole text box sits on it). */
html.omhm-holiday section#cta[data-hm9-tenth] .cta-head,html.omhm-holiday section#cta[data-hm9-tenth] .story-prose{background:rgba(8,8,8,.9)!important}
html.omhm-holiday section#cta[data-hm9-tenth] .cta-head{padding-block:18px!important}

/* ---------- Top of page (voice notes correction): the OH10 wreath is the one lockup, centered between the floating memory cards, the actions unboxed below it ---------- */
html.omhm-holiday #hero .hm48-top{position:absolute;left:50%;top:50%;z-index:6;width:min(600px,42vw);margin:0;padding:0;transform:translate(-50%,-50%);text-align:center}
html.omhm-holiday #hero .hm48-top .hm47-lockup{width:100%;margin:0 auto}
html.omhm-holiday #hero .hm48-top .hm47-actions{margin-top:2px}
@media(max-width:1099px){html.omhm-holiday #hero .hm48-top{width:min(52vw,420px)}}
@media(max-width:760px){html.omhm-holiday #hero .hm48-top{top:8px;transform:translate(-50%,0);width:min(74vw,300px)}
  html.omhm-holiday body.om-mvp #hero{height:640px!important}}

/* ---------- The memories block: the heading and its short intro sit inside one box with the tree behind (the 940 px plate that spanned the gutters is gone) ---------- */
html.omhm-holiday body.om-mvp #process .hz-head.hm48-memory-head{position:relative;isolation:isolate;box-sizing:border-box;width:min(920px,100%);margin:0 auto 22px;padding:30px clamp(18px,4vw,56px) 32px}
html.omhm-holiday body.om-mvp #process h2.hm47-heading::before{content:none!important;display:none}
html.omhm-holiday body.om-mvp #process .hm12-head-copy.hm47-intro::before{content:none!important;display:none}
html.omhm-holiday .hm48-surface--memory>.hm48-support{inset:8px;filter:blur(5px);background:rgba(3,3,3,.985)}

/* ---------- A Place to Belong: the origin text half is a box with the tree behind it, the batch 47 feathered support is replaced ---------- */
html.omhm-holiday body.om-mvp #ten-years .hm47-origin.hm48-origin::before{content:none!important;display:none}
html.omhm-holiday .hm48-origin>.hm48-surface--origin{inset:0}
html.omhm-holiday .hm48-origin>.hm48-surface--origin>.hm48-support{inset:6px;filter:blur(4px)}
@media(min-width:1100px){html.omhm-holiday .hm48-origin>.hm48-surface--origin{right:calc(50% + 4px)}}
