/* Space Parking — Image Lightbox (vanilla CSS, no dependencies) */
:root {
    --spl-navy: #051626;
    --spl-cyan: #00D2FF;
    --spl-white: #ffffff;
}

[data-lightbox] {
    cursor: zoom-in;
}

[data-lightbox]:focus-visible {
    outline: 2px solid var(--spl-cyan);
    outline-offset: 4px;
    border-radius: 4px;
}

.spl-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 22, 38, .92);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    font-family: "IBM Plex Sans", Arial, sans-serif;
}

.spl-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.spl-figure {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: min(1100px, 100%);
    max-height: 100%;
    margin: 0;
    transform: scale(.96);
    transition: transform .25s ease;
}

.spl-overlay.is-open .spl-figure {
    transform: scale(1);
}

.spl-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 160px);
    width: auto;
    height: auto;
    object-fit: contain;
    background: var(--spl-white);
    border-radius: 12px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}

.spl-caption {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    max-width: 720px;
}

.spl-counter {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .5);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.spl-button {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--spl-white);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.spl-button:hover {
    background: var(--spl-cyan);
    border-color: var(--spl-cyan);
    color: var(--spl-navy);
}

.spl-button:focus-visible {
    outline: 2px solid var(--spl-cyan);
    outline-offset: 3px;
}

.spl-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.spl-close {
    top: -56px;
    right: 0;
}

.spl-prev,
.spl-next {
    top: 50%;
    transform: translateY(-50%);
}

.spl-prev { left: -64px; }
.spl-next { right: -64px; }

.spl-button[hidden] { display: none; }

@media (max-width: 900px) {
    .spl-overlay { padding: 16px; }

    .spl-image { max-height: calc(100vh - 200px); }

    .spl-close {
        top: -52px;
        right: 0;
    }

    .spl-prev,
    .spl-next {
        top: auto;
        bottom: -60px;
        transform: none;
    }

    .spl-prev { left: calc(50% - 52px); }
    .spl-next { right: calc(50% - 52px); }
}

@media (prefers-reduced-motion: reduce) {
    .spl-overlay,
    .spl-figure,
    .spl-button {
        transition: none;
    }
}
