/* More room for opening, transfer, receiving and closing; native scrolling is unchanged. */
@media(min-width:1101px){.storyboard #narrative #toothpaste{min-height:280svh}}
@media(max-width:1100px){.storyboard #narrative #toothpaste{min-height:295svh!important}}
#assembly-cap-fallback{position:fixed;pointer-events:none;z-index:6;object-fit:contain;opacity:0;visibility:hidden;will-change:transform,opacity}

/* Optical close-up on compact screens; projection overlays use the actual image bounds. */
@media(max-width:1100px){#assembly-fallback{transform:scale(1.28);transform-origin:center center}}

@media(min-width:1101px){#assembly-fallback{transform:scale(1.34);transform-origin:center center}}

.carton-horizontal-art{opacity:1}.carton-upright-art{opacity:var(--carton-upright-art,0)}

/* A closed, opaque shell replaces the tube from one end, without ghosted duplicate packs. */
.authored-carton-fallback{mask-image:linear-gradient(to bottom,transparent calc((1 - var(--carton-reveal,1))*100% - 1%),#000 calc((1 - var(--carton-reveal,1))*100% + 1%))}

#product-handoff-sequence{position:fixed;z-index:5;pointer-events:none;transform:translate(-50%,-50%);max-width:none;visibility:hidden}.handoff-sequence-active #assembly-tube-fallback,.handoff-sequence-active .authored-carton-fallback{visibility:hidden!important}.handoff-sequence-loading .authored-carton-fallback{visibility:hidden!important}.handoff-sequence-loading #assembly-tube-fallback{mask-image:none!important}

/* Printed artwork is exclusive: two labels must never crossfade over each other. */
.carton-horizontal-art{opacity:calc(1 - var(--carton-upright-art,0))!important}.carton-upright-art{opacity:var(--carton-upright-art,0)!important}
.handoff-sequence-loading .authored-carton-fallback{display:none!important}
