/**
 * Vanilla Luxury Lightbox Styles
 * @package Dekorat_Riyadh
 */

.dekorat-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  direction: rtl;
}

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

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

.lightbox-image-container {
  position: relative;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 92, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(201, 164, 92, 0.2);
}

.lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.lightbox-caption-bar {
  margin-top: 14px;
  text-align: center;
  color: #F5F1E8;
}

.lightbox-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #E4C47A;
  margin-bottom: 2px;
}

.lightbox-subtitle {
  font-size: 0.85rem;
  color: #B8B3A8;
}

/* Close & Nav Buttons */
.lightbox-btn {
  position: absolute;
  background: rgba(24, 24, 24, 0.85);
  border: 1px solid rgba(201, 164, 92, 0.5);
  color: #E4C47A;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 1000001;
}

.lightbox-btn:hover {
  background: #C9A45C;
  color: #0B0B0B;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(201, 164, 92, 0.6);
}

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

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

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

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

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

@media (max-width: 768px) {
  .lightbox-prev {
    right: 10px;
    width: 38px;
    height: 38px;
  }
  .lightbox-next {
    left: 10px;
    width: 38px;
    height: 38px;
  }
  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
  }
  .lightbox-img {
    max-height: 65vh;
  }
}
