/* Shared Herbie Creative image lightbox — zoom, pan, prev/next */

.hc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.92);
    color: #fff;
}

.hc-lightbox[data-open="true"] {
    display: flex;
}

.hc-lightbox__backdrop {
    position: absolute;
    inset: 0;
}

.hc-lightbox__top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    flex-shrink: 0;
}

.hc-lightbox__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.hc-lightbox__close {
    border: 0;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

.hc-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hc-lightbox__body {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    padding: 0 0.5rem 1rem;
}

.hc-lightbox__stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none;
    cursor: zoom-in;
    border-radius: 6px;
}

.hc-lightbox__stage[data-zoomed="true"] {
    cursor: grab;
}

.hc-lightbox__stage[data-dragging="true"] {
    cursor: grabbing;
}

.hc-lightbox__img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    transform-origin: 0 0;
    opacity: 0;
    transition: opacity 0.15s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.hc-lightbox__img[data-ready="true"] {
    opacity: 1;
}

.hc-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.hc-lightbox__nav:hover {
    background: rgba(0, 0, 0, 0.65);
}

.hc-lightbox__nav--prev {
    left: 0.75rem;
}

.hc-lightbox__nav--next {
    right: 0.75rem;
}

.hc-lightbox__nav[disabled] {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

.hc-lightbox__zoom-bar {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}

.hc-lightbox__zoom-btn {
    min-width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.hc-lightbox__zoom-btn--text {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    padding: 0 0.45rem;
}

.hc-lightbox__zoom-btn:hover,
.hc-lightbox__zoom-btn:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

.hc-lightbox__zoom-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.hc-lightbox__zoom-pct {
    min-width: 3rem;
    text-align: center;
    font-size: 0.78rem;
    opacity: 0.9;
}

@media (max-width: 640px) {
    .hc-lightbox__nav {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.4rem;
    }

    .hc-lightbox__nav--prev {
        left: 0.35rem;
    }

    .hc-lightbox__nav--next {
        right: 0.35rem;
    }
}
