@charset "utf-8";
/* ==========================================================
   fancybox 看图灯箱：右侧竖条缩略图 → 底部横排缩略图
   对齐 dxrby.cn/honor.html 的看图体验（2026-11-17）
   ========================================================== */

/* fancybox 只在「多图 + 鼠标移动」时显示箭头和右上按钮，
   触屏/静止状态会被隐藏。图集页固定显示，保证鼠标一动就能看到。 */
.fancybox-container.fancybox-show-thumbs .fancybox-toolbar,
.fancybox-container.fancybox-show-thumbs .fancybox-navigation .fancybox-button {
    opacity: 1;
    visibility: visible;
    transition: opacity .2s ease;
}

/* 箭头默认贴屏幕两侧，往中间收进来，靠近图片 */
.fancybox-container.fancybox-show-thumbs .fancybox-navigation .fancybox-button--arrow_left {
    left: clamp(24px, 13vw, 240px);
}

.fancybox-container.fancybox-show-thumbs .fancybox-navigation .fancybox-button--arrow_right {
    right: clamp(24px, 13vw, 240px);
}

.fancybox-thumbs.fancybox-thumbs-x {
    background: rgba(8, 14, 26, .95);
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 98px;
    padding: 11px 62px;
    box-sizing: border-box;
}

/* 遮罩加深一点，白字标题压在页面内容上也清楚 */
.fancybox-container.fancybox-is-open .fancybox-bg {
    opacity: .96;
}

.fancybox-show-thumbs .fancybox-inner {
    right: 0;
    bottom: 164px;
}

/* 证书名称：显示在缩略图条上方，左对齐白字
   （米拓原样式把 .fancybox-caption__body 设成了 display:none，所以标题一直不显示） */
.fancybox-caption {
    background: none;
    /* caption 是 .fancybox-inner 的子元素，负值才能贴到缩略图条正上方 */
    bottom: -66px;
    height: 66px;
    padding: 0 62px;
    display: flex;
    align-items: center;
    text-align: left;
    z-index: 99997;
}

.fancybox-caption__body {
    display: block;
    max-height: none;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.4;
    color: #fff;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fancybox-caption a,
.fancybox-caption a:link,
.fancybox-caption a:visited {
    color: #fff;
    text-decoration: none;
    pointer-events: none;
}

.fancybox-thumbs__list {
    height: 100%;
}

.fancybox-thumbs__list a {
    width: 56px;
    height: 76px;
    margin: 0 5px;
    max-width: none;
    max-height: none;
    background-size: contain;
    background-position: center center;
    background-color: #fff;
    border-radius: 2px;
}

.fancybox-thumbs__list a::before {
    border-width: 2px;
    border-color: #2f7fe0;
    border-radius: 2px;
}

@media all and (max-width: 576px) {
    .fancybox-thumbs.fancybox-thumbs-x {
        height: 74px;
        padding: 8px 38px;
    }

    /* 遮罩加深一点，白字标题压在页面内容上也清楚 */
.fancybox-container.fancybox-is-open .fancybox-bg {
    opacity: .96;
}

.fancybox-show-thumbs .fancybox-inner {
        right: 0;
        bottom: 126px;
    }

    .fancybox-caption {
        bottom: -52px;
        height: 52px;
        padding: 0 38px;
    }

    .fancybox-caption__body {
        font-size: 15px;
    }

    .fancybox-thumbs__list a {
        width: 42px;
        height: 58px;
        margin: 0 3px;
        max-width: none;
    }

    .fancybox-container.fancybox-show-thumbs .fancybox-navigation .fancybox-button--arrow_left {
        left: 10px;
    }

    .fancybox-container.fancybox-show-thumbs .fancybox-navigation .fancybox-button--arrow_right {
        right: 10px;
    }
}
