/* Lightbox Modal for Full Preview */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 13, 0.94);
  backdrop-filter: blur(14px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
}

.lightbox-media-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  height: 100%;
}

.lightbox-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lightbox-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.25s ease;
}

.lightbox-tab-btn:hover {
  color: var(--gold-light);
  border-color: rgba(230, 200, 135, 0.4);
  background: rgba(230, 200, 135, 0.08);
}

.lightbox-tab-btn.active {
  color: #0c0b0f;
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(230, 200, 135, 0.35);
}

.lightbox-tab-btn svg {
  transition: transform 0.2s ease;
}

.lightbox-tab-btn:hover svg {
  transform: scale(1.1);
}

.lightbox-media-viewer {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  max-height: 520px;
  border-radius: 14px;
  overflow: hidden;
  background: #0d0c12;
  border: 1px solid var(--border-subtle);
}

.lightbox-view-pane {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.lightbox-view-pane.active {
  display: block;
}

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

.lightbox-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: transform 0.4s ease;
}

.lightbox-view-pane:hover .lightbox-video-poster {
  transform: scale(1.02);
}

.lightbox-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(12, 11, 15, 0.25) 0%, rgba(12, 11, 15, 0.7) 100%);
  z-index: 2;
  cursor: pointer;
}

.lightbox-play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(230, 200, 135, 0.3) 0%, rgba(184, 155, 94, 0.2) 100%),
              rgba(12, 11, 15, 0.75);
  backdrop-filter: blur(10px);
  border: 2px solid var(--gold-primary);
  color: #fff4d0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(230, 200, 135, 0.45), 0 8px 24px rgba(0, 0, 0, 0.75);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding-left: 5px;
}

.lightbox-view-pane:hover .lightbox-play-btn {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(230, 200, 135, 0.5) 0%, rgba(184, 155, 94, 0.35) 100%),
              rgba(12, 11, 15, 0.85);
  border-color: #fff8df;
  color: #ffffff;
  box-shadow: 0 0 40px rgba(230, 200, 135, 0.75), 0 12px 30px rgba(0, 0, 0, 0.85);
}

.lightbox-video-hint {
  position: absolute;
  bottom: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

#lightboxVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.lightbox-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.lightbox-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: var(--gold-primary);
  color: #0c0b0f;
}

/* Responsive Rules (Modal) */
@media (max-width: 1024px) {
  .lightbox-content {
    grid-template-columns: 1fr;
    max-height: 95vh;
    overflow-y: auto;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .lightbox-media-viewer {
    min-height: 360px;
    max-height: 420px;
  }
}
