/* Fancybox / Lightbox Styles */
.fancybox__container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.fancybox__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.fancybox__carousel {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fancybox__content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fancybox__container.is-active .fancybox__content {
    transform: scale(1);
}

.fancybox__content img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.fancybox__caption {
    padding: 16px 20px;
    background: #0f172a;
    color: #f8fafc;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9375rem;
    text-align: center;
}

.fancybox__close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
}

.fancybox__close:hover {
    background: #0891b2;
    transform: scale(1.1);
}
