/* Opt-in only. Legacy sections keep all their existing rules. */
.visual-layout > .visual-layout-picture { display: none; }
@media (max-width: 767px) {
    body.visual-flow-mobile { scroll-snap-type: none; height: auto; min-height: 100dvh; overflow-y: visible; }
    .page.visual-layout:not(.visual-mobile-legacy) {
        height: auto; min-height: 0; display: block; overflow: visible;
        background-image: none !important; scroll-snap-align: none; scroll-snap-stop: normal;
    }
    .page.visual-layout:not(.visual-mobile-legacy)::after { display: none; }
    .visual-layout:not(.visual-mobile-legacy) > .visual-layout-picture { display: block; }
    .visual-layout:not(.visual-mobile-legacy) img {
        display: block; width: 100%; max-width: var(--visual-mobile-width);
        height: auto; margin: 0 auto; object-fit: contain;
    }
    .page.visual-layout.visual-mobile-custom { height: var(--visual-mobile-height); }
    .visual-mobile-custom > .visual-layout-picture { height: 100%; }
    .visual-layout.visual-mobile-custom img { height: 100%; }
}
@media (min-width: 768px) {
    body.visual-flow-desktop { scroll-snap-type: none; height: auto; min-height: 100dvh; overflow-y: visible; }
    .page.visual-layout:not(.visual-desktop-legacy) {
        height: auto; min-height: 0; display: block; overflow: visible;
        background-image: none !important; scroll-snap-align: none; scroll-snap-stop: normal;
    }
    .page.visual-layout:not(.visual-desktop-legacy)::after { display: none; }
    .visual-layout:not(.visual-desktop-legacy) > .visual-layout-picture { display: block; }
    .visual-layout:not(.visual-desktop-legacy) img {
        display: block; width: 100%; max-width: var(--visual-desktop-width);
        height: auto; margin: 0 auto; object-fit: contain;
    }
    .page.visual-layout.visual-desktop-custom { height: var(--visual-desktop-height); }
    .visual-desktop-custom > .visual-layout-picture { height: 100%; }
    .visual-layout.visual-desktop-custom img { height: 100%; }
}
