Sample Post
Install the updated theme CSS and gallery JavaScript first. Copy everything below this introduction into a Bear Blog draft, not into a code block. The HTML is intentional: it supplies the layout classes Markdown images cannot express. Keep the HTML blocks intact, without blank lines inside their containers.
Sample photographs come from Picsum. Replace them with your own Bear Blog image URLs when ready.
Ordinary Markdown image
This image and ordinary captions should keep the original theme styling.
Natural-size figure with caption
Standalone portrait, square, and wide figures
Vertical stack
Horizontal pair with automatic columns
The script detects two images and adds the two-column hint.
Horizontal trio with captions
Three columns on desktop become two on mobile.
Responsive auto-fill gallery
Four images use automatic columns rather than the two/three-image hints.
Portrait beside two vertically stacked landscapes
The explicit two-column hint stays in place even though there are three figures.
Wide photograph above a horizontal pair
Portrait-only horizontal stack
Both figures span two rows, even without landscape images to establish the row height.
Mixed portrait, wide, and square mosaic
Aspect classes directly on images
These spans work without figure wrappers or captions.
Crop focus comparisons
The same source photograph uses top, center, and bottom focus. Classes work on either the figure or its image.
Captioned carousel with mixed image orientations
Try arrows, dots, keyboard activation, swipes, and resizing after changing slides. Navigation wraps at both ends.
Carousel with automatic track creation
This second carousel should work independently of the first.
Carousel containing horizontal and mixed stacks
Each slide is a group of photographs. Grid captions and crop classes should still work.
Single-slide carousel
No arrows or dots should be added for a single slide.
Live test checklist
- Check all layouts on desktop and a narrow phone screen
- Confirm portraits span both rows and wide images span both columns
- Confirm square images stay square on mobile
- Confirm every caption is readable and carousel dots do not cover it
- Test all three multi-slide carousels independently, including wraparound
- Check the light and dark color schemes
- Compare navigation, typography, ordinary images, and other non-photo elements with your existing theme