/* ==========================================================================
   Fan Itqan - Vanilla Lightbox CSS
   ========================================================================== */

.fanitqan-lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 10, 16, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fanitqan-lightbox-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.fanitqan-lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fanitqan-lightbox-backdrop.active .fanitqan-lightbox-container {
  transform: scale(1);
}

.fanitqan-lightbox-image {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(200, 168, 104, 0.3);
  user-select: none;
}

.fanitqan-lightbox-caption {
  margin-top: 16px;
  color: #F7F5EF;
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  background: rgba(24, 24, 40, 0.8);
  padding: 8px 24px;
  border-radius: 30px;
  border: 1px solid rgba(200, 168, 104, 0.3);
}

.fanitqan-lightbox-close {
  position: absolute;
  top: 24px;
  left: 28px;
  background: rgba(24, 24, 40, 0.7);
  border: 1px solid rgba(200, 168, 104, 0.4);
  color: #C8A868;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 100000;
}

.fanitqan-lightbox-close:hover {
  background: #C8A868;
  color: #181828;
  transform: rotate(90deg) scale(1.05);
}

.fanitqan-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(24, 24, 40, 0.7);
  border: 1px solid rgba(200, 168, 104, 0.4);
  color: #C8A868;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 100000;
}

.fanitqan-lightbox-nav:hover {
  background: #C8A868;
  color: #181828;
  box-shadow: 0 0 20px rgba(200, 168, 104, 0.4);
}

.fanitqan-lightbox-prev {
  right: 30px;
}

.fanitqan-lightbox-next {
  left: 30px;
}

@media (max-width: 768px) {
  .fanitqan-lightbox-close {
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
  }
  .fanitqan-lightbox-nav {
    width: 42px;
    height: 42px;
  }
  .fanitqan-lightbox-prev {
    right: 10px;
  }
  .fanitqan-lightbox-next {
    left: 10px;
  }
}
