/* Video lightbox — Kerato / Laser templates */

[data-royal-video-url] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.royal-vlb {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.royal-vlb.is-open {
    opacity: 1;
    visibility: visible;
}

.royal-vlb__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.royal-vlb__dialog {
    position: relative;
    z-index: 1;
    width: min(96vw, 1100px);
    max-height: 90vh;
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid rgba(51, 65, 85, 0.8);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.royal-vlb__close {
    position: absolute;
    top: 0.5rem;
    inset-inline-end: 0.5rem;
    inset-inline-start: auto;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.royal-vlb__close:hover,
.royal-vlb__close:focus-visible {
    background: #1754cf;
    outline: none;
}

.royal-vlb__inner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.royal-vlb__inner iframe,
.royal-vlb__inner video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.royal-vlb__inner video {
    object-fit: contain;
    background: #000;
}
