/* Unicus team photo gallery — infinite horizontal marquee of photo columns.
   Every photo box is a fixed-size crop window (object-fit: cover), so photos
   of any orientation (portrait or landscape) always fill their box cleanly
   instead of rendering at native resolution and overflowing/zooming. */
.unicus-gallery { position: relative; overflow: hidden; }
.unicus-gallery__viewport { overflow: hidden; width: 100%; }
.unicus-gallery__track { display: flex; width: max-content; will-change: transform; }
.unicus-gallery__group { display: flex; flex: none; gap: 18px; padding-right: 18px; }

.unicus-gallery__column { display: flex; flex-direction: column; flex: none; gap: 18px; width: 240px; }
.unicus-gallery__column--three { width: 390px; } /* wide "hero" column */

.unicus-gallery__photo { position: relative; margin: 0; flex: 1 1 auto; height: 227px; overflow: hidden; border-radius: 18px; background: var(--pale, #f2f4f9); }
.unicus-gallery__column.is-solo .unicus-gallery__photo,
.unicus-gallery__column--three .unicus-gallery__photo,
.unicus-gallery__column--five .unicus-gallery__photo { height: 472px; } /* single photo fills the whole column height */

.unicus-gallery__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; user-select: none; }
.unicus-gallery__photo:focus-visible { outline: 3px solid var(--blue, #245AE2); outline-offset: 3px; }

.unicus-gallery__controls { display: flex; justify-content: center; margin-top: 18px; }
.unicus-gallery__toggle { all: unset; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 18px; border: 1px solid var(--border, #e3e7ef); border-radius: 999px; color: var(--ink, #0b0b0b); font-size: 14px; font-weight: 600; }
.unicus-gallery__toggle svg { width: 14px; height: 14px; fill: currentColor; }
.unicus-gallery__toggle .unicus-gallery__play-icon { display: none; }
.unicus-gallery__toggle.is-paused .unicus-gallery__pause-icon { display: none; }
.unicus-gallery__toggle.is-paused .unicus-gallery__play-icon { display: block; }

@media (max-width: 900px) {
  .unicus-gallery__column { width: 200px; gap: 14px; }
  .unicus-gallery__column--three { width: 320px; }
  .unicus-gallery__photo { height: 190px; }
  .unicus-gallery__column.is-solo .unicus-gallery__photo,
  .unicus-gallery__column--three .unicus-gallery__photo,
  .unicus-gallery__column--five .unicus-gallery__photo { height: 394px; }
}

@media (max-width: 560px) {
  .unicus-gallery__column { width: 160px; gap: 10px; }
  .unicus-gallery__column--three { width: 250px; }
  .unicus-gallery__photo { height: 150px; }
  .unicus-gallery__column.is-solo .unicus-gallery__photo,
  .unicus-gallery__column--three .unicus-gallery__photo,
  .unicus-gallery__column--five .unicus-gallery__photo { height: 312px; }
}

@media (prefers-reduced-motion: reduce) {
  .unicus-gallery__track { transition: none !important; }
}
