/* ==========================================================================
   VARUN TRAILOR - PREMIUM LIGHTBOX STYLES
   Touch-friendly, keyboard navigable, full-screen machinery viewer
   ========================================================================== */

.vt-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 7, 11, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vt-lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.vt-lightbox-container {
  position: relative;
  width: 90vw;
  max-width: 1200px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vt-lightbox-img-wrap {
  position: relative;
  max-width: 100%;
  max-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #090d14;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
}

.vt-lightbox-img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.vt-lightbox-caption {
  width: 100%;
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.vt-lightbox-title {
  font-family: var(--vt-font-heading, 'Outfit', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.vt-lightbox-counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.vt-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2010;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vt-lightbox-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg);
}

.vt-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(18, 24, 34, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2010;
  transition: all 0.25s ease;
}

.vt-lightbox-prev {
  left: 2rem;
}

.vt-lightbox-next {
  right: 2rem;
}

.vt-lightbox-nav:hover {
  background: #22c55e;
  border-color: #22c55e;
  color: #000000;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

@media (max-width: 768px) {
  .vt-lightbox-nav {
    display: none;
    /* Swipe used on mobile */
  }

  .vt-lightbox-container {
    width: 95vw;
  }

  .vt-lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
  }

  .vt-lightbox-img-wrap {
    max-height: 65vh;
  }

  .vt-lightbox-caption {
    margin-top: 0.75rem;
    gap: 0.5rem;
  }

  .vt-lightbox-title {
    font-size: 1.05rem;
  }
}