/* TaxiSplit: galerija preko cijelog ekrana */
.ts-gallery a { cursor: zoom-in; }
.ts-gallery a img { transition: transform .25s ease, filter .25s ease; }
.ts-gallery a:hover img { transform: scale(1.03); filter: brightness(1.08); }
.ts-gallery a:focus-visible { outline: 2px solid #b6f33c; outline-offset: 3px; border-radius: 12px; }

html.ts-lb-open, html.ts-lb-open body { overflow: hidden; }

.ts-lb {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 9, 11, .94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: ts-lb-fade .2s ease;
}
.ts-lb[hidden] { display: none; }
@keyframes ts-lb-fade { from { opacity: 0; } to { opacity: 1; } }

.ts-lb__fig {
  margin: 0; padding: 56px 72px 64px;
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  box-sizing: border-box;
}
.ts-lb__img {
  max-width: 100%; max-height: calc(100% - 40px);
  object-fit: contain; border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  opacity: 0; transform: scale(.985);
  transition: opacity .2s ease, transform .2s ease;
}
.ts-lb__img.is-in { opacity: 1; transform: none; }
.ts-lb__cap {
  color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.4;
  text-align: center; max-width: 60ch;
}

.ts-lb__btn {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.ts-lb__btn:hover { background: #b6f33c; color: #111; }
.ts-lb__btn:focus-visible { outline: 2px solid #b6f33c; outline-offset: 2px; }
.ts-lb__btn[hidden] { display: none; }
.ts-lb__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ts-lb__close { top: 16px; right: 16px; }
.ts-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.ts-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
.ts-lb__count {
  position: absolute; top: 28px; left: 24px;
  color: rgba(255, 255, 255, .7); font-size: 14px; font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
  .ts-lb__fig { padding: 64px 12px 88px; }
  .ts-lb__prev, .ts-lb__next { top: auto; bottom: 20px; transform: none; }
  .ts-lb__prev { left: calc(50% - 60px); }
  .ts-lb__next { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
  .ts-lb, .ts-lb__img, .ts-gallery a img { animation: none; transition: none; }
}
