.tcarousel-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  margin: auto;
}

.tcarousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.tcarousel-img {
  width: 100%;
  flex-shrink: 0;
  cursor: pointer;
}


.carousel:hover .tnav {
  opacity: 1;
}

.tnav {
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color:transparent;
  color: #000;
  border: none;
  padding-top: 9px;
  padding-bottom: 8px;
  padding-right: 14px;
  padding-left: 14px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.tnav.left {
  left: 10px;
}

.tnav.right {
  right: 10px;
}

.tdots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.tdots span,
.tfullscreen-dots span {
  width: 3px;
  height: 3px;
  background-color: #bbb;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.tdots span.active,
.tfullscreen-dots span.active {
  width: 6px;
  height: 6px;
  background-color: #000;
}

/* Fullscreen Mode */
.tfullscreen-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  flex-direction: column;
}

.tfullscreen-track-wrapper {
  width: 100%;
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
}

.tfullscreen-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.tfullscreen-track img {
  min-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.tfullscreen-controls {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.tfullscreen-nav {
  all: unset;
  position: absolute;
  top: 90%;
  transform: translateY(-50%);
  color: black;
  border: none;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  padding: 6px;
  z-index: 1000;
  padding-top: 9px;
  padding-bottom: 8px;
  padding-right: 14px;
  padding-left: 14px;
  transition: color 0.3s ease-in-out,background-color 0.3s ease-in-out;
}

.tfullscreen-nav:hover {
  background-color: black;
}

.tfullscreen-nav:hover i {
  color: white;
}

.tfullscreen-dots {
  position: absolute;
  bottom: 10%;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.tfullscreen-nav.left {
  left: 82%;
}

.tfullscreen-nav.right {
  right: 40px;
}

#tminimize-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
}

.hidden {
  display: none;
}

/* Mobile: Hide nav */
@media (max-width: 600px) {
  .tnav {
    display: none;
  }

  .tfullscreen-img-container {
    width: 90%;
  }

  .tfullscreen-nav.right,
  .tfullscreen-nav.left {
    display: none;
  }

  .tfullscreen-dots {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
  }
}
