/* Shared single-view gallery: masonry and slider use the same image nodes. */
.lf-gallery { width:var(--lf-gallery-width,100%); max-width:100%; margin:var(--lf-gallery-top,62px) auto var(--lf-gallery-bottom,0px); }
.lf-gallery .work-gallery { margin:0; }
.lf-gallery--slider .lf-gallery-track { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:var(--lf-gallery-gap,14px); }
.lf-gallery--slider .work-gallery-item { display:block; min-width:0; margin:0; }
.lf-gallery--slider .work-gallery-item figure { margin:0; }
.lf-gallery--slider .work-gallery-item img { display:block; width:100%; height:auto; }
.lf-gallery--slider.is-slider-ready .lf-gallery-stage { display:grid; grid-template-columns:minmax(0,1fr); align-items:center; position:relative; }
.lf-gallery--slider.is-slider-ready.has-arrows:not(.arrows-overlay) .lf-gallery-stage { grid-template-columns:auto minmax(0,1fr) auto; column-gap:var(--lf-gallery-arrow-gap,16px); }
.lf-gallery--slider.is-slider-ready .lf-gallery-viewport { overflow:hidden; min-width:0; touch-action:pan-y; }
/* Each page is viewport-wide; the images inside have ratio-derived widths.
   Centring happens around the *actual visible image edges*, not equal cells. */
.lf-gallery--slider.is-slider-ready .lf-gallery-track { display:flex; align-items:stretch; gap:0; transition:transform var(--lf-gallery-duration,350ms) cubic-bezier(.22,.61,.36,1); }
.lf-gallery--slider.is-slider-ready .lf-gallery-page { display:flex; flex:0 0 100%; align-items:center; justify-content:center; min-width:0; height:var(--lf-slide-actual-height,var(--lf-gallery-height,360px)); }
.lf-gallery--slider.is-slider-ready .lf-gallery-page .work-gallery-item { display:block; flex:0 0 auto; min-width:0; width:auto; height:100%; margin:0; }
.lf-gallery--slider.is-slider-ready .lf-gallery-page .work-gallery-item figure { display:block; width:100%; height:100%; margin:0; }
.lf-gallery--slider.is-slider-ready .lf-gallery-page .work-gallery-item img { display:block; width:100%; height:100%; max-width:none; max-height:none; object-fit:contain; }
.lf-gallery .lf-gallery-arrow { background:none; border:0; color:var(--lf-gallery-arrow-color,#000); padding:0; font-size:var(--lf-gallery-arrow-size,20px); line-height:1; cursor:pointer; min-width:32px; min-height:44px; }
.lf-gallery .lf-gallery-arrow:disabled { opacity:.25; cursor:default; }
.lf-gallery.arrows-overlay .lf-gallery-arrow { position:absolute; z-index:1; top:50%; transform:translateY(-50%); }
.lf-gallery.arrows-overlay .lf-gallery-prev { left:var(--lf-gallery-arrow-gap,16px); }
.lf-gallery.arrows-overlay .lf-gallery-next { right:var(--lf-gallery-arrow-gap,16px); }
.lf-gallery .lf-gallery-progress { position:relative; width:var(--lf-gallery-progress-width,68%); height:24px; margin:var(--lf-gallery-progress-top,18px) auto var(--lf-gallery-progress-bottom,0px); display:flex; align-items:center; }
.lf-gallery .lf-gallery-progress-track { display:block; width:100%; height:var(--lf-gallery-progress-height,2px); background:var(--lf-gallery-track-color,#d6d6d6); position:relative; }
.lf-gallery .lf-gallery-progress-active { position:absolute; height:100%; width:var(--lf-progress-segment,100%); left:var(--lf-progress-offset,0%); background:var(--lf-gallery-active-color,#000); transition:left var(--lf-gallery-duration,350ms) cubic-bezier(.22,.61,.36,1); }
.lf-gallery .lf-gallery-range { position:absolute; inset:0; width:100%; height:100%; margin:0; padding:0; opacity:0; cursor:ew-resize; }
.lf-gallery .lf-gallery-progress:focus-within, .lf-gallery .lf-gallery-viewport:focus-visible, .lf-gallery .lf-gallery-arrow:focus-visible { outline:1px solid currentColor; outline-offset:3px; }
.lf-gallery [hidden] { display:none !important; }
.lf-gallery:not(.has-arrows) .lf-gallery-stage, .lf-gallery.has-arrows .lf-gallery-stage:has(.lf-gallery-prev[hidden]) { grid-template-columns:minmax(0,1fr); }
.news-single-hero > .js-lf-lightbox { display:block; }
@media(max-width:760px) {
  .lf-gallery { margin-top:var(--lf-gallery-mobile-top,48px); }
  .lf-gallery .work-gallery-row, .lf-gallery .work-gallery-row .work-gallery-item + .work-gallery-item { margin-bottom:var(--lf-gallery-mobile-gap,14px); margin-top:0; }
  .lf-gallery .work-gallery-row:last-child { margin-bottom:0; }
  .lf-gallery--slider .lf-gallery-track { gap:var(--lf-gallery-mobile-gap,14px); }
  /* The common image height is measured on each breakpoint in gallery-slider.js. */
  .lf-gallery--slider.is-slider-ready.has-arrows:not(.arrows-overlay) .lf-gallery-stage { column-gap:min(8px,var(--lf-gallery-arrow-gap,16px)); }
}
@media(prefers-reduced-motion:reduce) { .lf-gallery .lf-gallery-track,.lf-gallery .lf-gallery-progress-active { transition:none; } }
