/*
 * Copyright (C) Pootle contributors.
 *
 * This file is a part of the Pootle project. It is distributed under the GPL3
 * or later license. See the LICENSE file for a copy of the license and the
 * AUTHORS file for copyright and authorship information.
 */

.lightbox-lock
{
    overflow: hidden;
}

.lightbox-bg
{
    position: fixed;
    z-index: 498;
    top: 0;
    left: 0;

    height: 100%;
    width: 100%;

    background: rgba(11, 11, 11, 0.8);

    outline: medium none;
}

.lightbox-container
{
    box-sizing: border-box;
    position: absolute;
    z-index: 499;
    left: 0;
    top: 0;

    height: 100%;
    width: 100%;

    padding: 0;
    text-align: center;

    overflow-x: hidden;
    overflow-y: auto;
}

.lightbox-container::before
{
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.lightbox-body
{
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0 auto;
    text-align: left;
    padding: 2em 3em;
    min-width: 255px;
    font-size: 100%;
}

.lightbox-header
{
    margin-bottom: 2em;
}

.lightbox-content
{
    margin: 1em 0;
}

.lightbox-footer
{
    margin-top: 2em;
    text-align: right;
}

html[dir="rtl"] .lightbox-footer
{
    text-align: left;
}

.lightbox-footer .btn + .btn
{
    margin-left: 0.5em;
}

html[dir="rtl"] .lightbox-footer .btn + .btn
{
    margin-left: 0;
    margin-right: 0.5em;
}

.lightbox-close
{
    position: absolute;
    right: 0;
    top: 0;
    width: 44px;
    height: 44px;
    line-height: 44px;

    text-decoration: none;
    text-align: center;
    background-color: transparent;
    color: rgba(0, 0, 0, 0.5);

    font-style: normal;
    font-size: 28px;
    font-family: "Arial", monospace;

    border: 0;
    cursor: pointer;
}

html[dir="rtl"] .lightbox-close
{
    right: auto;
    left: 0;
}

.lightbox-close:hover,
.lightbox-close:focus
{
    color: rgba(0, 0, 0, 1);
}
