/* Complementos para a versão PHP (o restante vem de larluzia.css, igual ao site original) */

[hidden] {
    display: none !important;
}

/* Lightbox da galeria (substitui o Dialog do React) */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in oklab, var(--foreground) 80%, transparent);
    animation: lb-fade .2s ease-out;
}

.lightbox-dialog {
    position: relative;
    display: grid;
    gap: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
    outline: none;
    animation: lb-zoom .2s ease-out;
}

@media (min-width: 640px) {
    .lightbox-dialog {
        border-radius: 8px;
    }
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: 0;
    border-radius: 2px;
    opacity: .7;
    cursor: pointer;
    color: inherit;
    transition: opacity .2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--input, var(--border));
    border-radius: 6px;
    background: var(--background);
    color: inherit;
    cursor: pointer;
    box-shadow: 0 1px 2px #0000000d;
    transition: background-color .2s;
}

.lightbox-nav:hover {
    background: var(--accent);
    color: var(--accent-foreground);
}

@keyframes lb-fade {
    from { opacity: 0; }
}

@keyframes lb-zoom {
    from { opacity: 0; transform: scale(.95); }
}
