/* Scoped thumbnails and a native modal; no persistent page-layout overrides. */
.bds-wrap .bds-image {
    display: inline-block; width: 96px; height: 96px; margin: 14px 8px 0 0;
    border-radius: 6px; overflow: hidden; background: #eee;
}
.bds-wrap .bds-image img { width: 100%; height: 100%; object-fit: cover; }
.bds-lightbox {
    position: fixed; inset: 0; box-sizing: border-box; width: 100%; height: 100%;
    max-width: none; max-height: none; margin: 0; padding: 24px; border: 0;
    background: rgba(0, 0, 0, .82);
}
.bds-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.bds-lightbox::backdrop { background: transparent; }
.bds-lightbox img { max-width: 95%; max-height: 90%; width: auto; height: auto; object-fit: contain; }
.bds-lightbox .bds-lightbox-close {
    all: unset; position: absolute; z-index: 2; top: 18px; right: 18px; display: grid;
    place-items: center; box-sizing: border-box; width: 42px !important; height: 42px !important;
    min-width: 42px !important; max-width: 42px !important; min-height: 42px !important; max-height: 42px !important;
    margin: 0 !important; padding: 0 !important; border: 1px solid rgba(255,255,255,.65) !important;
    border-radius: 50% !important; color: #252525; background: rgba(255,255,255,.94);
    box-shadow: none !important; cursor: pointer; transition: background-color .18s ease;
}
.bds-lightbox .bds-lightbox-close:hover { background: #e9e9e9; }
.bds-lightbox .bds-lightbox-close span { position: relative; display: block; width: 16px; height: 16px; }
.bds-lightbox .bds-lightbox-close span::before,
.bds-lightbox .bds-lightbox-close span::after {
    content: ''; position: absolute; top: 7px; left: 0; width: 16px; height: 2px;
    border-radius: 999px; background: currentColor;
}
.bds-lightbox .bds-lightbox-close span::before { transform: rotate(45deg); }
.bds-lightbox .bds-lightbox-close span::after { transform: rotate(-45deg); }
.bds-lightbox .bds-lightbox-close:focus-visible { outline: 3px solid #8bc7ff; outline-offset: 3px; }
@media (max-width: 600px) {
    .bds-lightbox { padding: 16px; }
    .bds-lightbox .bds-lightbox-close { top: 12px; right: 12px; }
}
