• Shopify Section
Media gallery - masonry
The "Media gallery - masonry" section creates a sophisticated, Pinterest-style grid layout that automatically arranges media content in an optimized, visually appealing way. This section stands out for its ability to handle mixed media types - images, HTML5 videos, and YouTube videos - while maintaining a cohesive, responsive layout.
Support for multiple media types:
- Standard images with optional links
- Self-hosted HTML5 videos
- YouTube video embeds
- Intelligent media icons that indicate content type
- Lazy loading for optimal performance
- Customizable entrance animations with six options
- Responsive design with configurable columns for desktop (2-6) and mobile (1-3)
The section offers extensive customization options:
- Adjustable grid spacing (gutter)
- Flexible width controls with max-width constraints
- Custom padding and margins
- Icon color customization
- Optional lightbox functionality
- Advanced CSS override capabilities for both desktop and mobile
- Custom anchor ID support for page navigation
The implementation prioritizes performance through efficient DOM manipulation and event handling, while maintaining smooth animations and transitions. The masonry layout automatically recalculates and adjusts as content loads, ensuring a seamless user experience across all device sizes.





