/* SELVO round 12: parts that assemble, bike page gallery, Details strip */
.asm { height: 460vh; background: var(--paper); }
.asm .pin { display: block; }
.asm-stage { position: absolute; left: var(--pad, 24px); right: var(--pad, 24px); top: clamp(170px, 27vh, 260px); bottom: clamp(56px, 9vh, 96px); z-index: 5; }
.asm .ap { position: absolute; left: 0; top: 0; margin: 0; transform-origin: 0 0; will-change: transform; z-index: var(--z); pointer-events: none; }
.asm .ap img { width: 100%; height: 100%; display: block; -webkit-user-drag: none; user-select: none; }
.asm .al { position: absolute; margin: 0; text-align: center; font-size: 13px; line-height: 1.3; pointer-events: none; z-index: 12; padding-inline: 6px; }
.asm .al b { display: block; font-weight: 600; letter-spacing: .01em; }
.asm .al span { color: var(--mute); font-size: 12px; }
.asm .al::before { content: ""; display: block; width: 18px; height: 1px; margin: 0 auto 6px; background: currentColor; opacity: .35; }
.asm-full { position: absolute; opacity: 0; z-index: 11; pointer-events: none; background: var(--paper); }
.asm-full img, .asm-full .decal { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.asm .head { top: clamp(64px, 10vh, 112px); }
.asm .cfoot { bottom: clamp(16px, 3.5vh, 36px); }
.asm .cap-note { font-size: 12px; color: var(--mute); }
@media (max-width: 640px) {
  .asm-stage { top: 150px; bottom: 44px; left: 12px; right: 12px; }
  .asm .al { font-size: 11.5px; } .asm .al span { font-size: 10.5px; } .asm .al::before { margin-bottom: 4px; }
  .asm .head p { font-size: 14px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .asm-stage { top: 104px; bottom: 30px; } .asm .head { top: 52px; } .asm .head h2 { font-size: 26px; } .asm .head p { display: none; }
  .asm .al span { display: none; } .asm .cfoot { display: none; }
}
/* reduced motion: the grid, standing still, in normal flow */
.asm.rm-static { height: auto; }
.asm.rm-static .pin { position: relative; height: auto; min-height: 100svh; }
.rm .asm .ap, .rm .gtrack, .rm .gthumbs .gind { transition: none !important; }

/* gallery */
.gal { position: relative; overflow: hidden; margin: 26px auto 0; max-width: 1180px; height: clamp(300px, 58svh, 660px); background: var(--grey); border-radius: 28px; outline: none; touch-action: pan-y; cursor: grab; }
@media (max-width: 700px) { .gal { height: auto; aspect-ratio: 4 / 3.4; } }
.gal:active { cursor: grabbing; }
.gal:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.gtrack { display: flex; height: 100%; transition: transform .62s var(--out, cubic-bezier(.22, 1, .36, 1)); will-change: transform; }
.gs { flex: 0 0 100%; min-width: 0; height: 100%; position: relative; }
.gs .viewer { margin: 0; max-width: none; height: 100%; border-radius: 0; background: none; aspect-ratio: auto; }
.gs > img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.gal .cap { position: absolute; left: 14px; bottom: 12px; z-index: 3; }
/* round 18: the moved track is its own layer, so each slide carries the grey: the photos multiply onto it, else the white photo ground shows as a box */
.gs { background: var(--grey); }
/* round 18: which colourway an angle photo shows */
.gs .gl { position: absolute; right: 16px; bottom: 12px; z-index: 2; font-size: 12px; line-height: 1.3; color: var(--mute); pointer-events: none; }
.garr { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .86); color: var(--ink); box-shadow: 0 2px 12px rgba(0, 0, 0, .08); cursor: pointer; opacity: 0; transition: opacity .25s linear, transform .3s var(--out, ease); }
.garr svg { width: 12px; height: 12px; }
.garr.l { left: 12px; } .garr.r { right: 12px; }
.gal:hover .garr, .gal:focus-within .garr { opacity: 1; }
.garr:hover { transform: scale(1.06); }
@media (hover: none) { .garr { opacity: .9; width: 34px; height: 34px; } }
.gthumbs { position: relative; display: flex; gap: 10px; justify-content: center; margin: 14px auto 0; padding-bottom: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.gthumbs::-webkit-scrollbar { display: none; }
.gthumbs button { flex: none; width: 92px; padding: 0; border: 0; background: none; border-radius: 10px; overflow: hidden; cursor: pointer; opacity: .55; transition: opacity .3s linear; }
.gthumbs button[aria-selected="true"], .gthumbs button:hover { opacity: 1; }
.gthumbs button img { display: block; width: 100%; height: auto; aspect-ratio: 1264 / 848; object-fit: cover; background: #fff; }
.gthumbs .gind { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--ink); border-radius: 2px; transition: transform .5s var(--out, ease), width .5s var(--out, ease); }
@media (max-width: 640px) { .gthumbs { gap: 8px; justify-content: flex-start; } .gthumbs button { width: 72px; } }

/* Details strip */
.dstrip { margin-top: clamp(40px, 6vw, 72px); }
.dstrip h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 18px; }
.drow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.dt { margin: 0; }
.dimg { aspect-ratio: 4 / 3; border-radius: 16px; background-color: #fff; background-repeat: no-repeat; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.dt figcaption { margin-top: 10px; font-size: 14px; line-height: 1.4; }
.dt figcaption b { display: block; font-weight: 600; }
.dt figcaption span { color: var(--mute); }
@media (max-width: 760px) { .drow { grid-template-columns: 1fr; } }
.story .dstrip h3, .story .dt figcaption b { color: inherit; }

html:not(.dark) .gs > img { mix-blend-mode: multiply; }
@media (max-width: 640px) { .asm .cfoot { display: none; } .asm-stage { bottom: 16px; } }
