.lb-dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.lb-dialog[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-dialog::backdrop {
    background: rgba(0, 0, 0, 0.85);
}

.lb-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
}

.lb-img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 2px;
    user-select: none;
}

.lb-iframe {
    display: block;
    width: 80vw;
    height: 45vw;
    max-height: 80vh;
    border: none;
    border-radius: 2px;
}

.lb-inline {
    background: #fff;
    border-radius: 4px;
    padding: 24px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}

.lb-close,
.lb-prev,
.lb-next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    transition: background-color 0.15s;
    line-height: 1;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.lb-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
}

.lb-prev,
.lb-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 64px;
    border-radius: 4px;
}

.lb-prev {
    left: 12px;
}

.lb-next {
    right: 12px;
}

.lb-prev[hidden],
.lb-next[hidden] {
    display: none;
}

@media (max-width: 575px) {
    .lb-iframe {
        width: 95vw;
        height: 54vw;
    }

    .lb-prev {
        left: 4px;
    }

    .lb-next {
        right: 4px;
    }
}
