
/*
 * 2.16.69 — Recovered Geometry Freeze & Centered Desktop Scale-Up
 * CSS ONLY.
 *
 * 2.16.68 established successful right-edge containment.
 * This layer changes ONLY the outer catalog canvas width/centering.
 * Internal model rows, columns, images, support media and Linden gallery
 * are deliberately left alone.
 */

body.slc-hc-21669-page {
    overflow-x: hidden !important;
}

/* Keep outer wrappers neutral and viewport-wide. */
body.slc-hc-21669-page main:has(#slc21617-rehost),
body.slc-hc-21669-page article:has(#slc21617-rehost),
body.slc-hc-21669-page .entry-content:has(#slc21617-rehost),
body.slc-hc-21669-page .wp-block-post-content:has(#slc21617-rehost),
body.slc-hc-21669-page .wp-block-group:has(#slc21617-rehost),
body.slc-hc-21669-page .is-layout-constrained:has(#slc21617-rehost) {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
}

/*
 * Controlled desktop scale-up:
 * - larger than 2.16.68
 * - symmetric viewport reserve
 * - hard maximum prevents another right-edge escape
 */
@media (min-width: 1181px) {
    body.slc-hc-21669-page #slc21617-rehost {
        width: min(1460px, calc(100vw - 88px)) !important;
        max-width: calc(100vw - 88px) !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        position: relative !important;
        box-sizing: border-box !important;
    }
}

/* Preserve 2.16.68 containment behavior below large desktop. */
@media (min-width: 821px) and (max-width: 1180px) {
    body.slc-hc-21669-page #slc21617-rehost {
        width: calc(100vw - 48px) !important;
        max-width: calc(100vw - 48px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 820px) {
    body.slc-hc-21669-page #slc21617-rehost {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 520px) {
    body.slc-hc-21669-page #slc21617-rehost {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
    }
}

/* Geometry freeze / safety only. */
body.slc-hc-21669-page #slc21617-rehost,
body.slc-hc-21669-page #slc21617-rehost > *,
body.slc-hc-21669-page #slc21617-rehost .slc21617-live-root {
    min-width: 0 !important;
    box-sizing: border-box !important;
}

body.slc-hc-21669-page #slc21617-rehost img {
    max-width: 100% !important;
    height: auto !important;
}

/* Explicitly retain Linden containment established by the recovered state. */
body.slc-hc-21669-page #slc21617-rehost .slc21626-gallery {
    max-width: 100% !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
}
