/* 全站簡易圖片放大（MatchdoImageLightbox） */
.matchdo-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}
.matchdo-image-lightbox.is-open {
    display: flex;
}
.matchdo-image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 64, 89, 0.88);
    cursor: zoom-out;
}
.matchdo-image-lightbox-panel {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1200px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}
.matchdo-image-lightbox-panel img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
    cursor: default;
}
.matchdo-image-lightbox-caption {
    margin: 0.75rem 0 0;
    padding: 0 0.5rem;
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    max-width: 90vw;
    word-break: break-word;
    pointer-events: none;
}
.matchdo-image-lightbox-caption:empty {
    display: none;
}
.matchdo-image-lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #445d7e;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
}
.matchdo-image-lightbox-close:hover {
    background: #445d7e;
    color: #fff;
}
.matchdo-image-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #445d7e;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.matchdo-image-lightbox-prev {
    left: 0.5rem;
}
.matchdo-image-lightbox-next {
    right: 0.5rem;
}
.matchdo-image-lightbox-nav:hover {
    background: #445d7e;
    color: #fff;
}
.matchdo-image-lightbox-counter {
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    text-align: center;
    pointer-events: none;
}
.matchdo-image-lightbox-counter:empty {
    display: none;
}
@media (max-width: 768px) {
    .matchdo-image-lightbox-prev {
        left: 0.25rem;
    }
    .matchdo-image-lightbox-next {
        right: 0.25rem;
    }
}
.js-matchdo-enlarge,
.material-img.matchdo-enlarge-trigger,
.ref-card-thumb,
.ref-slot-thumb,
.vendor-asset-pick-img {
    cursor: zoom-in;
}
.vendor-asset-pick-zone {
    position: relative;
}
.vendor-asset-zoom-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(68, 93, 126, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    opacity: 1;
    cursor: pointer;
}
.vendor-asset-zoom-btn:hover {
    background: #445d7e;
    color: #fff;
    border-color: #445d7e;
}
#vendorAssetsPickerModal .vendor-asset-pick-img {
    cursor: pointer;
}
