/* Filmstrip rail: all photos in one fixed-height strip at their natural ratio, 4px apart, dragged or thrown;
   25px chalk arrow tabs on the edges from 1024px page photo by photo on a 60 Hz spring. Measured from a design-led
   estate agent's listing page (Embla, dragFree + keepSnaps); rewritten. Knobs: custom properties on .fsr or :root. */
.fsr {
  --fsr-h: 138px;                        /* strip height on phones */
  --fsr-h-wide: 225px;                   /* from data-fsr-wide (1024px) */
  --fsr-gap: 4px;
  --fsr-arrow: 25px;
  --fsr-arrow-bg: rgba(255, 254, 250, .9);   /* chalk/90 */
  --fsr-ink: #23221e;
  --fsr-ease: cubic-bezier(.4, 0, .2, 1);
  position: relative;
}
.fsr__view { overflow: hidden; max-width: 100vw; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.fsr__track { position: relative; display: flex; gap: var(--fsr-gap); height: var(--fsr-h); will-change: transform; }
.fsr.is-wide .fsr__track { height: var(--fsr-h-wide); }
@media (min-width: 1024px) { .fsr:not(.is-ready) .fsr__track { height: var(--fsr-h-wide); } }   /* no JS: still the tall strip */
.fsr:not(.is-ready) .fsr__view { overflow-x: auto; }                                              /* no JS: a native scroller */

.fsr__item {
  position: relative; flex: none; display: block; height: 100%;
  padding: 0; margin: 0; border: 0; border-radius: 0; background: none;
  -webkit-tap-highlight-color: transparent;
}
.fsr__item img { display: block; height: 100%; width: auto; max-width: none; -webkit-user-drag: none; }
html.has-chalk-lightbox .fsr__item { cursor: zoom-in; }
.fsr__item:focus-visible { outline: 1px solid var(--fsr-ink); outline-offset: -3px; }

/* the play disc on a video item: 48px chalk/85, 20px icon */
.fsr__disc { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.fsr__disc > span { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 254, 250, .85); color: var(--fsr-ink); }
.fsr__disc svg { width: 20px; height: 20px; transform: translateX(1px); }

/* arrow tabs: 25px squares flush on the edges at mid-height, wide screens only; half strength + inert at the ends */
.fsr__arrow {
  position: absolute; top: 50%; z-index: 2; display: none; align-items: center; justify-content: center;
  width: var(--fsr-arrow); height: var(--fsr-arrow); padding: 0; margin: 0; transform: translateY(-50%);
  border: 0; border-radius: 0; background: var(--fsr-arrow-bg); color: var(--fsr-ink); cursor: pointer;
  transition: opacity 150ms var(--fsr-ease);
}
.fsr.is-wide .fsr__arrow { display: flex; }
.fsr__arrow--prev { left: 0; }
.fsr__arrow--next { right: 0; }
.fsr__arrow svg { width: 16px; height: 16px; display: block; }
.fsr__arrow:disabled { opacity: .5; pointer-events: none; }
.fsr__arrow:focus-visible { outline: 1px solid var(--fsr-ink); outline-offset: 2px; }
.fsr__sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
