﻿/* 截图点击放大用的浮层。样式很简单，只有打开时才占位，不打开就是一段死代码。 */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(4, 5, 8, .93);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.lightbox.is-open { display: flex; }

.lightbox__figure {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.lightbox__img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 130px);
    width: auto;
    height: auto;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    box-shadow: 0 40px 100px -50px #000;
}

.lightbox__caption {
    max-width: 60em;
    color: #a7aebb;
    font-size: 14px;
    text-align: center;
}

.lightbox__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: #12161f;
    color: #f4f6fa;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.lightbox__close:hover { background: #1b2130; }

@media (max-width: 760px) {
    .lightbox { padding: 14px; }
    .lightbox__close { top: -46px; right: 0; }
    .lightbox__img { max-height: calc(100vh - 160px); }
}
