/**
 * Custom Lightweight Lightbox Styles — Riyadh Decor
 */

.riyadh-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(6, 6, 6, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  user-select: none;
  padding: 20px;
}

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

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

.lightbox-image {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(201, 164, 92, 0.3);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.riyadh-lightbox-modal.active .lightbox-image {
  transform: scale(1);
}

.lightbox-caption {
  margin-top: 14px;
  color: #E2C27A;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  font-family: inherit;
}

/* Lightbox Controls */
.lightbox-btn {
  position: absolute;
  background: rgba(23, 23, 23, 0.85);
  border: 1px solid rgba(201, 164, 92, 0.4);
  color: #F5F5F5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10001;
}

.lightbox-btn:hover {
  background: #C9A45C;
  color: #000000;
  border-color: #E2C27A;
  transform: scale(1.1);
}

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

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #A7A7A7;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(18, 18, 18, 0.7);
  padding: 4px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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