/* ============================================
   HOMOZ Lightbox / Enlarged Preview Styles
   ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
}

.lightbox-content {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0.95);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-container img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-image-container .finish-preview-layers {
  position: relative;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 3/4;
  max-height: 85vh;
}

.lightbox-image-container .finish-preview-layers img {
  border: none;
  box-shadow: none;
}

.lightbox-image-container .finish-preview-layers.lightbox-mirrored {
  transform: scaleX(-1);
}

.lightbox-close {
  position: absolute;
  top: -60px;
  right: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  font-size: 24px;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: var(--color-accent-gold, #d4af37);
  color: #000;
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .lightbox-close {
    top: 20px;
    right: 20px;
  }
}
