/*
================================================================================
  KHOBRAA AL-DHIL - LUXURY LIGHTBOX MODAL
================================================================================
*/

.theme-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(12, 14, 17, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
    user-select: none;
}

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

/* Lightbox Wrapper */
.lightbox-dialog {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Lightbox Image */
.lightbox-image-container {
    position: relative;
    max-width: 100%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    background-color: var(--surface);
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    transform: scale(0.95);
    opacity: 0;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.theme-lightbox.active .lightbox-img {
    transform: scale(1);
    opacity: 1;
}

/* Lightbox Info Bar */
.lightbox-caption {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 6px 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.lightbox-title {
    font-weight: 600;
}

.lightbox-counter {
    color: var(--accent-light);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Lightbox Controls */
.lightbox-btn {
    position: absolute;
    background: rgba(30, 33, 36, 0.75);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all var(--transition-fast);
    z-index: 10;
}

.lightbox-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    transform: scale(1.05);
}

.lightbox-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

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

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

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

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

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

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