/**
 * Taif Dikor — Lightweight Luxury Vanilla Lightbox
 */

.taifdikor-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(12, 21, 25, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.taifdikor-lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.taifdikor-lightbox.is-active .lightbox-image {
  transform: scale(1);
}

.lightbox-caption {
  margin-top: 1rem;
  color: var(--color-antique-brass);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
}

.lightbox-subcaption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.25rem;
}

/* Controls */
.lightbox-btn {
  position: absolute;
  background: rgba(22, 33, 39, 0.85);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-antique-brass);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10001;
}

.lightbox-btn:hover {
  background: var(--color-antique-brass);
  color: var(--color-chinese-black);
  transform: scale(1.1);
}

.lightbox-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.lightbox-close {
  top: 20px;
  inset-inline-end: 20px;
}

.lightbox-prev {
  top: 50%;
  inset-inline-start: 20px;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  inset-inline-end: 20px;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
  position: absolute;
  top: 25px;
  inset-inline-start: 25px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  direction: ltr;
}

@media (max-width: 767px) {
  .lightbox-btn {
    width: 40px;
    height: 40px;
  }
  
  .lightbox-prev {
    inset-inline-start: 10px;
  }

  .lightbox-next {
    inset-inline-end: 10px;
  }

  .lightbox-close {
    top: 15px;
    inset-inline-end: 15px;
  }
}
