/**
 * Shared image lightbox (js/forum-lightbox.js).
 * Used by the forum reskin (attachment images) and the public member profile
 * (profile photo). Lived inside forum.css until 10 Sep 2026.
 */
.asltip-flb {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(7, 26, 43, 0.88);
}
.asltip-flb.is-open { display: flex; }
.asltip-flb-lock, .asltip-flb-lock body { overflow: hidden; }
.asltip-flb__inner {
    max-width: min(1100px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.asltip-flb__img {
    max-width: 100%;
    max-height: calc(100vh - 150px);
    width: auto;
    height: auto;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.asltip-flb__bar {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 100%;
}
.asltip-flb__name {
    color: #dbe7f2;
    font: 400 13.5px 'Roboto', sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.asltip-flb .asltip-flb__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #0b2f52;
    font: 500 13.5px 'Heebo', sans-serif;
    padding: 9px 16px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}
.asltip-flb .asltip-flb__btn:hover,
.asltip-flb .asltip-flb__btn:focus-visible { background: #dbe7f2; color: #0b2f52; }
.asltip-flb button.asltip-flb__close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font: 400 26px/1 'Heebo', sans-serif;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.asltip-flb button.asltip-flb__close:hover,
.asltip-flb button.asltip-flb__close:focus-visible { background: rgba(255, 255, 255, 0.28); color: #fff; }
@media (max-width: 640px) {
    .asltip-flb { padding: 16px; }
    .asltip-flb__img { max-height: calc(100vh - 170px); }
    .asltip-flb__bar { flex-direction: column; gap: 10px; }
}

/* hidden attribute must beat the button's own display:inline-flex */
.asltip-flb .asltip-flb__btn[hidden] { display: none; }
