/* =========================
   BODY
========================= */
body.lbx-open {
    overflow: hidden;
}

/* =========================
   OVERLAY
========================= */
.lbx-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,.92);
    z-index: 99999;
    padding: 20px;
}

.lbx-overlay.active {
    display: flex;
}

/* =========================
   CONTAINER
========================= */
.lbx-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    max-width: 1200px;
    max-height: 100%;
}

/* =========================
   CLOSE BAR
========================= */
.lbx-topbar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.lbx-close {
    appearance: none;
    border: none;
    background: transparent;

    color: #fff;
    font-size: 42px;
    line-height: 1;

    cursor: pointer;
    padding: 0 10px;
    transition: opacity .2s;
}

.lbx-close:hover {
    opacity: .7;
}

/* =========================
   IMAGE
========================= */
.lbx-image {

    display: block;

    max-width: 100%;
    max-height: 75vh;

    border-radius: 8px;

    object-fit: contain;

    box-shadow: 0 15px 40px rgba(0,0,0,.5);

    user-select: none;
}

/* =========================
   CAPTION
========================= */
.lbx-caption {

    margin-top: 15px;

    color: #fff;

    text-align: center;

    font-size: 16px;

    line-height: 1.5;

    max-width: 800px;

    padding: 0 15px;

}

/* =========================
   NAVIGATION
========================= */
.lbx-nav {

    position: absolute;

    top: 50%;
    left: 0;
    right: 0;

    transform: translateY(-50%);

    display: flex;
    justify-content: space-between;

    pointer-events: none;

}

.lbx-prev,
.lbx-next {

    pointer-events: all;

    width: 60px;
    height: 60px;

    border: none;

    border-radius: 50%;

    background: rgba(255,255,255,.12);

    color: #fff;

    font-size: 34px;

    cursor: pointer;

    transition: background .2s;

}

.lbx-prev:hover,
.lbx-next:hover {

    background: rgba(255,255,255,.25);

}

/* =========================
   MOBILE
========================= */
@media (max-width:700px) {

    .lbx-image {
        max-height: 65vh;
    }

    .lbx-prev,
    .lbx-next {

        width: 48px;
        height: 48px;

        font-size: 28px;

    }

    .lbx-close {

        font-size: 34px;

    }

    .lbx-caption {

        font-size: 14px;

    }

}