/* One continuous rail in the existing Collections filmstrip, driven by page scroll. */
#collections .brand-object-frame[data-product-sku="hair-02"] video {
  filter:none;
  mix-blend-mode:normal;
  mask: url("assets/turntables/hair-02.webp") center / contain no-repeat;
}
.brand-ending .brand-editorial-gallery {
  --gallery-edge:1.38889vw;
  --gallery-gap:clamp(16px,3.25vw,72px);
  --gallery-card:calc((100vw - 2 * var(--gallery-edge) - 6 * var(--gallery-gap)) / 7);
  display:block;flex:none;width:max-content;margin:0;padding:0;gap:0;
}
.brand-editorial-track {
  display:flex;align-items:center;gap:var(--gallery-gap);width:max-content;margin:0;padding:0;
}
.brand-ending .brand-gallery-card {
  display:block;position:relative;flex:0 0 var(--gallery-card);width:var(--gallery-card);
  height:auto;min-width:0;aspect-ratio:9/16;margin:0;overflow:hidden;background:#282825;color:inherit;
}
.brand-gallery-card img,.brand-gallery-card video {display:block;width:100%;height:100%;object-fit:cover}
.brand-gallery-card>div {display:block;position:relative;width:100%;height:100%}
.brand-gallery-card img {transition:transform .5s ease}
.brand-editorial-gallery :focus-visible {outline:2px solid #4875e6;outline-offset:3px}
@media(hover:hover) {a.brand-gallery-card:hover img {transform:scale(1.045)}}
@media(max-width:700px) {
  .brand-ending .brand-editorial-gallery {--gallery-gap:15vw;--gallery-card:46vw}
}
@media(max-width:767px) {
  /* Match the last ingredient card → bracket gap on home, including the 767px boundary. */
  .story-live .brand-editorial-gallery + .brand-object-frame {margin-left:22vw}
}
/* Short screens and reduced motion keep ordinary page flow and native horizontal scrolling. */
body:not(.story-live) .brand-ending .brand-editorial-gallery {display:block;width:100%;overflow:auto}
body:not(.story-live) .brand-editorial-track {padding-inline:var(--gallery-edge)}
body:not(.story-live) .brand-ending .brand-gallery-card {width:var(--gallery-card)}
@media(prefers-reduced-motion:reduce) {
  .brand-gallery-card img {transition:none}
  a.brand-gallery-card:hover img {transform:none}
}
