Introduce hybrid_hex_to_rgb() for converting hex colors to RGB.
Move layouts to a more appropriate position in the theme customizer.  This gives the layout section a priority of 30, which places it before the WordPress colors section.  Layout is the foundation of design. It should come first, before more cosmetic things like colors.
Only grab attributes from selected, media elements.