.home-honors-preview { display: contents; }
[data-image-preview-trigger] { cursor: zoom-in; }
[data-image-preview-trigger]:focus-visible { outline: 2px solid #2679b1; outline-offset: 3px; }

.content-image-viewer {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgb(10 15 22 / 96%);
    color: #fff;
    overflow: hidden;
}

.content-image-viewer[open] { display: flex; flex-direction: column; }
.content-image-viewer::backdrop { background: rgb(0 0 0 / 75%); }
.content-image-viewer [hidden] { display: none !important; }

.content-image-viewer-toolbar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 16px;
    padding: max(8px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
    font: 14px/1.5 "Microsoft YaHei", sans-serif;
}

.content-image-viewer-toolbar p {
    flex: 1;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-image-viewer-close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font: 32px/1 sans-serif;
    cursor: pointer;
}

.content-image-viewer button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.content-image-viewer-stage {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    padding: 12px 20px max(20px, env(safe-area-inset-bottom));
}

.content-image-viewer-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
}

.content-image-viewer-error { color: #fff; font: 16px/1.6 "Microsoft YaHei", sans-serif; text-align: center; }

@media (max-width: 767px) {
    .content-image-viewer-stage { padding-inline: 8px; }
    .content-image-viewer-toolbar { gap: 8px; }
}
