.wiring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 8px;
}
.wiring-grid img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    padding: 4px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: block;
    cursor: zoom-in;
}
.wiring-grid img:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
    box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 0 0 1px var(--cyan-glow);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 12, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.18s ease;
}
.lightbox.is-open {
    display: flex;
    opacity: 1;
}
.lightbox__img {
    max-width: min(96vw, 1400px);
    max-height: 92vh;
    width: auto;
    height: auto;
    background: white;
    padding: 8px;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
    image-rendering: -webkit-optimize-contrast;
    cursor: default;
}
.lightbox__close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(17, 24, 33, 0.7);
    backdrop-filter: blur(6px);
    color: var(--text);
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.lightbox__close:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(17, 24, 33, 0.95);
}
.lightbox__hint {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}
