/* assets/lightbox.css - Aerospace Grade High-Resolution Lightbox Modal */

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: rgba(5, 11, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 26, 51, 0.85);
  color: #fff;
}

.lightbox-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 1rem;
}

.lightbox-content-wrapper {
  max-width: 1300px;
  width: 100%;
  max-height: calc(100vh - 180px);
  display: grid;
  grid-template-columns: 1fr;
  background: #0a1a33;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
}

@media (min-width: 900px) {
  .lightbox-content-wrapper {
    grid-template-columns: 1.4fr 1fr;
  }
}

.lightbox-img-pane {
  background: #050b14;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 280px;
  max-height: 580px;
  overflow: hidden;
}

.lightbox-img-pane img {
  max-width: 100%;
  max-height: 580px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.lightbox-info-pane {
  background: #0d1e38;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: auto;
}

@media (min-width: 900px) {
  .lightbox-info-pane {
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 26, 51, 0.75);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.lightbox-nav-btn:hover {
  background: #2563eb;
  border-color: #60a5fa;
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-thumbs {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(5, 11, 20, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  justify-content: center;
}

.lightbox-thumb {
  width: 60px;
  height: 42px;
  border-radius: 0.375rem;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.lightbox-thumb.active,
.lightbox-thumb:hover {
  opacity: 1;
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hover hint on triggers */
.lightbox-trigger {
  cursor: pointer;
  position: relative;
}

.lightbox-trigger::after {
  content: "🔍 View in Gallery";
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(10, 26, 51, 0.85);
  backdrop-filter: blur(4px);
  color: #93c5fd;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  opacity: 0;
  transform: translateY(-2px);
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

.lightbox-trigger:hover::after {
  opacity: 1;
  transform: translateY(0);
}
