/* ==========================================================================
   Studios Gallery Lightbox
   ========================================================================== */

.studios-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 11000;
    /* Higher than work-lightbox if it exists */
    display: none;
    opacity: 0;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.studios-lightbox.visible {
    display: flex;
    opacity: 1;
}

.studios-lightbox .lightbox-content {
    position: relative;
    width: 95%;
    max-width: 1200px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.studios-lightbox.visible .lightbox-content {
    transform: scale(1);
}

.studios-lightbox .slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    background: #000;
    cursor: grab;
}

.studios-lightbox .slider-container:active {
    cursor: grabbing;
}

.studios-lightbox .slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.studios-lightbox .slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.studios-lightbox .slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
}

/* Custom Navigation Buttons based on .cta-btn */
.studios-lightbox .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    color: var(--green-light, #80EFF3);
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1em 1.5em;
    border: 0.2em solid var(--green-light, #80EFF3);
    border-radius: 3em;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    backdrop-filter: blur(5px);
}

.studios-lightbox .nav-btn:hover {
    box-shadow: 0 0 5px var(--green-light, #80EFF3),
        0 0 20px var(--green-light, #80EFF3),
        0 0 5px var(--green-light, #80EFF3);
    background-color: var(--green-light, #80EFF3);
    color: #000;
}

.studios-lightbox .prev-btn {
    left: 2em;
}

.studios-lightbox .next-btn {
    right: 2em;
}

.studios-lightbox .close-btn {
    position: absolute;
    top: 1.5em;
    right: 1.5em;
    width: 2.5em;
    height: 2.5em;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.studios-lightbox .close-btn:hover {
    color: var(--green-light, #80EFF3);
}

/* Pagination */
.studios-lightbox .pagination {
    position: absolute;
    bottom: -3em;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1em;
}

.studios-lightbox .dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.studios-lightbox .dot.active {
    background: var(--green-light, #80EFF3);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--green-light, #80EFF3);
}

/* Responsive */
@media (max-width: 768px) {
    .studios-lightbox .lightbox-content {
        height: 60vh;
    }

    .studios-lightbox .nav-btn {
        padding: 0.8em 1.2em;
        font-size: 1em;
    }

    .studios-lightbox .prev-btn {
        left: 0.5em;
    }

    .studios-lightbox .next-btn {
        right: 0.5em;
    }

    .studios-lightbox .close-btn {
        top: 1em;
        right: 1em;
        width: 2.2em;
        height: 2.2em;
        font-size: 1.2em;
    }
}