/* Sorov Behance-style Image Zoom / Lightbox */

.sorov-zoom-wrap {
    position: relative;
}

.sorov-zoom-btn {
    position: absolute;
    z-index: 8;
    right: 12px;
    top: 12px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(12,16,22,.72);
    color: #fff;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 34px rgba(0,0,0,.24);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-4px);
    transition: .22s ease;
}

.sorov-zoom-wrap:hover .sorov-zoom-btn {
    opacity: 1;
    transform: translateY(0);
}

.sorov-zoom-btn:hover {
    background: #00d88c;
    color: #06120d;
}

.bhx-gallery-item img,
.bhx-case-cover img,
.case-gallery-image img {
    cursor: zoom-in;
}

.sorov-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    background: rgba(5,8,12,.94);
    backdrop-filter: blur(16px);
}

.sorov-lightbox.is-open {
    display: block;
}

.sorov-lightbox-top {
    position: absolute;
    z-index: 5;
    left: 18px;
    right: 18px;
    top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.sorov-lightbox-title {
    min-width: 0;
    color: rgba(255,255,255,.86);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sorov-lightbox-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.sorov-lightbox-actions button,
.sorov-lightbox-actions a {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.07);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: .2s ease;
}

.sorov-lightbox-actions button:hover,
.sorov-lightbox-actions a:hover {
    background: #00d88c;
    color: #06120d;
    border-color: #00d88c;
}

.sorov-lightbox-stage {
    position: absolute;
    inset: 78px 18px 22px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    cursor: grab;
}

.sorov-lightbox-stage.is-dragging {
    cursor: grabbing;
}

.sorov-lightbox-img {
    max-width: 96%;
    max-height: 96%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    transition: transform .08s linear;
    will-change: transform;
}

.sorov-lightbox-hint {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    padding: 9px 12px;
    border-radius: 999px;
    color: rgba(255,255,255,.66);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
    font-size: 12px;
    pointer-events: none;
}

body.sorov-lightbox-lock {
    overflow: hidden !important;
}

@media (max-width: 767px) {
    .sorov-zoom-btn {
        opacity: 1;
        transform: none;
        width: 38px;
        height: 38px;
        right: 10px;
        top: 10px;
    }

    .sorov-lightbox-top {
        left: 12px;
        right: 12px;
        top: 12px;
    }

    .sorov-lightbox-title {
        display: none;
    }

    .sorov-lightbox-actions {
        width: 100%;
        justify-content: space-between;
    }

    .sorov-lightbox-actions button,
    .sorov-lightbox-actions a {
        width: 40px;
        height: 40px;
    }

    .sorov-lightbox-stage {
        inset: 68px 8px 18px;
    }

    .sorov-lightbox-img {
        max-width: 100%;
        max-height: 100%;
    }

    .sorov-lightbox-hint {
        display: none;
    }
}
