.br-video-lightbox__header {
    justify-content: flex-end;
}

.br-video-lightbox__stage {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.br-video-lightbox__video {
    display: block;
    max-width: 100%;
    max-height: min(80vh, 100%);
    width: auto;
    height: auto;
    border-radius: var(--radius-sm);
    background: #000;
    outline: none;
}

.br-video-lightbox__spinner {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.br-video-lightbox__spinner.is-visible {
    display: flex;
}

.br-video-lightbox__spinner::after {
    content: "";
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(251, 246, 239, 0.25);
    border-top-color: var(--ember);
    animation: br-video-spin 0.8s linear infinite;
}

@keyframes br-video-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .br-video-lightbox__spinner::after {
        animation: none;
    }
}

@media (max-width: 640px) {
    .br-video-lightbox__video {
        max-height: min(60vh, 100%);
    }
}
