.turbo-light-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.turbo-light-active {
  display: flex;
}

.turbo-light-container {
  position: relative;
  max-width: 90%;
  max-height: 83%;
  background-color: white;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.turbo-light-image {
  max-width: 100%;
  max-height: 74vh;
  display: block;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.turbo-light-caption {
  text-align: center;
  padding: 10px 0;
  font-size: 1.2rem;
}

.turbo-light-counter {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  font-size: 14px;
}

.turbo-light-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.turbo-light-prev,
.turbo-light-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.turbo-light-prev {
  left: 20px;
}

.turbo-light-next {
  right: 20px;
}

.turbo-light-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
