/* Lightbox 查看器 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    background: #ffffff;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Lightbox 内容居中 */
.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100dvw;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    width: 90dvw;
    height: 90dvh;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile .lightbox-image {
    width: 92dvw;
    height: 92dvh;
}

.lightbox.active .lightbox-image {
    opacity: 1;
}

/* 导航箭头 */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
    z-index: 1001;
}

.nav-arrow:hover {
    opacity: 0.65;
}

.nav-arrow svg {
    width: 2.14rem;
    height: 2.14rem;
    stroke: rgba(0, 0, 0, 0.85);
    stroke-width: 1.5;
    fill: none;
}

.nav-arrow.prev {
    left: 0.7rem;
}

.nav-arrow.next {
    right: 0.7rem;
}

/* 右上角按钮组 */
.top-controls {
    position: absolute;
    top: 0.6rem;
    right: 0.5rem;
    display: flex;
    gap: 0px;
    z-index: 1001;
}

.control-btn {
    width: 2.14rem;
    height: 2.14rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.control-btn:hover {
    opacity: 0.65;
}

.control-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: rgba(0, 0, 0, 0.85);
    stroke-width: 1.5;
    fill: none;
}

.control-close-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 1.5;
    fill: rgba(0, 0, 0, 0.85);
}

/* 全屏按钮图标 */
.fullscreen-icon {
    position: relative;
}

.fullscreen-icon::before,
.fullscreen-icon::after {
    content: '';
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
}

/* 全屏模式样式 */
.lightbox.fullscreen {
    background: #FFFFFF;
}

.lightbox.fullscreen .lightbox-content {
    width: 100dvw;
    height: 100dvh;
    max-width: none;
}

.lightbox.fullscreen .lightbox-image {
    width: 90dvw;
    height: 90dvh;
    object-fit: contain;
}

.mobile .lightbox.fullscreen .lightbox-image {
    width: 100dvw;
    height: 100dvh;
    object-fit: contain;
}

.lightbox.fullscreen .nav-arrow svg {
    stroke: rgba(0, 0, 0, 0.85);
}

.lightbox.fullscreen .control-btn svg {
    stroke: rgba(0, 0, 0, 0.85);
}

.lightbox.fullscreen .nav-arrow:hover,
.lightbox.fullscreen .control-btn:hover {
    opacity: 0.8;
}

/* 全屏退出按钮（仅全屏模式显示） */
.exit-fullscreen-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.5rem;
    width: 2.14rem;
    height: 2.14rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.lightbox.fullscreen .exit-fullscreen-btn {
    opacity: 1;
}

.exit-fullscreen-btn:hover {
    opacity: 0.8;
}

.exit-fullscreen-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: rgba(0, 0, 0, 0.85);
    stroke-width: 1.5;
    fill: none;
}

/* 全屏模式下隐藏常规按钮 */
.lightbox.fullscreen .top-controls {
    display: none;
}

/* 加载状态 */
.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid rgba(240, 240, 240, 0.85);
    border-top: 2px solid rgba(30, 30, 30, 0.85);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 隐藏加载动画 */
.lightbox-loading.hidden {
    display: none;
}

/* 图片索引指示器 */
.image-counter {
    font-family: 'Monument Grotesk Variable';
    position: absolute;
    justify-content: center;
    align-items: center;
    top: 0.8rem;
    left: 2.3rem;
    transform: translateX(-50%);
    font-size: 15px;
    color: rgba(0, 0, 0, 0.85);
    /*font-weight: 300;*/
    letter-spacing: 0.01em;
}

.mobile .image-counter {
    font-size: 14px;
}

/* 图片简要说明 */
.image-brief {
    font-family: 'Monument Grotesk Variable';
    position: absolute;
    /*height: 0px;*/
    width: 100%;
    bottom: 1rem;
    left: 52%;
    transform: translateX(-50%);
    font-size: 14px;
    color: rgba(0, 0, 0, 0.85);
    /*font-weight: 300;*/
    letter-spacing: 0.01em;
    text-align: left;
    line-height: 1.5;
    font-variation-settings: 'slnt' 0, 'MONO' 0;
}

.lightbox.fullscreen .image-counter {
    color: rgba(0, 0, 0, 0.85);
}
.is-hidden {
    display: none;
}
