.image-gallery.pswp {
    --pswp-bg: #fff;
    --pswp-icon-color: #333;
    --pswp-icon-color-secondary: #fff;
    --pswp-icon-stroke-color: #fff;
    --pswp-icon-stroke-width: 1px;
    --pswp-error-text-color: #555;
    z-index: 100000;
    font-family: Arial, "Microsoft YaHei", sans-serif;
}
.image-gallery .pswp__counter {
    color: #555;
    text-shadow: none;
}
.image-gallery .pswp__top-bar {
    background: rgba(255, 255, 255, .94);
}
.image-gallery .pswp__button--arrow {
    margin-top: -76px;
}
.image-gallery__thumbnails {
    position: absolute;
    z-index: 10;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 96px;
    padding: 12px 24px;
    box-sizing: border-box;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid #e6e6e6;
    touch-action: pan-x;
}
.image-gallery__thumb {
    flex: 0 0 64px;
    height: 64px;
    padding: 2px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #555;
    cursor: pointer;
    opacity: .55;
}
.image-gallery__thumb:first-child { margin-left: auto; }
.image-gallery__thumb:last-child { margin-right: auto; }
.image-gallery__thumb[aria-current="true"] { border-color: #222; opacity: 1; }
.image-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.image-gallery__thumb:focus-visible,
.image-gallery .pswp__button:focus-visible { outline: 2px solid #2168bb; outline-offset: -2px; }
.image-gallery__error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 60px 24px 110px;
    box-sizing: border-box;
    color: #555;
    text-align: center;
}
.image-gallery__loading {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #fff;
    color: #333;
    font: 16px Arial, "Microsoft YaHei", sans-serif;
}
.image-gallery__loading button {
    padding: 8px 24px;
    border: 1px solid #aaa;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
}
@media (max-width: 599px) {
    .image-gallery__thumbnails { height: 80px; gap: 8px; padding: 10px 12px; }
    .image-gallery__thumb { flex-basis: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
    .image-gallery .pswp__bg,
    .image-gallery .pswp__container,
    .image-gallery .pswp__zoom-wrap,
    .image-gallery .pswp__img { transition-duration: 0ms !important; }
}
