/* =========================
   FRONT (site)
========================= */

.tg-slider {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 14px;
  position: relative;
}

.tg-track {
  display: flex;
  width: 100%;
  transform: translateX(0);
  transition: transform var(--tg-transition, 300ms) ease;
}

.tg-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

/* IMAGENS: sem distorcer */
.tg-slide img {
  width: 100%;
  height: auto;
  display: block;

  /* garante que nunca estique/distorça */
  object-fit: contain;
}

/* Dots */
.tg-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

.tg-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  padding: 0;
  background: rgba(255, 255, 255, 0.6);
}

/* Cor dinâmica via admin (CSS var) */
.tg-slider .tg-dot {
  background: var(--tg-dot-color, #ffffff);
  opacity: 0.55;
}

.tg-slider .tg-dot.is-active {
  opacity: 1;
}

/* Acessibilidade */
.tg-dot:focus {
  outline: 2px solid rgba(0, 0, 0, 0.25);
  outline-offset: 2px;
}

/* =========================
   ADMIN (painel WP)
========================= */

.tg-admin-wrap .tg-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.tg-admin-wrap .tg-col {
  min-width: 260px;
}

.tg-images-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tg-image-item {
  width: 90px;
  height: 90px;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #fff;
  cursor: grab;
}

.tg-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tg-remove {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}