.tl-slider {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-slide {
  display: none;
  position: absolute;  /* все слайды в одной точке */
  inset: 0;
  align-items: center;
  justify-content: center;
}

.tl-slide.active {
  display: flex;       /* центрируем содержимое */
}

.tl-image-wrap {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* кнопки поверх всего, позиционируются относительно .tl-image */
.tl-prev,
.tl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  /* визуал */
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 4px;
}

.tl-prev { left: 8px; }
.tl-next { right: 8px; }

.tl-author {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 14px;
  color: #fff;
  font-size: 0.85rem;
  z-index: 10;

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.tl-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 8px;
}

.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tl-dot.active {
  width: 24px; /* растягивается */
  background: #fff;
}

